Newb: (Ubuntu) How do I automatically create a custom environment for all new users?

Discussion in 'Installation/Configuration' started by Slowhand, Jul 12, 2009.

  1. Slowhand

    Slowhand New Member


    As the admin of a box with lots of other users, how would I go about setting things up so that each new user created on the box is given an environment other than the Ubuntu default.

    Say I was starting with a fresh install of Jaunty desktop and I wanted each new user I create have a custom folder/permissions setup.

    The standard setup in terms of folders seems to be:

    /Templates (What the heck is this for...?)

    What if I wanted each user to automatically be presented with:
                 /Personal Documents
                 /School Documents
                /Private Pictures
                /Shared Pictures
    All with non-standard permissions.

    Is this even possible?

    Last edited: Jul 12, 2009
  2. falko

    falko Super Moderator ISPConfig Developer

    I think you can do this with a shell script.
  3. id10t

    id10t Member

    Everything that is in /etc/skel gets copied to the new users home directory when the user is created... just set things up in there the way you want them.

    When you set permissions on them, the user/group will change from root to the user being created and the primary group - if you want them changed to soemthing else, you'll need to do it after the fact with a script.
  4. Slowhand

    Slowhand New Member


    I find that I can only *add* to the file structure using this method.

    How do I get a new-user file structure *without* the 'Documents' folder for instance?

    Can you guys elaborate on the script you are suggesting? It's way over my head but if you would publish a suitable one here I'm sure a great number of people would be eternally grateful :)


Share This Page