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]
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!