Operating System - HP-UX
1753765 Members
6077 Online
108799 Solutions
New Discussion юеВ

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 9
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