Reset failed login count


 
Thread Tools Search this Thread
Operating Systems Solaris Reset failed login count
# 1  
Old 02-14-2012
Reset failed login count

Hi,

Can someone tell me the command to do this in solaris 5.10 please? I've trawled around the internet for ages but all I can find is the AIX command...

Thanks
# 2  
Old 02-14-2012
The last field of /etc/shadow is a number. The low order 4 bits of that field is the login fail count. Since the "other" bits are not now used, this represents login fails.

If the account is locked out use
Code:
passwd -u

to reset everything.
If you want to dink with /etc/shadow (not a good idea) change that trailing number in the record to a zero.

Example:
Code:
myaccount:\*LK\*R12OfCMPngtJQ:12685::::::5

change the "5" to something else, remember it is a 4 bit number. You will have to change protections on /etc/shadow to do this, be SURE to set them back.

And - since you may mess things up remember the pwconv command can help.
This User Gave Thanks to jim mcnamara For This Post:
# 3  
Old 02-14-2012
I 2nd what was stated above, but will add this. The login count in /etc/shadow file can just be deleted.
before
Code:
useraccount:cjnhvbvbshb.fem.15251:::::3

after
Code:
useraccount:cjnhvbvbshb.fem.15251:::::

I hope this helps.
This User Gave Thanks to bitlord For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Reset MPxIO total path count

We recently moved our netapp disks onto new infrastructure by attaching the new controllers to our fibre switch and netapp migrating the disks. Disks kept the same address. We originally had 4 paths, but after attaching the new controllers we had 8. Now I want to remove the old paths. But can't. ... (5 Replies)
Discussion started by: garydeena
5 Replies

2. UNIX for Beginners Questions & Answers

Consecutive count and reset in awk

I have the following file: A1 4.5807 6.4202 B1 2.5704 11.4414 C1 5.5607 5.28872 D1 3.5807 8.2132 E1 3.2206 9.13153 F1 3.0907 9.51532 G1 3.2707 8.99165 H1 2.4607 11.9515 A2 2.5505 11.5307 B2 2.3106 12.7279 C2 3.8507 7.63731 D2 2.6208 11.2214 E2 2.7609 10.652 F2 2.0604 14.2734 G2... (2 Replies)
Discussion started by: Xterra
2 Replies

3. UNIX for Advanced & Expert Users

Fatal: Read from socket failed: Connection reset by peer [preauth]

Hello, I have recently updated my AIX machine from version 6.1.7.5 to 6.1.9.1 and i noticed that the errpt of the server is full of ssh messages like the one below: sshdprocess_id>]: fatal: Read from socket failed: Connection reset by peer Does anyone knows if this a known bug of the ssh... (15 Replies)
Discussion started by: omonoiatis9
15 Replies

4. Solaris

Found a Sun Ultra 10 Elite3D workstation, and it boots to a login screen. How can I reset the OS?

I just got moved to a new office building, and as I was unpacking my stuff I saw an odd tower PC in the nearby recycling heap. It turned out to be a Sun Ultra 10 Elite3D workstation, complete with keyboard, mouse, and monster-sized CRT with the wacky Sun video cable. I just set everything up and... (4 Replies)
Discussion started by: wowbobwow
4 Replies

5. AIX

Clear failed login count

What's actually the difference between these two command: 1) chsec -f /etc/security/lastlog -a "unsuccessful_login_count=0" -s username 2) chuser unsuccessful_login_count=0 username Are there any impact on executing either one of those command to clear/reset the failed login count in AIX?... (2 Replies)
Discussion started by: ph4nt0m227
2 Replies

6. Solaris

Console Login Failed..

Dear Unix Team, This is sudhansu once again. I need some tips on below issue. Sometimes we got calls from customer that their console got hangged means they are not able to access the server through console ip. in that case "resetsc -y" will resolve the issue. 2. But couple of days... (2 Replies)
Discussion started by: sudhansu
2 Replies

7. Solaris

Reset password and login SC at SF V440

Dear All, I Have server SF V440, OS solaris is down and I must check logs at Sc, but I forgot my login and password. How to reset login and password at SF V440? Thanks Best Regards Jiman (3 Replies)
Discussion started by: mbah_jiman
3 Replies

8. UNIX for Dummies Questions & Answers

fatal: Read from socket failed: Connection reset by peer

I get this error when I log in through console: "fatal: Read from socket failed: Connection reset by peer". Can you tell me what this is and why it happens, and how to stop it? Thank you. (1 Reply)
Discussion started by: iamnew2solaris
1 Replies

9. Solaris

Last Failed Login

Hi, Would appreciate it if someone could shed me some light here as I'm yet to find any related information in this forum with regards to my problem. Basically, I would like to display "Last Unsuccessful login" information when a user successfully logs-in to the system. I can't seem to find... (2 Replies)
Discussion started by: gilberteu
2 Replies

10. Solaris

how to reset failed login in solaris 8.0

hi, can someone tell me " how to reset failed login in solaris 8.0" a user is not able to login and inspite of my changing password cannot. I believe it must be because the user tried many attempts. how do i reset the failed login for the user. Thanks! karthik (2 Replies)
Discussion started by: karthikosu
2 Replies
Login or Register to Ask a Question