Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 09-07-2005, 09:49 AM   #1
Registered: Nov 2003
Location: Belgium
Distribution: Mandriva
Posts: 91

Rep: Reputation: 15
new directories for new users


Im wondering about something,

When I create a new user with useradd or userdrake, I get a new user with a password and home directory. but also I get a file in /var/spool/mail/<username>

yesterday i used suse 9.3 for a while and i saw that when creating a new user i got the same stuff but already in the home directory there were other subdirectories like bin/http_docs and stuff like that.

the question i have now is the following. Where can i see and alter the things that happen when a user is created? Because i actually would like to have a predefined directory structure for every user.

So when i create a user <john>, i would like to have the following
a home directory /home/john with subdirectories bin, www, mail
i would like to have a file /var/spool/mail/john
i woul like to alter some files containing the users name (for example /etc/postfix/aliases)

and so on and so on

do i have to write a script for this, or can i just alter some configuration files?


Old 09-07-2005, 10:07 AM   #2
Registered: Nov 2003
Location: Belgium
Distribution: Mandriva
Posts: 91

Original Poster
Rep: Reputation: 15
Okay i have found the solution of the subdirectories

I have to put the predefined directory in /etc/skel
for the changes of the file i could write a script. Although it would be nice if there is an other solution for that.

If there excisted something like ADD_CMD in /etc/login.defs that would be nice... unfortunately



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
securing users to certain directories ? lozza1978 Linux - Newbie 2 05-09-2005 10:04 PM
Skeleton directories for new users? jungatheart Linux - Newbie 2 04-24-2004 03:44 PM
Enter other users' directories MasterC Linux - General 14 11-27-2002 12:57 AM
Administering WU-FTPD....users...directories... scubes13 Linux - Networking 3 08-22-2002 11:03 AM
How to backup directories used by several users? J_Szucs Linux - Software 3 05-08-2002 01:48 PM > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration