Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

User Command Line

itrc55
Regular Advisor

User Command Line

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 REPLY
Highlighted
Dennis Handly
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