Voytek wrote:
<quote who="Andrew Cowie">Try looking at adduser(8), you can set the shell, disable creation of home directory etc from
On Tue, 2004-19-10 at 19:15 +0800, Glen Lewis wrote:
man maildirmake
Which is just a fancy way of doing
mkdir d mkdir d/new mkdir d/cur mkdir d/tmp
where d is your target directory name, perhaps "Maildir"
Andrew, Glen, thanks
yes, meanwhile, I've located the courier-imap, and, found the maildirmake...
as my memory isn't what it needs to be... how can I call this function whenever I create a new user ?
and more to the point:
when I create a new user, I want to defualt to 'no shell, bin/false' rather than shell, and, NOT to create all these . files that I then delete in /home/username .
the command line or through /etc/adduser.conf. Or alternatively
you can create the files you want under /etc/skel (and remove the unwanted dot-files).
Again, this is on Debian. I forgot which system you have.
Then you can wrap it all in your own custom shell script which passes the user name
from the command line to adduser/maildirmake/mkdir/chown/whatever.
Cheers,
--Amos
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
