On Sun, May 09, 2004 at 11:34:21PM +0400, Alexander GQ Gerasiov wrote: > Господа, а действительно вопрос, где задается переменная MAIL? > /etc/login.defs говорит о /etc/pam.d/login но в самом pam.d/login > наоборот указание, что лучше задавать через login.defs Он говорит только о том, что _при_изменении_ тут нужно озаботиться и /etc/pam.d/login, чтобы он при успешном логине смог выдавать инфу о наличии новых писем: # NOTE: This is used to setup your MAIL environment variable, and also # used by userdel to determine if any mail spools need to be removed # when # removing a user. If you change this, you should also change the # pam_mail.so module setup in /etc/pam.d/login, which affects the "You # have mail" message on login, and, in default setup, overrides this # setting # in determining the $MAIL environmental variable. > Но в то же время изменения login.defs вроде бы ни на что не влияют... Только что попробовал: mn@tabernacle:~$ cp /etc/login.defs . mn@tabernacle:~$ sudo vim /etc/login.defs mn@tabernacle:~$ diff login.defs /etc/login.defs 38,39c38,39 < MAIL_DIR /var/mail < #MAIL_FILE .mail --- > #MAIL_DIR /var/mail > MAIL_FILE .mail mn@tabernacle:~$ sudo su - masha masha@tabernacle:~$ mutt /home/masha/.mail: No such file or directory (errno = 2) mn@tabernacle:~$ sudo vim /etc/login.defs mn@tabernacle:~$ diff login.defs /etc/login.defs mn@tabernacle:~$ sudo su - masha masha@tabernacle:~$ mutt Почтовый ящик не изменился. masha@tabernacle:~$ Влияют, да и еще как :-) Если посмотреть тот же /etc/login.defs, то: # *REQUIRED* # Directory where mailboxes reside, _or_ name of file, relative to the # home directory. If you _do_ define both, MAIL_DIR takes precedence. # QMAIL_DIR is for Qmail (or any maildir-compatible MTA, such as Exim # or # Postfix when suitably configured). # # Essentially, MAIL_DIR defines the $MAIL environmental variable # (for mbox use) by appending the username to MAIL_DIR as defined # below. MAIL_FILE defines the $MAIL environment variable as the # fully-qualified filename obtained by prepending the user home # directory before $MAIL_FILE, and QMAIL_DIR defines the MAIL # environment variable as the fully-qualified directory name # obtained by prepending the user home directory before $QMAIL_DIR. -- MAN-UANIC Eclipse.org downloads @ http://eclipse.osdn.org.ua/
Attachment:
signature.asc
Description: Digital signature