Operating System - HP-UX
1834644 Members
2586 Online
110069 Solutions
New Discussion

Re: removing exipre set on a user account

 
bibith dathan
Advisor

removing exipre set on a user account

Hi All

Is there any way to remove the expire set on a account using command line . systems are not trusted system.
OS : hpux 11.23 & 11.11

Bibith Dathan
8 REPLIES 8
Kenan Erdey
Honored Contributor

Re: removing exipre set on a user account

Hi,

usermod -e '''' user_name.

Kenan.
Computers have lots of memory but no imagination
bibith dathan
Advisor

Re: removing exipre set on a user account

Hi Kenan

it giving error
server1:/# usermod -e "" bb
Could not interpret date:
server1:/# uname -a
HP-UX ignite1F B.11.11 U 9000/800

Dathan
Gokul Chandola
Trusted Contributor

Re: removing exipre set on a user account

Dear Bibith,
Please read the following, may be helpfull for you.


**************
The UIC valued identifier that is created by AUTHORIZE when creating a new username does not get deleted when a date passes the time specified by /expiration

Example:

OMEGA$ uaf s field

Username: FIELD Owner: FIELD SERVICE
Account: FIELD UIC: [1,10] ([FIELD])
CLI: DCL Tables: DCLTABLES
Default: SYS$SYSDEVICE:[FIELD]
LGICMD: LOGIN
Flags: DisUser
Primary days: Mon Tue Wed Thu Fri
Secondary days: Sat Sun
Primary 000000000011111111112222 Secondary 000000000011111111112222
Day Hours 012345678901234567890123 Day Hours 012345678901234567890123
Network: ##### Full access ###### ##### Full access ######
Batch: ##### Full access ###### ##### Full access ######
Local: ##### Full access ###### ##### Full access ######
Dialup: ----- No access ------ ----- No access ------
Remote: ##### Full access ###### ##### Full access ######
Expiration: 12-JUN-1999 00:00 Pwdminimum: 8 Login Fails: 0
Pwdlifetime: 30 00:00 Pwdchange: 11-JUN-1999 19:43
Last Login: 11-JUN-1999 19:44 (interactive), 14-JAN-1997 16:48 (non-interactive)
Maxjobs: 0 Fillm: 200 Bytlm: 150000
Maxacctjobs: 0 Shrfillm: 0 Pbytlm: 0
Maxdetach: 0 BIOlm: 512 JTquota: 8192
Prclm: 2 DIOlm: 512 WSdef: 150
Prio: 4 ASTlm: 24 WSquo: 1024
Queprio: 0 TQElm: 200 WSextent: 0
CPU: (none) Enqlm: 5000 Pgflquo: 100000
Authorized Privileges:
ALLSPOOL DIAGNOSE GROUP GRPNAM LOG_IO NETMBX
OPER PHY_IO PRMCEB PRMMBX SETPRV TMPMBX
Default Privileges:
ALLSPOOL DIAGNOSE GROUP GRPNAM LOG_IO NETMBX
OPER PHY_IO PRMCEB PRMMBX SETPRV TMPMBX
OMEGA$

This account has expiration set to "12-JUN-1999 00:00" but the identifier FIELD is still there (with value UIC:[1,10])

You may have some third party application that is removing accounts, and when a username is removed, the identifier associated with the UIC is removed as well, unless you specify /NOREMOVE_IDENTIFIER
*******************
Username expiration is unrelated to security identifiers, and simple username expiration does not remove identifiers.

Is this a cluster? Are all required files shared, per (V7.2 and later) SYLOGICALS.TEMPLATE file. Without the proper files shared, all manner of weirdnesses can ensue.

I'd expect a configuration issue of some sort here with the files that need be common in a cluster, or the presence of a local or add-on tool or procedure that deletes expired usernames.

Enable security auditing for authorization database changes, set a short expiration on a test account, wait, and watch the show. If that auditing and the above comments do not identify the source, please post up the command(s) used, the username(s) involved, OpenVMS versions and related relevant details.
**********************

Finally I want to say that what is the issue with not trustuted is not properly defind properly. And you have to make policy to User mangement and how to manage. This all is depend upon many aspects. What you have infrastuctue and working enviornment its depend.

Regards,
Gokul Chandola
There is always some scope for improvment.
bibith dathan
Advisor

Re: removing exipre set on a user account

Hi all

I think i have done a mistake in explaining my problem .
i need to remove the passwd expire set
(using passwd -x yy user ) on accounts by command line

Bibith Dathan
Kenan Erdey
Honored Contributor

Re: removing exipre set on a user account

Hi,

not that quotation marks are not double, four single quotation marks.
Computers have lots of memory but no imagination
bibith dathan
Advisor

Re: removing exipre set on a user account

Same output
Kenan Erdey
Honored Contributor

Re: removing exipre set on a user account

try passwd -x -1 user_name
Computers have lots of memory but no imagination
Sp4admin
Trusted Contributor

Re: removing exipre set on a user account

Hello,

Try a man on getconf or modprpw. You can see the setting for that user. Also check the /etc/default/security file if you have one.

#getprpw user_id

sp,