[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Create new users in a special way



> Hello!
> 
tach auch! :)

> Now I want to create /home/directories in the way the programm "adduser"
> create /home/directories /copying files from /etc/skel and copy them in
> user's home directory, and so on.
> 
for user in `cut -f1 -d: </etc/passwd`; do
  su - $user -c 'cp -r /etc/skel ~'
done 

might be a point to start (don't even think about just executing it).

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.



Reply to: