Michael A. Peters
moonglue at 141.com
Sun Jun 4 13:22:18 PDT 2000
This is the script I use for adduser on my LFS system.
It adds a user to the /etc/passwd file, gives him a shell, puts him
in the group "users", and gives him basic stuff like a bash profile
and x defaults (whatever I have in the /etc/skel directory).
I'm posting it 'cause I though it might be beneficial to some prople
who, like me, don't like to have to look at a man page every time
they use useradd or have to do eveything manually.
I'd also like to know, though, if there's anything I forgot...
# This script gives the adduser functionality
useradd $1 -d /home/$1 -g users -s /bin/bash -m -k /etc/skel
# End /usr/local/sbin/adduser
Michael A. Peters-- http://184.108.40.206/Linux_Pages/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 937 bytes
Desc: not available
More information about the lfs-dev