From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 6 Jun 2017 08:05:34 +0200 From: David du Colombier <0intro@gmail.com> To: 9fans@9fans.net Message-ID: <20170606080534.743916ff@neon.9fans.fr> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [9fans] v9fs authentication question Topicbox-Message-UUID: beae03c6-ead9-11e9-9d60-3106f5b1d025 > 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