1819814 Members
3522 Online
109607 Solutions
New Discussion юеВ

non-expiring user

 
joe_91
Super Advisor

non-expiring user

We have requests to create or modify an existing user as non-expiring. how would i do it?

Thanks

Joe.
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: non-expiring user

Shalom Joe,

The simplest and easiest way is sam manage users settings.

You can probably learn a bit by trying to use the passwd command to change the number of days to next expire to 0 which means forever

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
Fern H2O
Frequent Advisor

Re: non-expiring user

Hey Joe,

I think easiest way is to just do it in sam.

Choose Accounts for Users and Groups.
Choose username you want to modify and then go to Actions and choose Modify Security Policies. In there you can change all security policies for that user. In your case you would choose Password Aging Policies.
IT_2007
Honored Contributor

Re: non-expiring user

Generally, you do this through sam for Generic accounts.

sam --> users and groups --> users --> select user --> Actions --> Modify Security Policies
Gary L. Paveza, Jr.
Trusted Contributor

Re: non-expiring user

passwd -n 0 -x 0 -w 0

-n = min days between password changes
-x = max days a password is valid
-w = number of days prior to expiring before a user is warned about the expiration (trusted systems).
dattu_1
Regular Advisor

Re: non-expiring user

Hi,
Just do it "passwd -x -1 username".........And it would be done.
Njoy.....