LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Can I specify where useradd creates mail dir ? (https://www.linuxquestions.org/questions/linux-general-1/can-i-specify-where-useradd-creates-mail-dir-294937/)

tomasch 02-25-2005 07:36 PM

Can I specify where useradd creates mail dir ?
 
Do any of you know if it's possible to change where 'useradd' creates the mail directory or is this hard-coded at compile time.

most systems user /var/mail/username

but I like the whay trustix does it as /home/users/username/Maildir

Any ideas would be helpful!

TIA

Tom

DavidPhillips 02-25-2005 09:11 PM

Have a look at /etc/profile

Maybe /etc/profile.local depending on what you have

tomasch 02-25-2005 09:36 PM

changing it in /etc/profile has no effect.
I can create the directories by modifying /etc/skel but the default mail directory is still created in /var/mail

thanks for the suggestion though!

T

DavidPhillips 02-25-2005 10:28 PM

that should work, maybe your mta is setup to override the setting in /etc/profile.


All times are GMT -5. The time now is 09:35 AM.