9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: David du Colombier <0intro@gmail.com>
To: 9fans@9fans.net
Subject: Re: [9fans] v9fs authentication question
Date: Tue,  6 Jun 2017 08:05:34 +0200	[thread overview]
Message-ID: <20170606080534.743916ff@neon.9fans.fr> (raw)
In-Reply-To: <CAPd04b5uVHCJmYmH0SvQSFVDseC_v8ymT6nXbhCVtHghrXh_fg@mail.gmail.com>

> If I want to be able to use v9fs to mount a plan9 fileserver as a
> specific user, do I need to provide credentials via plan9port
> factotum?
>
> Drawterm takes an argument about which authentication server to talk
> to, but the directions I see for v9fs seem to only talk about USER
> environment variables, or mounting a factotum interface.

If you want to mount as a specific user, you can specify the
"uname" option of v9fs.

See the documentation:

https://www.kernel.org/doc/Documentation/filesystems/9p.txt

Example:

$ mount -t 9p -o tcp,trans=tcp,uname=djc 135.104.24.18 /n/sources

If you require authentication, you'll need to authenticate
with factotum.

Example:

$ factotum -n
$ srv -a -k user=djc sources.cs.bell-labs.com
$ mount -t 9p -o unix,trans=unix,uname=djc $(namespace)/sources.cs.bell-labs.com /n/sources

--
David du Colombier



  reply	other threads:[~2017-06-06  6:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-06  5:10 James A. Robinson
2017-06-06  6:05 ` David du Colombier [this message]
2017-06-06  6:20 ` Skip Tavakkolian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170606080534.743916ff@neon.9fans.fr \
    --to=0intro@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).