Sponsored Content
Operating Systems Linux SuSE How to lock the account after consecutive unsuccessful login in SUSE Post 302306899 by amitranjansahu on Tuesday 14th of April 2009 07:32:40 AM
Old 04-14-2009
In /etc/default/login define RETRIES=7;
It defines a global limit which, when locking is enabled, will lock accounts after exceeding this count.

By default its commented
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Setting an account to be a non-login account automatically?

Is there a way to easily change an account to be a non login account (NP in the shadow) file? I know I can just edit the file but that is not what we want to do. We use access control software and want to provide a way to set an account to be non-login using simple commands that can be mapped... (0 Replies)
Discussion started by: LordJezo
0 Replies

2. SuSE

Linux SuSE 10 - Disable Unsuccessful Login History.

When we login to any remote connections in SuSE Linux, say for example, telnet , the following line is displayed "Last Login : Date and time is displayed" I would like to disable this. In SuSE 9, I could find the solution . Please suggest me a solution to disable the line displayed for SuSE... (3 Replies)
Discussion started by: Laksmi
3 Replies

3. UNIX for Dummies Questions & Answers

Change Account to not lock account if password expires

I have access to 15+ UNIX boxes at work, and I do not consistently log onto all of them over time. When I do try to access one I havent been on in awhile, my account is locked as the password has expired. I need to request to the UNIX SA's that the password expiration is 90 days and that if it... (1 Reply)
Discussion started by: stringzz
1 Replies

4. Shell Programming and Scripting

lock an account

hi how can I Lock an account, by prepending ”*LK*” to the password field in /etc/shadow. I dont want to use passwd -l . Any idea? (3 Replies)
Discussion started by: tjay83
3 Replies

5. Solaris

How to lock the account after consecutive unsuccessful login

Dears, I want to lock the user's account after consecutive unsuccessful login attempts, how can I do this ? (1 Reply)
Discussion started by: mlsun
1 Replies

6. Red Hat

Security Question: Lock after invalid login, Session Lock and Required Minimum Password Length

Hello all, If anyone has time, I have a few questions: How do I do the following in Linux. We are using Red Hat and Oracle Enterprise Linux, which is based on Red Hat too. 1. How to lock the account after a few (like 3) invalid password attempts? 2. How do you lock a screen after 30... (1 Reply)
Discussion started by: nstarz
1 Replies

7. Cybersecurity

openssh_4.6 on Unixware 7.1.4 - ssh does not lock account after x attempts

Hi all, I am having some issues with openssh vers OpenSSH_4.6p1 on SCO unixware 7.1.4 when a user accesses the system via ssh and the password is incorrect and more attempts have been made that the lock out limit I find that although there are messages in the syslog the account does not lock... (0 Replies)
Discussion started by: chlawren
0 Replies

8. AIX

User Account Login Login on your AIX server

I want to learn AIX. I would like to find someone who would be willing to give me a login to their AIX home lab server. My intent is to poke around and discover the similarities and differences of AIX compared to other *NIXs. I am a UNIX admin so I can think of what some immediate concerns may... (1 Reply)
Discussion started by: perl_in_my_shel
1 Replies

9. Shell Programming and Scripting

How to exit shell script if remote login unsuccessful?

#!/bin/bash for servers in `cat ~/servers` do rosh -l root -n $servers 'if then echo $HOSTNAME else exit 1 fi' done I have few servers in the for loop that is powered off, so whenever I execute my script, it works fine if all the servers are on, but when it tries to execute the script... (1 Reply)
Discussion started by: Rojan Shakya
1 Replies

10. SuSE

Help in display unsuccessful login in SUSE Linux

hi i want to enable details of previous successful/ unsuccessful login on screen after successful login in SUSE linux ---------- Post updated 01-17-15 at 10:00 PM ---------- Previous update was 01-16-15 at 11:37 PM ---------- hi guys please reply (1 Reply)
Discussion started by: Idea
1 Replies
mtstailor(5mh)															    mtstailor(5mh)

Name
       mtstailor - system customization for MH message system

Description
       The file defines run-time options for those MH programs which interact (in some form) with the message transport system.  At present, these
       (user) programs are: and

       The options available along with default values and a description of their meanings are listed below:

       The host name that MH considers local.
		 If not set, depending on the version of ULTRIX you are running, MH will query the system for this value (for example: <whoami.h>,
		 gethostname).	This has no equivalent in the MH configuration file.

       The name of the local host in the UUCP "domain".
		 If  not set, depending on the version of ULTRIX you are running, MH will query the system for this value.  This has no equivalent
		 in the MH configuration file.

       A host or list of hosts running
		 can be specified.  When an MH program is run, it uses this entry to search for a central to connect  to.   This  is  particularly
		 useful for workstation users who may not have running on their workstation.

       The directory where maildrops are kept.
		 If this is empty, the user's home directory is used.  This overrides the mail field in the MH configuration file.

       The name of the maildrop file in the directory where maildrops are kept.
		 If this is empty, the user's login name is used.  This overrides the mail field in the MH configuration file.

       The beginning-of-message delimiter for maildrops.

       The end-of-message delimiter for maildrops.

       If non-zero, then support for MMailids in
		 is enabled.  Basically, the field in the password file is of the form
		 My Full Name <mailid>
		 The MH internal routines that deal with user and full names will return mailid and My Full Name respectively.

       The locking discipline to perform.
		 A  value  of  0 means to use if available, standard locking otherwise.  A value of 1 means to use locking always (the name of the
		 lock is based on the file name).  A value of 2 means to use locking always (the name of the lock is based on device/inode pairs).

       The name of the directory for making locks.
		 If your system does not have the syscall, then this directory is used when creating locks.  If  the  value  is  empty,  then  the
		 directory of the file to be locked is used.

       The pathname to the
		 program.

       The name of the system-wide default
		 file.	See for the details.

       The highest user-id which should NOT receive mail addressed to
		 everyone.

       If set, then each user-id greater than everyone
		 that  has  a login shell equivalent to the given value (for example, indicates that mail for everyone should not be sent to them.
		 This is useful for handling admin, dummy, and guest logins.

       A few words on locking: MH has a flexible locking system for making locks on files.  There are two variables you should be aware of:  lock-
       style and lockldir.  The first controls the method of locking: the second says where lock files should be created.

       The lockstyle variable can take on three values: 0, 1, 2.  A value of 0 means use the syscall if you are running on 4.2BSD, otherwise use a
       locking style of 1.  A value of 1 or 2 specifies that a file should be created whose existence means locked and whose  non-existence  means
       unlocked.  A value of 1 specified that the lockname is constructed by appending to the name of the file being locked.

       A  value of 2 says to construct the lockname by looking at the device and inode numbers of the file being locked.  If the lockldir variable
       is not specified, lock files will be created in the directory where the file being locked resides.  Otherwise, lock files will  be  created
       in  the	directory specified by lockldir.  Prior to installing MH, you should see how locking is done at your site, and set the appropriate
       values.

Files
       System customization file.

       System password file.

See Also
       flock(2), mh_profile(5mh)

																    mtstailor(5mh)
All times are GMT -4. The time now is 03:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy