AUTHFS(4)
NAME
authfs − present different authentication files
SYNOPSIS
authfs [ -a authserver ] [ -u user ] [ -h hostowner ] [ -pv ]
DESCRIPTION
Authfs presents an alternate set of credentials via the files authcheck, authenticator, authserver, hostowner, key, and user in /dev, as well as a new /net/cs.
The -a, -u, and -h flags specify the default authentication server, user name, and host owner, respectively. They can be changed at any time by writing strings into the obvious files. The -p option prompts for a password that will be used to generate the key file. A great amount of debugging output is produced by the -v option.
The authenticator, authcheck, and key files behave identically to the ones that are presented by cons(3). Unlike those files, they are not global: changes to authentication information (via, say, aux/typepasswd) are local to the namespace. This is useful for assuming a different identity on a per-window basis.
The file /net/cs is replaced with one that behaves identically except that $auth is rewritten with the contents of /dev/authserver rather than an entry from the network database.
EXAMPLES
Change credentials to boris and set a new authentication server before dialing kremvax.
authfs
echo boris >/dev/user
echo moscvax >/dev/authserver
aux/typepasswd
cpu -h kremvax
This may be shortened using command-line options:
authfs -u boris -a moscvax -p
cpu -h kremvax
SOURCE
/sys/src/cmd/authfs.c
SEE ALSO
cons(3), auth(6), auth(8), ndb(8)
Plan 9 — July 29, 2000