new directories for new users
Hi,
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? thanks klaas |
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 klaas |
All times are GMT -5. The time now is 09:25 AM. |