How to disable 3 login attempts (allow as many logins without suspending) on HP-UX Solaris Linux

Posted on 2008-11-18
Last Modified: 2013-12-21

How can I disable ssh & console login (ie login via ssh & at the physical console)
 attempts for the following Unix :
a) HP-UX trusted(enhanced security) system, B11.23 (ie one without /etc/shadow file present)
b) HP-UX B11.11 (normal HP-UX)
c) Solaris 8, 9, 10
d) Redhat Linux 4.x & 5.x

Also, how can I extend the current password expiry of 90 days to say 180 days
for all the above UNIXes?

Question by:sunhux
    LVL 61

    Assisted Solution

    How do you find out "the current password expiry of 90 days" on ALL systems?
    LVL 38

    Accepted Solution

    1) For Solaris modify /etc/default/login file to make sure
    is commemted out (Put a # in front of the line or delete it)
    2) For HP-UX, ([ a) and b) ] , you can run sam (GUI tool)
    Accounts for Users and Groups -> Users, select the user from the list, go to the ACTIONS menu and select 'Modify Security Policies'. This will then allow you to modify the security settings for that particular user.
    or modify the system Policies.
    also have a look at:
    3) For RedHat, have a look at your /etc/pam.d/system-auth file
    for more details.

    Author Comment

    > How do you find out "the current password expiry of 90 days" on ALL systems?
    Guess I'll just select a few ids/accounts & issue "passwd -s id" & this will tell me
    the expiry of the account/id.  This gives me a clue, so  "passwd -x 180 id"
    would extend the expiry of the account/id to 180 days, thanks.

    thanks Gheist, looks like I have to do "export DISPLAY=0:0; export TERM=vt100; xhost +"
    before I could run SAM properly in my ssh session.

    Found from the link you gave the commands to increase the max retries on terminals
    & for ids/accounts are respectively :

    1) For t_maxtries:
    /usr/lbin/modprterm -m tmaxtries=25

    2) For u_maxtries:
    /usr/lbin/modprdef -m umaxlntr=9

    Will allocate points after this weekend so that I can quickly refer to my "Open Questions"
    section.  Thanks a lot

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
    Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now