Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th July 2009, 16:16
Slowhand Slowhand is offline
Member
 
Join Date: Sep 2007
Posts: 96
Thanks: 6
Thanked 0 Times in 0 Posts
Default 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

Last edited by Slowhand; 12th July 2009 at 16:24.
Reply With Quote
Sponsored Links
  #2  
Old 13th July 2009, 11:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,703 Times in 2,546 Posts
Default

I think you can do this with a shell script.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 13th July 2009, 15:53
id10t id10t is offline
Senior Member
 
Join Date: Nov 2008
Posts: 237
Thanks: 2
Thanked 22 Times in 22 Posts
Default

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.
Reply With Quote
  #4  
Old 15th July 2009, 00:48
Slowhand Slowhand is offline
Member
 
Join Date: Sep 2007
Posts: 96
Thanks: 6
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by id10t View Post
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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cacti and ISPConfig: Monitoring Tool VMartins Tips/Tricks/Mods 11 9th August 2008 18:37
Adding users automatically Crimm General 2 5th January 2008 18:33
"Virtual Users And Domains With Postfix, Courier And MySQL (Ubuntu 6.10 Edgy Eft)" 4integration HOWTO-Related Questions 40 28th September 2007 04:41
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 03:40
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


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


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