i have on my server a settings i use for all my users. every time i create a new user i have to copy all the settings over and over.

for example:

  • .vimrc.
  • .profile
  • .bashrc
  • firefox homepage to our intranet
  • evolution settings (server and username) etc...

i saw skel can do it, is there a easy way to setup a user with my settings when i adduser?

thanks

up vote 25 down vote accepted
+150

Everything should be located in the /etc/skel folder.

You need to create a link on the desktop for all users:

mkdir -p /etc/skel/Desktop
cd /etc/skel/Desktop/
vi shortcut.desktop
    [Desktop Entry]
    Version=1.0
    Name=ShortCut
    Comment=Visit ShortCut
    GenericName=ShortCut
    Exec=firefox http://intranet.ShortCut.com
    Terminal=false
    X-MultipleArgs=false
    Type=Application
    Icon=firefox
    Categories=Internet
chmod +x shortcut.desktop

That will create a link on the desktop.

Here's few articles that will help you for what you need:

I think putting the various things you want to use in /etc/skel is the simplest.

The other option would be to script it.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.