{"id":170,"date":"2009-10-15T20:54:42","date_gmt":"2009-10-15T12:54:42","guid":{"rendered":"http:\/\/www.sysadmindayph.com\/blog\/?p=170"},"modified":"2009-10-15T20:54:42","modified_gmt":"2009-10-15T12:54:42","slug":"unlock-locked-user-account-in-hp-ux","status":"publish","type":"post","link":"https:\/\/www.sysadmindayph.com\/blog\/unlock-locked-user-account-in-hp-ux\/","title":{"rendered":"Unlock locked user account in HP-UX"},"content":{"rendered":"<p>I know nothing about HP UX (yeah, except SAM). That&#8217;s why, just now, when there&#8217;s a request to just make a trace route from an HPUX server to another server, I have to login and do execute the command. I couldn&#8217;t log in as my user id so i logged in as root instead from the console.<\/p>\n<p>I check grep&#8217;d my account the walah! It was there! I reset the password, open an ssh terminal and tried to login. unsuccessful, that&#8217;s why i knew then that it is locked.<\/p>\n<p>Here&#8217;s how to unlock a locked user account in HP UX in command line.<\/p>\n<blockquote><p><span><span style=\"color: #434343;\">In HP-UX 11.xx if user account is locked, you can unlock the account by running SAM. But running SAM takes some time usually 2-3 minutes on heavily loaded HP-UX servers. You can unlock the locked user account from command line by running following command: <\/span><\/span><\/p>\n<p><span style=\"color: #434343;\">1. Login as root or use sudo from your account, if there is no <strong>sudo<\/strong> installed just use <strong>su \u2013 root :<\/strong> <\/span><\/p>\n<div style=\"margin-left: 26pt;\">\n<table style=\"border-collapse: collapse;\" border=\"0\">\n<colgroup>\n<col style=\"width: 522px;\"><\/col>\n<\/colgroup>\n<tbody>\n<tr>\n<td style=\"border: 0.5pt dotted; padding-left: 7px; padding-right: 7px;\">\n<p style=\"margin-left: 18pt;\"><span style=\"color: #434343; font-family: Courier New;\">$sudo su \u2013 <\/span><\/p>\n<p style=\"margin-left: 18pt;\"><span style=\"color: #434343; font-family: Courier New;\">*******<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><span style=\"color: #434343;\"><span style=\"font-family: Courier New;\">2.<\/span> Run this command to unlock the locked HP-UX user account:<span style=\"font-family: Courier New;\"> <\/span><\/span><\/p>\n<div style=\"margin-left: 26pt;\">\n<table style=\"border-collapse: collapse;\" border=\"0\">\n<colgroup>\n<col style=\"width: 522px;\"><\/col>\n<\/colgroup>\n<tbody style=\"font-family: courier new;\">\n<tr>\n<td style=\"border: 0.5pt dotted; padding-left: 7px; padding-right: 7px;\"><span style=\"color: #434343;\">#<\/span><span style=\"color: black;\">\/usr\/lbin\/modprpw \u2013l \u2013k johnm<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><span style=\"font-family: Arial; color: black;\">Running modprpw will unlock the locked user account in HP-UX from command line.without running SAM <\/span><\/p>\n<p><span style=\"font-family: Arial; color: black;\">NOTE: modprpw is HP-UX command only and wouldn&#8217;t work in Solaris,AIX and any Linux servers <\/span><\/p><\/blockquote>\n<p>That info was &#8216;borrowed&#8217; from <a href=\"http:\/\/sysdigg.blogspot.com\/2007\/12\/how-to-unlock-locked-user-account-in-hp.html\" rel=\"nofollow\">here<\/a>&#8230;. thanks!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I know nothing about HP UX (yeah, except SAM). That&#8217;s why, just now, when there&#8217;s a request to just make a trace route from an HPUX server to another server, I have to login and &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[291,7,3],"tags":[292,293,294],"class_list":["post-170","post","type-post","status-publish","format-standard","hentry","category-hp-ux","category-operating-system","category-unix","tag-hpux","tag-lock-user","tag-modprpw"],"_links":{"self":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/comments?post=170"}],"version-history":[{"count":0,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/170\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/media?parent=170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/categories?post=170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/tags?post=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}