[HPADM] Re: passwd command



You can try this ones:

to disable an account:
/usr/lbin/modprpw -m alock=YES username

to enable a user account:
/usr/lbin/modprpw -k username


to check status of the account:
/usr/lbin/getprpw -r -m lockout username
it will return a 7 digit number and if the 6th digit is set to 1 that the account is locked




Salu2 y que Dios te bendiga
Gerardo

<:))))><<

Juan 11:25-27
"Dícele Jesús: Yo soy la resurrección y la vida: el que cree en mí, aunque esté muerto, vivirá.
Y todo aquel que vive y cree en mí, no morirá eternamente. ¿Crees esto?
Dícele: Sí Señor; yo he creído que tú eres el Cristo, el Hijo de Dios, que has venido al mundo."



----- Original Message ----
From: İlker Erek Duran <ilker.duran@xxxxxxxxx>
To: Stephanie C <stepchung@xxxxxxxxx>
Cc: HP-UX Group <hpux-admin@xxxxxxxxxxxxx>
Sent: Friday, October 5, 2007 9:46:11 AM
Subject: [HPADM] Re: passwd command


hi, if you are using trusted passwords, you have to make :

# modprpw -v username
# modprpw -k username

regards,
ilker

On 10/3/07, Stephanie C <stepchung@xxxxxxxxx> wrote:
Hi-
passwd -l useracct (lock user account on both hpux and solaris)

passwd -u useracct (unlock user account on solaris - hpux does not work)

What is the option in hpux 'passwd' command to unlock the user account?

Thanks for your help.

Stephanie

--
---> Please post QUESTIONS and SUMMARIES only!! <---
To subscribe/unsubscribe to this list, contact majordomo@xxxxxxxxxxxxx
Name: hpux-admin@xxxxxxxxxxxxx Owner: owner-hpux-admin@xxxxxxxxxxxxx

Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only)
http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)



____________________________________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow

Relevant Pages

  • SUMMARY: lock on shadow file
    ... prompt for a password if the users account had a *LK* in the shadow file. ... But I seem you should be able to just enter "passwd -d ... The man pages said to unlock a user account you ... admintool, or SMC. ...
    (SunManagers)
  • lock on shadow file
    ... user has *LK* in the shadow file. ... But I seem you should be able to just enter "passwd -d ... The man pages said to unlock a user account you ... admintool, or SMC. ...
    (SunManagers)
  • [HPADM] Re: passwd command
    ... # modprpw -v username ... passwd -u useracct (unlock user account on solaris - hpux does not work) ...
    (HP-UX-Admin)
  • RE: passwd
    ... One of the accounts I created was for myself, a simple user account with ... It prompts for my old password I enter it ... Tried to sync up the shadow file with the passwd file with pwconv and no ... passwd command used by root is that they are prompted to enter existing ...
    (RedHat)
  • [HPADM] passwd command
    ... passwd -u useracct (unlock user account on solaris - hpux does not work) ...
    (HP-UX-Admin)