Operating System - HP-UX
1751976 Members
4709 Online
108784 Solutions
New Discussion юеВ

Re: reset password agging

 
kacou
Regular Advisor

reset password agging

my root passwd has expired. i change it in single user mode but the password agging still persist
10 REPLIES 10
Ivan Krastev
Honored Contributor

Re: reset password agging

Use:
passwd -x -1 (or zero) username

regards,
ivan
kacou
Regular Advisor

Re: reset password agging

in which mode?
kacou
Regular Advisor

Re: reset password agging

i don't catch you. Can you tell me the command exactly?
kacou
Regular Advisor

Re: reset password agging

when i execute the command i have an error message. see below
*******************
# /sbin/passwd -x -1 root
Option x not available using /sbin/passwd
Must invoke /bin/passwd to use option.
Usage: passwd name
#
Ivan Krastev
Honored Contributor

Re: reset password agging

No matter in which mode you are using it - single or multiuser.
Another way is to disable it via sam.

Command is:
#passwd -x 0 root


regards,
ivan
kacou
Regular Advisor

Re: reset password agging

i said that i have not the root password. how can i use sam?
kacou
Regular Advisor

Re: reset password agging

the error message still persite.(see below)
# passwd -x 0 root
Option x not available using /sbin/passwd
Must invoke /bin/passwd to use option.
Usage: passwd name


help me to reset or deleate the password agging please!!!
Johnson Punniyalingam
Honored Contributor

Re: reset password agging

>>>i said that i have not the root password. how can i use sam?<<

IS your System trusted System.?

You mean to say that you d'not have root password.? Or are you using privildge id to change the password agging for root account .?

You need to be root user (or) privildge id to change password agging for root account.

How can i use SAM.?

step1 :- Login:- root (or) root equalate privildge id
step2 :- SAM
step3 :- Select Users&Groups --> User -->Find->Sreach->select the root account
than look for Modify Security policy.

Hope this helps

Thx,
Johnson
Problems are common to all, but attitude makes the difference
Doug O'Leary
Honored Contributor

Re: reset password agging

When you get this error:

# passwd -x 0 root
Option x not available using /sbin/passwd
Must invoke /bin/passwd to use option.
Usage: passwd name

It menas /sbin is in your path before /bin is.

Simply execute:

/bin/passwd -x 0 root

and it'll work.

Doug O'Leary

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html