[SOLVED] How to disable "No mail." message upon login?

This one's really stumping me. I disable the mail message a few months ago by creating a .hushlogin file in my home directory. That did the trick. Now, I am seeing the message again, and I don't know why. .hushlogin still exists in my home directory. Here's my /etc/login.defs:
# /etc/login.defs - Configuration control definitions for the login package.
# Three items must be defined: MAIL_DIR, ENV_SUPATH, and ENV_PATH.
# If unspecified, some arbitrary (and possibly incorrect) value will
# be assumed. All other items are optional - if not specified then
# the described action or option will be inhibited.
# Comment lines (lines beginning with "#") and blank lines are ignored.
# Modified for Linux. --marekm
# Delay in seconds before being allowed another attempt after a login failure
FAIL_DELAY 3
# Enable display of unknown usernames when login failures are recorded.
LOG_UNKFAIL_ENAB no
# Enable logging of successful logins
LOG_OK_LOGINS no
# Enable "syslog" logging of su activity - in addition to sulog file logging.
# SYSLOG_SG_ENAB does the same for newgrp and sg.
SYSLOG_SU_ENAB yes
SYSLOG_SG_ENAB yes
# If defined, either full pathname of a file containing device names or
# a ":" delimited list of device names. Root logins will be allowed only
# upon these devices.
CONSOLE /etc/securetty
#CONSOLE console:tty01:tty02:tty03:tty04
# If defined, all su activity is logged to this file.
#SULOG_FILE /var/log/sulog
# If defined, file which maps tty line to TERM environment parameter.
# Each line of the file is in a format something like "vt100 tty01".
#TTYTYPE_FILE /etc/ttytype
# If defined, the command name to display when running "su -". For
# example, if this is defined as "su" then a "ps" will display the
# command is "-su". If not defined, then "ps" would display the
# name of the shell actually being run, e.g. something like "-sh".
SU_NAME su
# *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
#QMAIL_DIR Maildir
MAIL_DIR /var/spool/mail
# If defined, file which inhibits all the usual chatter during the login
# sequence. If a full pathname, then hushed mode will be enabled if the
# user's name or shell are found in the file. If not a full pathname, then
# hushed mode will be enabled if the file exists in the user's home directory.
HUSHLOGIN_FILE .hushlogin
#HUSHLOGIN_FILE /etc/hushlogins
# *REQUIRED* The default PATH settings, for superuser and normal users.
# (they are minimal, add the rest in the shell startup files)
ENV_SUPATH PATH=/sbin:/bin:/usr/sbin:/usr/bin
ENV_PATH PATH=/bin:/usr/bin
# Terminal permissions
# TTYGROUP Login tty will be assigned this group ownership.
# TTYPERM Login tty will be set to this permission.
# If you have a "write" program which is "setgid" to a special group
# which owns the terminals, define TTYGROUP to the group number and
# TTYPERM to 0620. Otherwise leave TTYGROUP commented out and assign
# TTYPERM to either 622 or 600.
TTYGROUP tty
TTYPERM 0600
# Login configuration initializations:
# ERASECHAR Terminal ERASE character ('\010' = backspace).
# KILLCHAR Terminal KILL character ('\025' = CTRL/U).
# UMASK Default "umask" value.
# The ERASECHAR and KILLCHAR are used only on System V machines.
# The ULIMIT is used only if the system supports it.
# (now it works with setrlimit too; ulimit is in 512-byte units)
# Prefix these values with "0" to get octal, "0x" to get hexadecimal.
ERASECHAR 0177
KILLCHAR 025
UMASK 077
# Password aging controls:
# PASS_MAX_DAYS Maximum number of days a password may be used.
# PASS_MIN_DAYS Minimum number of days allowed between password changes.
# PASS_WARN_AGE Number of days warning given before a password expires.
PASS_MAX_DAYS 99999
PASS_MIN_DAYS 0
PASS_WARN_AGE 7
# Min/max values for automatic uid selection in useradd
UID_MIN 1000
UID_MAX 60000
# System accounts
SYS_UID_MIN 500
SYS_UID_MAX 999
# Min/max values for automatic gid selection in groupadd
GID_MIN 1000
GID_MAX 60000
# System accounts
SYS_GID_MIN 500
SYS_GID_MAX 999
# Max number of login retries if password is bad
LOGIN_RETRIES 5
# Max time in seconds for login
LOGIN_TIMEOUT 60
# Which fields may be changed by regular users using chfn - use
# any combination of letters "frwh" (full name, room number, work
# phone, home phone). If not defined, no changes are allowed.
# For backward compatibility, "yes" = "rwh" and "no" = "frwh".
CHFN_RESTRICT rwh
# List of groups to add to the user's supplementary group set
# when logging in on the console (as determined by the CONSOLE
# setting). Default is none.
# Use with caution - it is possible for users to gain permanent
# access to these groups, even when not logged in on the console.
# How to do it is left as an exercise for the reader...
#CONSOLE_GROUPS floppy:audio:cdrom
# Should login be allowed if we can't cd to the home directory?
# Default in no.
DEFAULT_HOME yes
# If defined, this command is run when removing a user.
# It should remove any at/cron/print jobs etc. owned by
# the user to be removed (passed as the first argument).
#USERDEL_CMD /usr/sbin/userdel_local
# Enable setting of the umask group bits to be the same as owner bits
# (examples: 022 -> 002, 077 -> 007) for non-root users, if the uid is
# the same as gid, and username is the same as the primary group name.
# This also enables userdel to remove user groups if no members exist.
USERGROUPS_ENAB yes
Please help.
Last edited by nbtrap (2012-07-14 21:59:46)

orbisvicis wrote:see "pam_mail.so" in /etc/pam.d/* and "man pam_mail". You most likely need the nopen argument.
Thank you. I fixed it by changing a line in /etc/pam.d/system-login. Specifically, I changed
session optional pam_mail.so dir=/var/spool/mail standard
to
session optional pam_mail.so dir=/var/spool/mail nopen

Similar Messages

  • How To Disable Verify Database Message Alert

    How To Disable Verify Database Message Alert?
    I have a VB6 open Crystal Reports using Crystal Reports XI R2 (SP5) and almost every time I open a report, I get an alert message about the table has been changed and I have to click "Ok" to make it goes away. Is there a way to  disabled this alert or set default to "Ok" so I do not have to  click this message every report. Thank you very  much.

    Hello,
    You must verify if the database has changed so you can't disable the message. CR must match what the DB is using or the reports will fail or return wrong data.
    It's odd that even after verifying the DB in the designer your app still needs it to be verify the report. You did save the report correct?
    Also:
    Dim CRApplication As CRAXDDRT.Application
    Dim Report As CRAXDDRT.Report
    Is the report creation engine and you should be using craxdrt.dll. You need to be licnesed to use craxddrt.dll and this may cause problems for you later when deploying.
    Use:
    Dim CRApplication As CRAXDRT.Application
    Dim Report As CRAXDRT.Report
    The mapping is not a switch you can turn on or off but it is Event driven. You need to add code to the viewer section to capture the event if the mapping event fires. Then you can set it to the way you want to use it.
    I suggest you purchase a case on line and get to the Report Design team to figure out why when you verify the report your app still thinks it needs to be verified. Something going on in your report that the forum makes it difficult to debug the problem. You can't attach files to forums.
    Link to Single Case purchase:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300
    Thank you
    Don

  • How do I transfer Mail Message Rules between Macs?

    How do I transfer Mail Message rules from an iMac running OS X 10.6.8 to an iMac running OS X 10.8.5? The names of the plist files don't match.

    The easiest way to accomplish this is to *create a new admin account* in the System Preferences/Accounts Pref Pane. Once the new admin account *(make sure the Allow user to administer this computer is checked in the new account)* is set up and performing like it should (by logging into it and verifying that you can actually administer the computer), change your primary account (the account that owns your emails) to a standard account by un-checking the *Allow user to administer this computer* in the Accounts Pref Pane. You can still administer the computer with your standard account, you will have to provide your admin login and password in the Authentication dialog boxes.
    Hope this helps.
    D.
    Message was edited by: D. Fraser

  • How to import old mail messages

    Hi all
    I have a new iMac. I have setup all my email accounts already. However I have about 2000 old email messages saved on two external hard drives ( through backups)
    How can I import and seamlessly integrate the old mail messages into the new iMac ?
    Thanks

    The normal method depends upon how you backed up your old mail. If you backed up the entire Mail folder and its content then use Mail's Import Mail option under the File menu. Select the Apple Mail option then click on the OK button. Navigate in the File Open dialog to the /Mail/Mailboxes/ folder. Select and click on the Open button. Check the mailboxes you wish to import then click on the Import button. Your mailboxes will appear in Mail's sidebar under the Imported Mail heading.

  • In search of assistance learning how to modify the mail message from an out of the box SP2010 approval workflow.

    So, I have found the article
    http://punaro.com/2012/01/derek/modifying-a-sharepoint-2010-workflow-email/comment-page-1/ which appears to walk through the process of modifying an out of the box workflow's mail message.
    However, there is a basic problem that I run into before I get started.
    I am logged into the system as a regular user (ie not a farm admin, etc.).
    I do, however, have full control on the site on which I am working.
    I create a custom list.
    I create a simple one step approval - sharepoint 2010 out of the box workflow.
    I start SharePoint designer and give it the URL of the list. It opens up and I see the various objects on the left side of the screen.
    I click right on the Workflows object - which is where the article says I will find the ability to copy and modify the workflow.
    All I see is "open", "open in a new tab" and "Pin".
    I selecdt open in a new tab - and I get a blank screen labeled workflows that says "There are no items to show in this view".
    So, I click on Lists and Libraries, then on the name of my custom list.
    When the list displays, the Workflows section of the page has a "Modified Workflow" displayed.
    When I right click on it, no menu is shown. When I click on the modified workflow, I get the workflow settings page for that workflow.
    I am trying to figure out how to create the copy of the workflow so that I can modify one of the mail messages in SharePoint designer.
    Is there someone who has some advice on how to find this copy and modify option?  Or perhaps a web site, web forum, article series, or book covering the topic?
    Thank you! 

    Hi lwvirden,
    According to your description, my understanding is that you want to modify the OOB approval workflow in SharePoint Designer.
    After opening the site in SharePoint Designer, just click Workflows in the left panel and then the workflows in the site will load in the right part.
    If you want to copy and modify the OOB approval workflow, then you need to right the approval workflow
    Approval – SharePoint 2010 under Globally Reusable Workflow. After that you will see the
    Copy and Modify button.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How can I save mail messages to my computer and not my mail program

    My mail program seems to be slow.  I'm not sure why.  I get the spinning ball frequently.  I need to save mail messages sometimes for a few years and there are hundreds of emails. Is it better to save them on my computer than my mail program?  I may need to retrieve them at some other time so they need to be readable.  Is that possible?
    I'm using OS X 10.9.4. I have a 3.06 GHz processor and 12 GB of memory.  Thanks

    You can select to export a folder to save as a .mbox file. This file would need to be imported if you wanted to view the messages.
    Select mailbox (folder)
    Under Mailbox in the Menu bar select Export Mailbox...
    You might also want to check out the demo for EagleFiler by the author for SpamSieve. You could view and search the messages archived in EagleFiler.
    http://c-command.com/eaglefiler/
    Regarding Mail being slow....
    Is it only Mail that is slow?  How much free space on your drive? Use Disk Utility to find available space.

  • How to delete empty mail messages in my Ipad2

    I am receiveng empty mail messages in IPad2 and can not select them for deletion. They have no headers, no from or to, nothing? Any clues on how to select them? Edit in mail does not work either.

    Try turning the account off and on : Settings > Mail, Contacts, Calendars , then tap the account on the right, slide Mail to 'off', exit settings and go back into the Mail app, and then go back to Settings and slide Mail back to 'on'

  • How do I delete mail messages without opening?

    I'm using Mountain Lion...before ML, when I had a mail message in my Inbox that I suspected might contain malicious content I could use multiple selection to delete it along with another email that was currently in the reading pane but no longer wanted. Mail would not show the malicious email in the reading pane after selection. Now whenever I select a message it's always opened in the reading pane. How do I select a message and delete it without opening it? This is a dangerous omission. Thanks.

    James,
    Here's a recent thread on the subject that may be of interest.
    https://discussions.apple.com/message/19300450#19300450
    Matt

  • How do you stop mail messages from poping up in ipad

    When I turn on my Ipad 3, i receive mail messages in the center of the screen of all new messages.  you have to manually tap each screen in the middle of the screen to continue working.  I changed the setting in general mail to manually fetch the mail, however the messages still pop up.  This is not part of the notifications screen that you can pull down from the top of the screen.  Any suggestions
    Thanks

    Re-visit Settings/Notifications/Mail. It is probably set to "Alerts" which require an action before they are removed. Set it to Banners which go away on their own or None to remove them completely.

  • How can I save mail messages on iPad

    I (strictly, my wife) have just bought a WiFi-only iPad to replace an ageing MacBook, and I also have an iMac.  I have a need to store and organize a limited number of Mail messages in the iPad, such that they are available in the future when I do not have internet access - i.e. while travelling.  These are varied, but typically contain reference information, reservation details, receipts, directions, etc.
    Previously, this was easy to do with the MacBook.  I set up our GMail account as POP3, and filed such messages as we needed in as many Filed Mail mailboxes as I wanted.  Unfortunately, if you set up a Mail account as POP on the iPad, you can't define Filed Mail mailboxes.  And if you set up the account as IMAP, you don't have access to your filed mail when not connected to the internet.  So you're damned if you do, and damned if you don't.
    So here's the question.  Is there any organised way to save messages permanently on the iPad?  And any attachments need to be kept as well.  While strictly they no longer need to be in Mail format (i.e. can't be forwarded or replied to), that would be a less convenient approach, and those all-important attachments would have to be dealt with.  But I am willing to be flexible.
    And before anyone says that POP will not work with multiple devices, GMail POP has a feature that allows the same email to be downloaded to multiple devices as well as being held on the server if required, and all sent emails are also echoed back to all devices (the "recent" feature).  This has worked fantastically up to now.
    Any help would be appreciated.

    Do you need to be able to initiate this entirely from the iPad, or would it be acceptable to have to use one of your Macs when you save one of the limited number of messages? If involving a Mac would be acceptable, I can see ways to work around the iPad's lack of local mailbox storage.
    You could use one of the various free cloud storage services that allow general file storage and local retention on the iPad (for example, Dropbox or Dump Truck, but not iCloud).
    For Dropbox, you would make a folder for this cluster of saved messages inside Dropbix. For each message you want to save, create a folder inside that cluster folder, do a "Save As..." in Mac Mail.app for the text body, then a "Save Attachments..." if appropriate. (The inner folder wouldn't be strictly necessary for messages without attachments, but I suggest it for consistency.)
    The key part is to open Dropbox on the iPad and mark the message and attachments as favorites (starred). That causes Dropbox to preload them on the iPad and retain them there until they are unstarred (lose favor).
    You could probably do something similar with Evernote and favorites.

  • How do I keep Mail messages from vanishing?

    I don't use  iCloud for much, but I have sent a few Mail messages from my iPad (iCloud address) and I have received a few at that address that I need to be able to view on my Mac and to have available for viewing on my iPad. The received messages consistently disappear after a few weeks. The most recent one that I forwarded to my iCloud address from my desktop machine appeared in the list of messages (already a very short list due to the vanishing act) for a nanosecond when I first opened Mail on my iPad, and then vanished. Only a single message is still there out of maybe a dozen messages that ought to be there.
    The iPad is running the most recent iOS version. I use Snow Leopard most of the time on my Mac, but I boot into Mountain Lion when I have to: I sync the iPad in Mountain Lion. I access iCloud through my browser when I'm in Snow Leopard.
    What do I have to set or change to make iCloud e-mail at least minimally useful? I've looked at the settings, and don't see anything obvious. My regular e-mail accounts are configured to never automatically be deleted from the server, but I don't see a way to do that with iCloud mail.

    Ok, just discovered it only does this in split-keyboard mode.

  • How to open multiple mail messages in their own windows

    All:
    Anyone know of a keyboard command to open several Mail messages in their own windows? For example, I can't highlight all messages in the Inbox and then double click one of them to open them all in separate windows.
    Surprisingly, Mail lacks an Open... command.
    TIA,
    Mike
      Mac OS X (10.4.4)  

    Just select multiple messages and hit Return.

  • How to parse raw mail message into JavaMail MimeMessage?

    Hello developers,
    I'm trying to implement the following functionality:
    * Postfix accepts incoming mail message and feeds it into java application
    * java application reads the input and parses it into JavaMail Message object
    There is no trouble with first part, though, as far as I've seen, JavaMail is mostly used for creating messages part by part, sending them or checking existing mailboxes. Is there a way to read message on the fly without any sessions and connections to mailbox provider service, which I do not need?
    Thanks,
    Tomas Varaneckas

    Don't see why not. I notice that almost everything in JavaMail that returns a Message object is a method of the Folder class, which is abstract. So you could write a subclass of Folder and have it return Message objects in whatever way you liked.

  • How to hide the mail message size

    Suddenly, when writing a new email message I have a new field that appeared - Message Size.
    I have not found a way to hide this. Can it be hidden? Can the signature field be hidden too?
    Thanks

    WHENEVER YOU UPDATE A NEW FIRMWARE, THEN ITUNES GIVE YOU TWO OPTION, 1. BACKUP IN MY ICLOUD, 2. BACKUP TO MY COMPUTER, YOU CAN CHOSE YOUR OPTION AND THEN BACKUP. CONTACTS, MAIL, MESSAGES BACKUP IS BEEN TAKEN UP BY ICLOUD.
    NOTE: FOR MAIL BACKUP, YOU NEED TO HAVE MICROSOFT'S OUTLOOK 7, TO VIEW IT.
    APPS, BOOKS, SONGS, ALL ARE STORED IN YOUR COMPUTER. GO TO MY COMPUTER>C DRIVE>USER>CLICK ON YOUR FOLDER NAME OR ADMINISTRATOR NAME>MY MUSIC....AND THEN YOU WILL SEE ITUNES FOLDERS WHERE THERE IS BACKUP OF YOUR APPS, BOOKS, SONGS, VIDEOS.
    RESTORE HAS TWO OPTION, RESTORE FROM ICLOUD OR MY COMPUTER, IF YOU MADE A BACKUP IN YOUR COMPUTER, THEN CHOOSE RESTORE FROM MY COMPUTER OPTION.
    NOTE: FOR PICTURES FROM CAMERA ROLL, FIRST, PLUG YOUR DEVICE IN YOUR MAC OR PC, THROUGH USB PORT. GO TO MY COMPUTER> YOU WILL SEE IPHONE ICON, CLICK IT. INTERNAL STORAGE>DCIM>CLICK THE FOLDER NAMED IN NUMBERS AND THEN YOU CAN SEE ALL YOUR PICS. COPY ALL AND KEEP IT IN YOUR DESIRED FOLDER.
    ITUNES IS THE SOLE PROVIDER OF YOUR RESTORATION AND BACKUP, HAVE A LOOK TO EVERY OPTION AND DISCOVERY NEW ATTRIBUTES OF ITUNES. THIS WILL STRENGTH YOUR KNOWLEDGE ABOUT YOUR IDEVICE.

  • How to disable the alert message that comes in older browsers while loading

    Hi!
    I'm testing the ADF Rich faces app on Firefox 2.0.01.
    It's working fine, but still I get the Error "" You are using unsupported Gecko Browser,the Supported Gecko browsers are 2.0.02 and higher".
    I don't want that message to be displayed to the user, though he may be using older browsers..
    I Suppose the application developer can handle it according to the demands of the of the situation...
    Can you suggest a way to disable that alert message which is very annoying to the user , every time a page is loaded ?
    Thanking you in advance,
    Samba

    I filed your complaint as an ER. For tracking purposes the ER number is 6160631.
    --RiC                                                                                                                                                                               

Maybe you are looking for

  • How to handle password changes if we implement singlesignon between BO& BI7

    Hi, As we know ,we can implement single signon between BO and SAP BI 7, by importing roles and users through CMC and by selecting the option "Use Single signon during report refresh time". My doubt here is, When we import roles from SAP and Auto impo

  • KeyStroke Event Handler Registration

    Any idea why the two cases in the sample code below have different output??? The different key registration methods seem to work for other keystrokes like ctrl-v and ctrl-c, but not Home and End.: import javax.swing.*; import java.awt.*; import java.

  • Canot boot properly :solaris 10

    hi, I am new in solaris , I just insatll solaris 10 . My comp. configiration is intel(32bit ) P-4 2.26Ghz RAM 256MB there was no prob when i was installed it , but when it boot it shows MEG singnal is failed . but my BIOS sttings it has VGA . Then th

  • OS X 10.6.8 and Firefox

    Since updating my system to 10.6.8 a few days ago, Firefox (version 3.6.8) is crawling -- it's taking anywhere from 20 to 40 seconds to load a page, something that never happened before. I checked all my settings and add-ons, and even cleared the coo

  • IPhone - having trouble setting up bellsouth email account

    My sister just bought the new iPhone 3gs and we can't seem to set up her e-mail account on it. I have the "old" iPhone 3g and have the same email settings as she does (bellsouth.net) and was able to set it up prior to upgrading to the new 3.0 softwar