Re: specialized subdirectory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Crucificator wrote:
Crucificator wrote:

Check out /etc/skel

j.travis wrote:

I would like to create a specialized subdirectory whenever useradd is invoked. More specifically:

for a user:          user1
with a home directory:     /home/share

I would like to automatically create:

/home/share/.user1-mail/     when I issue:

useradd -d /home/share user1 I have been looking through the files in /etc/profile /etc/skel /etc/bashrc and whatnot but haven't found the right spot yet. Any ideas?






Ooops, sorry, I didn't see that you are trying to create a directory outside your user home directory

I don't think he is ( actually , I have no evidence to that the OP is male... oh well, I've said it now).
The problem with the /etc/skel method is that it will copy the entire contents of /etc/skel to the new homedir, with their original names. If all the users being added share the same homedir (ill-advised in my personal opinion ;-) ) there will only ever be one mail directory...


Stuart


-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux