{"id":160,"date":"2013-09-06T20:21:00","date_gmt":"2013-09-06T20:21:00","guid":{"rendered":"http:\/\/222@jodohost.com\/\/blog\/"},"modified":"2013-09-06T20:21:00","modified_gmt":"2013-09-06T20:21:00","slug":"lock-unlock-a-linux-user-account","status":"publish","type":"post","link":"http:\/\/www.jodohost.com\/blog\/index.php\/2013\/09\/06\/lock-unlock-a-linux-user-account\/","title":{"rendered":"Lock\/unlock a Linux user account"},"content":{"rendered":"<p>There are times when we need to remove a user account that is not in use but sometime later we&#8217;ll need that again and then we always think at that time that if we hadn&#8217;t removed that account we could have used it.<\/p>\n<p>So there is a good way in Linux by which we can make an account unusable until an administrator wants to make it usable again, i.e. we can lock the account.<\/p>\n<p>We can lock a user account in Linux and then that account won&#8217;t be accessible until the administrator unlocks it. Below is the process to do this.<\/p>\n<p>To lock a user account, use the command below:-<\/p>\n<p>passwd -l username<\/p>\n<p>To unlock a user account, use the command below:-<\/p>\n<p>passwd -u username<\/p>\n<p> ]]><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are times when we need to remove a user account that is not in use but sometime later we&#8217;ll need that again and then we always think at that time that if we hadn&#8217;t removed that account we could have used it. So there is a good way in Linux by which we can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/160"}],"collection":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=160"}],"version-history":[{"count":0,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/160\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=160"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}