Showing results for 
Search instead for 
Do you mean 

User Command Line

Regular Advisor

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

1 REPLIES
Highlighted
Acclaimed Contributor Acclaimed Contributor

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