[CLUG] useradd/usermod/userdel tools
Donncha O Caoimh
donncha.ocaoimh at tradesignals.com
Thu Feb 21 10:18:35 GMT 2002
Writing the script is probably the best/only way of doing it as you're
applying a special use for a generic tool, but I guess you've figured
that out already!
Donncha.
"R.Y.Fixer" wrote:
>
> 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