create user home dir

Rotariu Bogdan-Stefan bogdan at alterox.ro
Thu Mar 2 00:01:51 UTC 2006


Marcel Janssen wrote:

>Hi,
>
>I've created a user on my system without creating a home dir for this user a 
>while ago.
>Now I'd to add the home dir for thi suser and thought usermod could do that 
>for me.
>I issue :
>
>usermod -d /home/user1 -m user1
>
>  
>
Hi,

Try copying /etc/skel like this :

cp  /etc/skel /home/user1 -R
chown user1: /home/user1 -R

-- 
Bogdan-Stefan Rotariu
Senior Network Administrator
Alterox Sistem, Suceava
+40740315301
+40330101033 (Data center Phone)
+40330101001 (Office Phone)


---
This message was scanned for spam and viruses by Alterox mail server.




More information about the fedora-list mailing list