/etc/skel directory

The system will copy the contents of the /etc/skel directory to the user’s HOME directory.

The useradd command allows an administrator to create a default HOME directory configuration, then uses that as a template to create the new user’s HOME directory. This allows you to place default files for the system in every new user’s HOME directory automatically. On my Linux system, the /etc/skel directory has the following files.

root@dell:/etc/skel# ls -ld *
drwxr-xr-x 2 buddy buddy 4096 Oct 11 2008 Desktop
drwxr-xr-x 2 buddy buddy 4096 Mar 4 2009 Documents
drwxr-xr-x 2 buddy buddy 4096 Mar 4 2009 Download
drwxr-xr-x 2 buddy buddy 4096 Mar 4 2009 Music
drwxr-xr-x 2 buddy buddy 4096 Mar 4 2009 Pictures
drwxr-xr-x 2 buddy buddy 4096 Mar 4 2009 Public
drwxr-xr-x 2 buddy buddy 4096 Mar 4 2009 Templates
drwxr-xr-x 2 buddy buddy 4096 Mar 4 2009 Videos

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.