User Command Line (268 Views)
Reply
Regular Advisor
itrc55
Posts: 195
Registered: ‎04-10-2010
Message 1 of 2 (268 Views)

User Command Line

[ Edited ]

Hi All,

 

I want to ask about some user commands, Where I know how to do some command on trusted mode but I don’t know how to do the below on none trusted mode by command line.

 

  1. Unlock and Lock users
  2. Refresh ageing password for user
  3. Check the status of a user
  4. Change the password of a user to a random password

 

Thanks

 

 

p.S. This thread has been moved from HP-UX > System Administration to HP-UX > security. - Hp Forum modertaor

Acclaimed Contributor
Dennis Handly
Posts: 25,292
Registered: ‎03-06-2006
Message 2 of 2 (211 Views)

Re: User Command Line

If you aren't using SMSE, you can always use vipw(1m).  :-)

 

>1. Unlock and Lock users

 

See passwd(1):

  -l  (can NOT be unlocked, since replaces by "*")

 -d delete password

 

>2. Refresh aging password for user

 

Refresh as in resetting the expiration date?

 -x max

 

>3. Check the status of a user

 -s user

logins -x

 

>4. Change the password of a user to a random password

 

What are you using for trusted?

Try usermod(1m) -p encrypted_password

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.