LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-25-2005, 07:36 PM   #1
tomasch
LQ Newbie
 
Registered: Feb 2005
Posts: 10

Rep: Reputation: 0
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
 
Old 02-25-2005, 09:11 PM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
Have a look at /etc/profile

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

Last edited by DavidPhillips; 02-25-2005 at 09:13 PM.
 
Old 02-25-2005, 09:36 PM   #3
tomasch
LQ Newbie
 
Registered: Feb 2005
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
Old 02-25-2005, 10:28 PM   #4
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

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


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creates unwanted copies~ civ247 Mandriva 1 10-29-2004 10:47 PM
howto make a dir shared that is not in my home dir Schmurff Linux - Newbie 2 06-19-2004 07:54 PM
krecipes and ./configure -with-qt-dir=DIR disco rugby Linux - Software 4 06-13-2004 09:06 PM
useradd not accepting dot so i am not able to use dot in mail id hanu_raob Linux - General 5 05-13-2004 07:04 AM
kmail 1.6 (kde 3.2.1) ignores my .Mail dir dukeinlondon Linux - Software 1 03-19-2004 06:18 AM


All times are GMT -5. The time now is 06:49 PM.

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