<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: password expiry date in hp unix. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-date-in-hp-unix/m-p/6715735#M729487</link>
    <description>&lt;P&gt;You can use "secweb" command to see the default settings.&lt;/P&gt;&lt;P&gt;Can also be found in&amp;nbsp;/tcb/files/auth/system/default but then you have to calculate yourself, as values are listed in seconds.&lt;/P&gt;&lt;P&gt;u_exp#2592000 = 30 days ( 2592000 /&amp;nbsp;86400 )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Per&lt;/P&gt;</description>
    <pubDate>Wed, 04 Mar 2015 08:48:58 GMT</pubDate>
    <dc:creator>Per Christensen_1</dc:creator>
    <dc:date>2015-03-04T08:48:58Z</dc:date>
    <item>
      <title>password expiry date in hp unix.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-date-in-hp-unix/m-p/6714914#M729483</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OS version :HPUX 11i v3&lt;/P&gt;
&lt;P&gt;system is trusted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I find the password expiry date for a user in hp UX11i v3 under trusted system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#passwd -sa&lt;/P&gt;
&lt;P&gt;krish345 PS&amp;nbsp;&amp;nbsp; ---- &amp;gt; I can't see password aging.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#getprpw -l krish345&lt;/P&gt;
&lt;P&gt;uid=655, bootpw=NO, audid=289, audflg=1, &lt;FONT color="#800000"&gt;mintm=-1&lt;/FONT&gt;, maxpwln=8, &lt;FONT color="#800000"&gt;exptm=-1&lt;/FONT&gt;, &lt;FONT color="#800000"&gt;lftm=-1&lt;/FONT&gt;, spwchg=Thu Feb 26 07:49:25 2015, upwchg=-1, acctexp=-1, llog=-1,&lt;FONT color="#800000"&gt; expwarn=-1&lt;/FONT&gt;, usrpick=DFT, syspnpw=DFT, rstrpw=DFT, nullpw=DFT, admnum=-1, syschpw=DFT, sysltpw=DFT, timeod=-1, slogint=Mon Mar&amp;nbsp; 2 14:19:13 2015, ulogint=-1, sloginy=-1, culogin=0, uloginy=-1, umaxlntr=-1, alock=NO, lockout=0000000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All values are set to -1, What does -1 refer to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-1 says that there is no password aging ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When i run&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#cat /etc/default/security | grep -v "#"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PASSWORD_MIN_DIGIT_CHARS=1&lt;BR /&gt;MIN_PASSWORD_LENGTH=8&lt;BR /&gt;PASSWORD_HISTORY_DEPTH=3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nothing is defined at /etc/default/security.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I find password expiry from all the above 3 outputs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;krissh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. This thread has been moevd from HP-UX &amp;gt; System Administration to HP-UX &amp;gt; security. - Hp Forum Moderator&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2015 02:18:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-date-in-hp-unix/m-p/6714914#M729483</guid>
      <dc:creator>krissh89</dc:creator>
      <dc:date>2015-03-03T02:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: password expiry date in hp unix.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-date-in-hp-unix/m-p/6715145#M729484</link>
      <description>&lt;P&gt;Yes, the &lt;STRONG&gt;-1&lt;/STRONG&gt; means the feature is not set.&lt;BR /&gt;&lt;BR /&gt;The &lt;STRONG&gt;security&lt;/STRONG&gt; file and other security settings in HP-UX have been very fragmented and poorly documented. I created a sample security file based on various docs and some testing. The settings in the security man page are not active if they are not actually set in the security file. Another very bizarre feature is that the "&lt;STRONG&gt;#&lt;/STRONG&gt;" character cancels the entire line no matter where it appears. So the common technique to add comments at the end of a valid line will (silently) cancel the setting.&lt;BR /&gt;&lt;BR /&gt;(this is one of two very unexpected behaviors in a settings file, namely&lt;STRONG&gt; /etc/syslog.conf&lt;/STRONG&gt; where &lt;STRONG&gt;*ANY*&lt;/STRONG&gt; space anywhere on the line cancels the line's directive, only tabs are allowed)&lt;BR /&gt;&lt;BR /&gt;Here is an example security file. It can be used in any version of HP-UX from 11.00 and later, but settings that do not apply for theHP-UX version, patches and security level are ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#####################################################################
#####################################################################
##                                                                 ##
##  Security file: /etc/default/security -- 11.00 and higher only  ##
##                                                                 ##
#####################################################################
#####################################################################

# Note: the contents of the security file settings are version
#       specific.  See the man page: man security

# Comments (#) allowed separate lines, but a trailing
#    or imbedded # will also disable the setting
#    (just like syslog.conf with spaces)

# Access controls (11.0 and higher)
###########################################################

# NOLOGIN=1 will enable the no logins allowed policy.
# NOTE: This attribute only applies to the applications
# that use session management services provided by
# pam_hpsec(5) as configured in /etc/pam.conf, or
# those services that indirectly invoke the
# login(1) command.
#
# This prevents *ANY* non-root user from logging in when the file
#   /etc/nologin
# exists.  This file can be anything (including null) but will
# be displayed before auto-logoff. Typically, a message about
# system maintenance is stored there:
#
# SYSTEM ABC IS DOWN FOR MAINTENENCE, BACK at 11am
#
# Remove the file for normal logins.

NOLOGIN=1

# Number of logins allowed for each user (0=unlimited)
NUMBER_OF_LOGINS_ALLOWED=0

ABORT_LOGIN_ON_MISSING_HOMEDIR=0

# Standard and Shadow modes only: Enable or
# disable the display of the last successful
# and unsuccessful login at the next login.
# (1=enable, 0=disable)

DISPLAY_LAST_LOGIN=1

# Standard and Shadow modes only: Expire non
# root local accounts that have had no logins
# for the specified number of days. If zero,
# inactive accounts are not expired.

INACTIVITY_MAXDAYS=0

# Standard and Shadow modes only: Allow
# logins only during specified time periods.
# LOGIN_TIMES=Any


# Single user mode authorization (11i and non-trusted only)
###########################################################
# Requires root password to get into single user mode (CAREFUL)
#     BOOT_AUTH=1

# Users (besides root) that can boot into single user mode
#     BOOT_USERS=bill,jane,joe

# Password controls - Trusted Systems only
###################

MIN_PASSWORD_LENGTH=6
PASSWORD_HISTORY_DEPTH=1
PASSWORD_MIN_UPPER_CASE_CHARS=0
PASSWORD_MIN_LOWER_CASE_CHARS=0
PASSWORD_MIN_DIGIT_CHARS=1
PASSWORD_MIN_SPECIAL_CHARS=0

# Non-Trusted or shadow password setup only:
# defaults: MAXDAYS=-1 MINDAYS=0 WARNDAYS=0

PASSWORD_MAXDAYS=120
PASSWORD_MINDAYS=7
PASSWORD_WARNDAYS=7

# Session controls
##################


# Default umask value upon login. Note: This
# attribute controls umask(2) of all sessions
# initiated via pam_unix(5) and/or pam_hpsec(5).
# Must have a leading zero to denote octal.

UMASK=0022

## su default values:
## SU_ROOT_GROUP=suroot
## SU_DEFAULT_PATH=/usr/bin:/usr/contrib/bin:
## SU_KEEP_ENV_VARS=LD_LIBRARY_PATH,SHLIB_PATH,LD_PRELOAD&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2015 03:02:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-date-in-hp-unix/m-p/6715145#M729484</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2015-03-03T03:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: password expiry date in hp unix.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-date-in-hp-unix/m-p/6715181#M729485</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From your comment I understand that if value is -1 then password aging is not set which means the password will never expire.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then why we are setting lftm, exptm, mintm, expwarn &amp;nbsp;to zero to make password never expire.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then what is the difference between -1 and 0.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2015 05:42:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-date-in-hp-unix/m-p/6715181#M729485</guid>
      <dc:creator>krissh89</dc:creator>
      <dc:date>2015-03-03T05:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: password expiry date in hp unix.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-date-in-hp-unix/m-p/6715630#M729486</link>
      <description>&lt;P&gt;The man page for getprpw defined the numeric values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Numeric values are specified as positive numbers, 0, or -1.  A  value of -1 indicates that the field has not been assigned a value in the database.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So -1 means that there is no value has been assigned and therefore default behavior is effective. 0 means the value is explicitly set to not take effect, and positive numbers indicate the numeric value for the setting such as days to warn for a password expiration.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 02:01:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-date-in-hp-unix/m-p/6715630#M729486</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2015-03-04T02:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: password expiry date in hp unix.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-date-in-hp-unix/m-p/6715735#M729487</link>
      <description>&lt;P&gt;You can use "secweb" command to see the default settings.&lt;/P&gt;&lt;P&gt;Can also be found in&amp;nbsp;/tcb/files/auth/system/default but then you have to calculate yourself, as values are listed in seconds.&lt;/P&gt;&lt;P&gt;u_exp#2592000 = 30 days ( 2592000 /&amp;nbsp;86400 )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Per&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 08:48:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-date-in-hp-unix/m-p/6715735#M729487</guid>
      <dc:creator>Per Christensen_1</dc:creator>
      <dc:date>2015-03-04T08:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: password expiry date in hp unix.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-date-in-hp-unix/m-p/6728576#M729488</link>
      <description>&lt;P&gt;The following script will print the password expiry date for an individual user on a Trusted System:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#!/usr/bin/sh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Has the system been converted to Trusted Mode?&lt;BR /&gt;TCB_DIR=/tcb/files/auth/&lt;BR /&gt;if [ ! -d $TCB_DIR ]&lt;BR /&gt;then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "\n\nSystem has not been converted to Trusted Mode\n\n"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;USER=$1&lt;BR /&gt;TCB_FILE=$TCB_DIR/`echo $USER | cut -c1`/$USER&lt;BR /&gt;&lt;BR /&gt;# Is there a password file for this user?&lt;BR /&gt;if [ ! -f $TCB_FILE ]&lt;BR /&gt;then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "\n\nThe password file $TCB_FILE does not exist for $USER\n\n"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;DEFAULT_EXPIRY=`grep u_exp $TCB_DIR/system/default | awk -F'#' '{print $4}' | cut -d ':' -f1`&lt;BR /&gt;USER_CHANGED=`grep u_succhg $TCB_FILE | awk -F'#' '{print $2}' | cut -d ':' -f1`&lt;BR /&gt;USER_EXPIRY_TICKS=`expr $DEFAULT_EXPIRY + $USER_CHANGED`&lt;BR /&gt;echo "\nPassword for user \"$USER\" expires on: " `perl -MPOSIX -e "print strftime \"%d-%b-%y %H:%M:%S\n\",localtime($USER_EXPIRY_TICKS)"`&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2015 03:57:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-date-in-hp-unix/m-p/6728576#M729488</guid>
      <dc:creator>KathyL1</dc:creator>
      <dc:date>2015-08-11T03:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: password expiry date in hp unix.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-date-in-hp-unix/m-p/6765390#M729489</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When am using above script am not able to get valid dates , i mean its showing earlier dates .&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 11:26:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-date-in-hp-unix/m-p/6765390#M729489</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2015-07-16T11:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: password expiry date in hp unix.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-date-in-hp-unix/m-p/6773615#M729490</link>
      <description>&lt;P&gt;Apologies -&amp;nbsp; I made a typo in my original post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've updated it with the correct information (and added some additional tests).&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2015 03:58:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-date-in-hp-unix/m-p/6773615#M729490</guid>
      <dc:creator>KathyL1</dc:creator>
      <dc:date>2015-08-11T03:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: password expiry date in hp unix.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-date-in-hp-unix/m-p/6773696#M729491</link>
      <description>&lt;P&gt;Thanks a ton.&lt;/P&gt;&lt;P&gt;Its working now.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2015 06:36:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-date-in-hp-unix/m-p/6773696#M729491</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2015-08-11T06:36:37Z</dc:date>
    </item>
  </channel>
</rss>

