From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] adding a new user From: andrey mirtchovski In-Reply-To: <20040227051716.GA23813@david.ath.cx> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Thu, 26 Feb 2004 21:34:38 -0700 Topicbox-Message-UUID: fcc7724e-eacc-11e9-9e20-41e7f4b1d025 the fossilcons man page contain all information about new users. depending on installation you may need to create some extra directories (apart from /usr/newuser, which fossil will create if you don't tell it not to). on ucalgary i always forget to create /mail/box/newuser and /cron/newuser so there's this script i use, which has the potential to turn into a basic plan9 command if i write the man page for it: home% cat /bin/adduser #!/bin/rc rfork e switch( $#*) { case 1 newuser=$1 case * { echo 'usage: '^$0^' username' exit usage } } echo 'echo uname '^$newuser $newuser^' >> /srv/fscons' echo 'echo create /active/mail/box/'^$user $user^' upas d775 >> /srv/fscons' echo 'echo create /active/cron/'^$user $user $user^' d775 >> /srv/fscons' home% it works like 'kill' -- suggesting the command for creating a new user. if there's anything extra i can edit the commands in place before sending them to rc: home% adduser f2f echo uname f2f f2f >> /srv/fscons echo create /active/mail/box/andrey andrey upas d775 >> /srv/fscons echo create /active/cron/andrey andrey andrey d775 >> /srv/fscons home% works only as the fossilcons owner :) andrey