Plan 9: Password Management

 An authentication server manages users credentials in a Plan 9 grid. However, if you are just getting started, probably it would be a better idea to directly use factotum for managing credentials for various services.

Create a file keys with the following content. 

key proto=pass        service=ftp server=10.0.2.2 user=anand !password=<password>
key proto=wpapsk service=wpa essid=Tomato24 !password=<password>
 

Load the keys in factotum. 

read -m keys > /mnt/factotum/ctl
 
# Verify
cat  /mnt/factotum/ctl
 


Now you can log into the services without manually entering the password.

ftpfs 10.0.2.2
aux/wpa -s Tomato24 /net/ether1 

Finally, you can add the command to $home/lib/profile so that it will be executed automatically during bootup.


If you have the authentication server configured, you can use the following commands to manage your credentials. (Secstore files are stored at "/adm/secstore/user/" on the authserver).

% ramfs -p; cd /tmp
% auth/secstore -vg factotum
secstore password:

# Append new key 
% echo 'key proto=apop dom=x.com user=ehg !password=hi' >> factotum
 
# Verify all the credentials are available
% cat factotum

% auth/secstore -vp factotum
secstore password:

# Load credentials in the current factotum process 
% read -m factotum > /mnt/factotum/ctl
 

 

 

Comments

Popular posts from this blog

Plan 9 : The Infinity Notebook

Emacs: Binary File Viewer

Plan 9 Remote File Access from Emacs