{"id":2025,"date":"2015-11-21T13:25:15","date_gmt":"2015-11-21T10:25:15","guid":{"rendered":"http:\/\/www.fatihacar.com\/blog\/?p=2025"},"modified":"2016-11-21T13:34:52","modified_gmt":"2016-11-21T10:34:52","slug":"how-to-lock-and-unlock-users-on-oracle-linux-centos-redhat","status":"publish","type":"post","link":"https:\/\/www.fatihacar.com\/blog\/how-to-lock-and-unlock-users-on-oracle-linux-centos-redhat\/","title":{"rendered":"How to Lock and Unlock Users on Oracle Linux  \/ Centos \/ Redhat"},"content":{"rendered":"<p><strong>Lock User<\/strong><\/p>\n<blockquote><p><strong>Method 1<\/strong><\/p>\n<p>[root@test ~]# passwd -l username<\/p>\n<p><strong>Method 2<\/strong><\/p>\n<p>[root@test ~]# usermod -L username<\/p><\/blockquote>\n<p><strong>Unlock User<\/strong><\/p>\n<blockquote><p><strong>Method 1<\/strong><\/p>\n<p>[root@test ~]# passwd -u username<\/p>\n<p><strong>Method 2<\/strong><\/p>\n<p>[root@test ~]# usermod -U username<\/p><\/blockquote>\n<p><strong>Check Status of Users<\/strong><\/p>\n<blockquote><p>[root@test ~]# more \/etc\/shadow<\/p>\n<p>username:!!$6$pmQO0ZPH$POolvCzxe1nsd1OpLkMc6E3cd1ffOkcz224caQs1d\/oL.OwscUhYfcas\/\/41sS12.:16531:0:99999:7:::<\/p>\n<p><strong>Note :<\/strong> If you see &#8220;!!&#8221; expression or &#8220;!&#8221; expression start of password of username, the user is locked. <\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8220;!!&#8221; expression or &#8220;!&#8221; expression start of password of&#8230;<\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[18],"tags":[31,22],"class_list":["post-2025","post","type-post","status-publish","format-standard","hentry","category-linux-unix","tag-linux-administration","tag-system-administration"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p39NFI-wF","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/2025","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/comments?post=2025"}],"version-history":[{"count":2,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/2025\/revisions"}],"predecessor-version":[{"id":2027,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/2025\/revisions\/2027"}],"wp:attachment":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/media?parent=2025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/categories?post=2025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/tags?post=2025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}