Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

Block and unblock users on Unix and GNU/Linux

Leer en espanol
Block and unblock users on Unix and GNU/Linux

Table of contents

GNU/Linux To block it we must execute: textusermod -L rokitoh To unlock it we execute: textusermod -U rokitoh H.P. ===

Sometimes for certain reasons we have to temporarily block an account.

GNU/Linux

To block it we must execute:

text
usermod -L rokitoh

To unlock it we execute:

text
usermod -U rokitoh

HP UX

To block it we must execute:

text
/usr/lbin/modprpw -l -m alock=YES rokitoh

To unlock it we execute:

text
/usr/lbin/modprpw -l -m alock=NO rokitoh

Ami, the other day I don't know why... a user wasn't unlocked like that and I had to do the following:

text
/usr/lbin/modprpw -k -l rokitoh
text
/usr/lbin/modprpw -v -l rokitoh

Solaris

To block it we must execute:

text
faillog -r -u rokitoh

either

text
passwd -l rokitoh

To unlock it we execute:

text
passwd -u username

BSD

To block it we must execute:

text
pw lock rokitoh

To unlock it we execute:

text
pw unlock rokitoh

Greetings, rokitoh!

Comments