[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] enteruser pw pw.conf
Hi Chris
> >
> > It can create user accounts with the creation of public_html directory
> >
>
> If it's for this, then useradd can create home directories based on a
> skeleton if you specify the "-m" flag ... the skeleton is usually
> /etc/skel but you can change this with the "-k" switch. useradd just copies
> this directory to the new users home (i.e., the equivalent of just doing:
> cp -pr /etc/skel $HOME ).
Fine this is the contents of my /etc/skel directory.
> If I've missed summat, shout :)
>
> Chris...
--
What file should I edit for useradd to create public_html when a new user is created.
[root@lxserver skel]# ls -lh
total 4.0K
drwx------ 2 root root 4.0K Aug 14 2002 tmp/
[root@lxserver skel]# ls -la
total 36
drwxr-xr-x 3 root root 4096 Apr 8 23:53 ./
drwxr-xr-x 73 root root 8192 Jun 16 06:15 ../
-rw-r--r-- 1 root root 24 Jan 14 19:33 .bash_logout
-rw-r--r-- 1 root root 191 Jan 14 19:33 .bash_profile
-rw-r--r-- 1 root root 124 Jan 14 19:33 .bashrc
-rw-r--r-- 1 root root 141 May 15 2001 .mailcap
-rw-r--r-- 1 root root 3761 Jan 20 14:25 .screenrc
drwx------ 2 root root 4096 Aug 14 2002 tmp/
right useradd -k # template file
Please could you give it as by way of an example!!
regards
derf
>
> fred <fred.dodd [at] btinternet.com>
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.