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

    Hi

    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:

    Home/Desktop
    /Documents
    /Music
    /Pictures
    /Public
    /Templates (What the heck is this for...?)
    /Videos

    What if I wanted each user to automatically be presented with:
    Code:
    Home/Desktop
        /Documents
                 /Personal Documents
                 /School Documents
        /Music
        /Pictures
                /Private Pictures
                /Shared Pictures
        /Public
               /Dropbox
        /Videos
    
    All with non-standard permissions.

    Is this even possible?

    Slow
     
    Last edited: Jul 12, 2009
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter 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

    id10t,

    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 :)

    S
     

Share This Page