HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Newb: (Ubuntu) How do I automatically create a custom environment for all new users? (http://www.howtoforge.com/forums/showthread.php?t=37375)

Slowhand 12th July 2009 16:16

Newb: (Ubuntu) How do I automatically create a custom environment for all new users?
 
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

falko 13th July 2009 11:37

I think you can do this with a shell script.

id10t 13th July 2009 15:53

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.

Slowhand 15th July 2009 00:48

Quote:

Originally Posted by id10t (Post 198092)
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.

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


All times are GMT +2. The time now is 03:14.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.