Nov 21 2015

How to Lock and Unlock Users on Oracle Linux / Centos / Redhat

Category: Linux & UnixFatih Acar @ 13:25

Lock User

Method 1

[root@test ~]# passwd -l username

Method 2

[root@test ~]# usermod -L username

Unlock User

Method 1

[root@test ~]# passwd -u username

Method 2

[root@test ~]# usermod -U username

Check Status of Users

[root@test ~]# more /etc/shadow

username:!!$6$pmQO0ZPH$POolvCzxe1nsd1OpLkMc6E3cd1ffOkcz224caQs1d/oL.OwscUhYfcas//41sS12.:16531:0:99999:7:::

Note : If you see “!!” expression or “!” expression start of password of username, the user is locked.

4,315 total views, 5 views today

Tags: Linux Administration, System Administration

facebook comments:

Leave a Reply

Time limit is exhausted. Please reload CAPTCHA.