Operating System - HP-UX
1752802 Members
5932 Online
108789 Solutions
New Discussion юеВ

To change an account to non-expire

 
mparasur
Advisor

To change an account to non-expire

Hi All,

I have a NIS server on HP-UX 11.11. I would like to change on user(or password) to non-expire account. It is not trusted system.

I need your suggesion.

Thanks in Advance
Mani

6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: To change an account to non-expire

Shalom,

The best way to go is use sam. Or you can set the expiration days to zero with the passwd command.

See the an page for details.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Davis Paul
Valued Contributor

Re: To change an account to non-expire

Hi Shalom,
You can turn off password expiration of a existing user with the usermod -e command.
Regards,
Davis Paul.
mparasur
Advisor

Re: To change an account to non-expire

Hi,
Thanks for your reply.

I need to set the password not to expire.

Regards,
Mani
Paul Sperry
Honored Contributor

Re: To change an account to non-expire

passwd -x 0 username

That's a zero
Paul Sperry
Honored Contributor

Re: To change an account to non-expire

passwd -n 0 -x 0 username

That's a zero
Davis Paul
Valued Contributor

Re: To change an account to non-expire

Hi,
Use the command usermod -e for not to expire the password of the user. This -e option can be used with useradd command also.
The following command lists the default options with the useradd command:
# useradd -D
Regards,
Davis Paul.