Just like my other two posts here is how you can modify your default user settings in Linux. This is similar to OSX but instead of “/System/Library/User\ Templates/English.lproj” being our template directory. It is “/etc/skel”.
The skel directory stands for skeleton and it is where the default files and settings come from when you create a new user in Linux. The skel directory is a lot more basic than Windows or OSX mainly because A) not much is needed to create a Linux profile and B) all of the configuration files are stored in plan text and not some fancy .plist or .dat file.
Typically, most distros will only include three files in their “/etc/skel” directory. Those files are “.bash_logout”, “.bash_profile”, and “.bashrc”. If you want to include any more files/settings you can simply edit the configuration in your profile (or a temporary user), copy the setting files to the “/etc/skel” directory, and chown the files with root:root.
What if you don’t want to overwrite the files that came with your distro but you still want to make a skeleton directory? Simple, edit the “/etc/adduser.conf” file and set the SKEL value to whatever you want. Just make sure that the folder is available to root when you are trying to create the new user. In other words, don’t put the folder on a removable drive.
If you are using the GUI to create the new user the files and settings will be copied automatically and if you are using the adduser command just make sure you use the -m flag.
That is really all there is too it. Let me know if you have more tips for creating a user profile or if this helped you out in the comments.
-
Tags
7 2009 Apple comparison diy dlna Funny google Hardware How-to howto HP Linux linux mint log Microsoft mythbuntu MythTV nas OSX palm pidgin predictions Projects ps3 remote Review rock band root beer rss Software Stupid Apple theme twitter Ubuntu Video Video Games vista Wallpaper webOS WHS windows Windows 7 windows xp zune
No Comments