Operating System - HP-UX
1748117 Members
3662 Online
108758 Solutions
New Discussion юеВ

Password and login related Information.

 
sujeet joshi
Frequent Advisor

Password and login related Information.

Hi,

How to get the following details in HP-UX .

login retries allowed
maximum password change intervals (days)
minimum password length
password expiry warning period (days)
password life (days)

Any command is there for getting these information?


Regards,

Sujeet
7 REPLIES 7
Mridul Shrivastava
Honored Contributor

Re: Password and login related Information.

refer man 4 security...

/etc/default/security
Time has a wonderful way of weeding out the trivial
Reshma Malusare
Trusted Contributor

Re: Password and login related Information.

Hi Sujeet,
Information related to login you will get in /etc/passwd,/etc/shadow .

Reshma Malusare
Trusted Contributor

Re: Password and login related Information.

Hi sujeet,
1.The /etc/passwd file is used to authenticate a user at login time for standard HP-UX. The file contains descriptions of every account on the HP-UX system. Each entry consists of seven fields, separated by colons.

robin:*:102:99:RobinTewes:/mnt/robin:/bin/csh

2.Protected password database files are stored in the /tcb/files/auth hierarchy. User authentication profiles are stored in these directories based on the first letter of the user account name.
It contains following:
User name and user ID.

Encrypted password.

Account owner.

Boot flag - whether the user can boot to single user mode or not.

Audit ID and audit flag (whether audit is on or not).

Minimum time between password change.

Password maximum length.

Password expiration time, after which the password must be changed.

Password lifetime, after which the account is locked.

Time of last successful and unsuccessful password change.

Absolute time (date) when the account will expire.

Maximum time allowed between logins before account is locked.

Number of days before expiration when warning will appear.

Whether passwords are user-generated or system-generated.

Whether triviality check is performed on user-generated password.

Type of system-generated passwords.

Whether null passwords are allowed for this account.

User ID of the last person to change the password, if not the account owner.

Time periods when this account can be used for login.

The terminal or remote hosts associated with the last successful and unsuccessful logins to this account.

Number of unsuccessful login attempts; cleared upon successful login.

Maximum number of login attempts allowed before account is locked.

3. you can also go for /etc/default/security

please check following link for more details:
http://docs.hp.com/en/B2355-90672/ch12s05.html?jumpid=reg_R1002_USEN
Reshma Malusare
Trusted Contributor

Re: Password and login related Information.

Hi,
If your query is solved then please assign points to replies.

Regards,
Reshma
sujeet joshi
Frequent Advisor

Re: Password and login related Information.

Hi Reshma,

Thanks for your quick response.

I found that there is tcb folder on root in my system i.e. in /usr/newconfig/tcb/files/auth.

is this a correct path?


Regards,

Sujeet
Bill Hassell
Honored Contributor

Re: Password and login related Information.

The options you listed are best viewed with SAM. The reason is that /etc/default/security does not exist by default and is not applicable in obsolete versions of HP-UX. Even so, many of the options will have no effect unless your system is Trusted and if any of the options in the security file are misspelled, they are silently ignored. By using SAM to look at the Auditing and Security -> System Security Policies, you'll see (and can change) the active security policies.


Bill Hassell, sysadmin
Dennis Handly
Acclaimed Contributor

Re: Password and login related Information.

>├и ├з ├й┬╛ : Same question

You should create your own thread so you can assign points. If there is something useful here, you can mention the URL in your thread.