from small one page howto to huge articles all in one place
May 25th. 2007:
April, 26th. 2006:
You are here: System->Tips and Tricks
This tip shows you how to use /etc/skel to ensure that all new users on your system get the same initial settings.
The /etc/skel directory is the directory used by useradd to create the default settings in a new user's home directory.
To change the location of /etc/skel, edit /etc/default/useradd.
Code Listing 1
# useradd defaults file
Typically files included in /etc/skel are .rc files for shell initialization, but you could also include a public_html directory, a custom dircolors file, or anything else.
Code Listing 2
% ls -A /etc/skel
.bash_profile .bashrc .maildir .screenrc .tcsh.config
For more information on customizing /etc/skel see man useradd.
rate this article:
current rating: average rating: 2.2 (234 votes) (1=very good 6=terrible)
Support this site
Please read "Why adblockers are bad".
Other free services