useradd to create empty home dir

Mike McGrath mmcgrath at iesabroad.org
Thu Oct 27 14:17:47 UTC 2005


 

> -----Original Message-----
> From: fedora-list-bounces at redhat.com 
> [mailto:fedora-list-bounces at redhat.com] On Behalf Of Gary Stainburn
> Sent: Thursday, October 27, 2005 8:55 AM
> To: fedora-list at redhat.com
> Subject: useradd to create empty home dir
> 
> How do I get useradd to create an empty home directory?
> 
> I've tried to use -k and --skel to point to /dev/null and to 
> /etc/empty_dir which believe it or not is an empty dir I 
> created under /etc
> 
> No matter what I try, useradd fails with exit code 2.  If I 
> don't specify -k or --skel it works fine.
> 
> --
> Gary Stainburn
>  
> This email does not contain private or confidential material 
> as it may be snooped on by interested government parties for unknown
> and undisclosed purposes - Regulation of Investigatory Powers 
> Act, 2000     
> 

useradd -mk /home/usersdir username

	-Mike




More information about the fedora-list mailing list