HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable deactive account using passwd command in hp-ux

 
rajeshkm
Occasional Advisor

How to enable deactive account using passwd command in hp-ux

how to enable a deactive(expiry) account using passwd command in hp-ux.

In trusted system we can enable the deactive account using modprpw and i need to know how to do that in non trusted box..In sam i am able to do ..But need using command line.I think there is no solution for this am i right.
9 REPLIES
James R. Ferguson
Acclaimed Contributor

Re: How to enable deactive account using passwd command in hp-ux

Hi:

I suggest you consult the 'passwd' manpages. There are useful options documented there.

Regards!

...JRF...
Michael Steele_2
Honored Contributor

Re: How to enable deactive account using passwd command in hp-ux

SAM > user accounts > select account > open account > modify password settings > reset account
Support Fatherhood - Stop Family Law
rajeshkm
Occasional Advisor

Re: How to enable deactive account using passwd command in hp-ux

i checked in passwd nothing worth is ther ..please help me..
Sunny123_1
Esteemed Contributor

Re: How to enable deactive account using passwd command in hp-ux

Hi

Try passwd -d command


Regards
Sunny
James R. Ferguson
Acclaimed Contributor

Re: How to enable deactive account using passwd command in hp-ux

Hi (again):

> I checked in passwd nothing worth is ther ..please help me..

# man passwd

Read further than you did. See the section that begins with :

Privileged User Options
A superuser can modify characteristics associated with the user name using the following options:

...

Regards!

...JRF...

rajeshkm
Occasional Advisor

Re: How to enable deactive account using passwd command in hp-ux

can u give me the option if so
Sunny123_1
Esteemed Contributor

Re: How to enable deactive account using passwd command in hp-ux

Hi

Look following options

-d = Allow user to login without a password by deleting it.In untrusted mode this unlocks/activates the user account if found locked/deactivated.

Regards
Sunny
Paul Ettema
Advisor

Re: How to enable deactive account using passwd command in hp-ux

Hai Rajeshkm,

On non trusted system (hpux 11.11), I use:
# passwd -l
To disable and set a new password to enable or delete and force to set new:
# passwd -d
# passwd -f
so when login then he/she will asked to set new passwd.

Paul.
Suraj K Sankari
Honored Contributor

Re: How to enable deactive account using passwd command in hp-ux

Hi,
See this examples,

# passwd â d user1 # set a null password
# passwd â f user1 # fForce user to change password upon next login by expiring the current password
# passwd â l user1 # Lock or Deactivate a user account
# passwd user1 # Unlock or Reactivate a user account
# passwd -s user1 # check a userâ s password status
# passwd â sa # check the status of all users

For more information see the man pages of passwd
Suraj