adduser

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...

#! /bin/sh
# /usr/local/sbin/adduser
# This script gives the adduser functionality
#

useradd $1 -d /home/$1 -g users -s /bin/bash -m -k /etc/skel

passwd $1
# End /usr/local/sbin/adduser



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Michael A. Peters--		http://216.22.163.20/Linux_Pages/
				http://www.linuxzombies.com/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 937 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20000604/8a267095/attachment.bin>


More information about the lfs-dev mailing list