Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

up vote 22 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:

share|improve this answer

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

The other option would be to script it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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