Booser Empowering your life

21Nov/110

/etc/skel directory


/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@mycoolserver:/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
Link To This Page
1. Click inside the codebox
2. Right-Click then Copy
3. Paste the HTML code into your webpage
codebox

Incoming search terms:

Tagged as: , , No Comments