[CLUG] useradd/usermod/userdel tools
R.Y.Fixer
fixer at vigilante.net
Wed Feb 20 18:54:35 GMT 2002
On Wed, 2002-02-20 at 18:18, adam wrote:
> > I'm pretty sure you can specify the homedir with useradd, yep, "man
> > useradd"
> >
> Reckon he means something to automate the process Donncha...
yes, I don't want to have to manually add those command line options
each time. I am currently just writing a wrapper script to do it. read
in $username, grab the first 2 characters as individual variables, then
execute useradd -D /home/$one/$two/$username (I ask for 2 levels of
naming since that is what the Well uses so I thought there might be
available tools for that format already)
I have a load of users on a public server, and I also have five 4 gig
u/w scsi disks that aren't doing much, so I am experimenting with
spreading the homedirs out like so:
/home/[a-d] -> /mnt/disk1/[a-d]
/home/[e-h] -> /mnt/disk2/[e-h]
etc
More information about the Cork
mailing list