Sponsored Content
Operating Systems HP-UX How I know "last password changed". Post 302171643 by arm_naja on Friday 29th of February 2008 05:42:11 AM
Old 02-29-2008
Thanks vbe,


man getprpw can help me.

# /usr/lbin/getprpw -l user_name

Smilie
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

2. Emergency UNIX and Linux Support

Mapping between "Pseudo name" and "Logical device ID" in powerpath with SVM changed....

Dear All, I was having powerpath 5.2 on SUN server with SVM connected to CLARIION box.Please find the following output : root # powermt display dev=all Pseudo name=emcpower3a CLARiiON ID=CK200073400372 Logical device ID=60060160685D1E004DD97FB647BFDC11 state=alive; policy=CLAROpt;... (1 Reply)
Discussion started by: Reboot
1 Replies

3. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

4. Emergency UNIX and Linux Support

Accidentally Changed File Ownership to Include a "Comment" [AIX]

Hi. I've had a little mishap. To cut a long story short, I've accidentally recursively ran chown on a directory (actually a bunch of 'em). Not a problem in itself, but I had a slight error in the code I used to get the list of directories and ended up with a comment in the file ownership. ... (15 Replies)
Discussion started by: Scott
15 Replies

5. Shell Programming and Scripting

Script to echo "File permissions or ownership changed from required " when accidentally changed.

Hi All, I have to work in the late nights some times for server maintenance and in a hurry to complete I am accidentally changing ownership or permission of directories :( which have similar names ( /var in root and var of some other directory ).:confused: Can some one suggest me with the... (1 Reply)
Discussion started by: shiek.kaleem
1 Replies

6. OS X (Apple)

Command Prompt changed to "mrbigglesworth" ?!?!

I recently installed mySQL on my macbook. I opened Terminal to run mySQL and entered "cd /usr/local/mysql/bin". My command prompt immediately changed to "mrbigglesworth:". I have no idea why that happened. When I look for the .bash_profile file, it doesn't seem to exist. I opened the... (3 Replies)
Discussion started by: mmesford
3 Replies

7. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

8. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

9. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies
modprpw(1M)															       modprpw(1M)

NAME
modprpw - modify protected password database SYNOPSIS
username value,... ] username DESCRIPTION
updates the user's protected password database settings. This command is available only to the superuser in a trusted system. Usage other than via SAM, and/or modifications out of sync with may result in serious database corruption and the inability to access the system. All updated values may be verified using the command. See getprpw(1M). uses the configuration file default if is not specified. See nsswitch.conf(4). Options sets user's parameters as defined by the options specified. At least one option is required. If a field is not specified in the option then its value remains unchanged in the database. recognizes the following options: To add a new user entry and to return a random password which the new user must use to login the first time. This entry has to be created with the given username and the Error is returned if the user already exists. May be combined with the option. Unlike the command, it does not create nor populate the home directory, and it does not update This option is specified WITHOUT a user name to expire all user's passwords. It goes through the protected password database and zeroes the successful change time of all users. The result is all users will need to enter a new password at their next login. May be combined with the option. This option is specified with a user name to expire the specified user's password. It zeroes the successful change time. May be combined with the and/or options. To unlock/enable a user's account that has become disabled, except when the lock is due to a missing password or * password. May be combined with the and/or options. This option modifies data for a local user, username. This option must be specified with other options. Modify the database field to the specified value and/or resets locks. Valid with one of the following options: or A list of database fields may be used with comma as a delimiter. An "invalid-opt" is printed, and processing terminates, if a list of database fields passed to contains an invalid database field. Boolean values are specified as YES, NO, or DFT for system default values Numeric values are specified as positive numbers, 0, or -1. If the -1 is specified, the numeric value in the database is removed, allowing the system default value to be used. Time values are specified in days, although the database keeps them in seconds. No aging is present if the following 4 database parameters are all zero: Unless specified by all database fields can be set. They are listed below in the order shown in The database fields are fully explained in prpwd(4). DATABASE FIELD database database Set the uid of the user. No sanity checking is done on this value. database database database Set boot authorization privilege, removes it from the user file. database Set audit id. Automatically limited not to exceed the next available id. database Set audit flag. database Set the minimum time interval between password changes (days). 0 = none. Same as non-trusted mode minimum time. database Set the maximum password length for system generated passwords. database Set password expiration time interval (days). 0 = not expired. Same as non-trusted mode maximum time. database Set password life time interval (days). 0 = infinite. database Modified by options maybe database database Set account expiration time interval (days). This interval is added to "now" to form the value in the database (database 0 = no expiration). database Set the last login time interval (days). Used with database Set password expiration warning time interval (days). 0 = none. database Obsoleted field. database Set whether User Picks Password, database Set whether system generates pronounceable passwords, database Set if generated password is restricted, If password will be checked for triviality. database Set whether null passwords are allowed, is not recommended! database Obsolescent field. database Obsoleted field. database Set whether system generates passwords having characters only, database Set whether system generates passwords having letters only, database Set the time-of-day allowed for login. The format is: Where key has the following values: - Monday - Tuesday - Wednesday - Thursday - Friday - Saturday - Sunday - everyday - Monday -> Friday and Starttime and Endtime are in military format: HHMM, where: 00 <= HH <= 23, and 00 <= MM <= 59. database database database database database database Set Maximum Unsuccessful Login tries allowed. 0 = infinite. database Set the administrator lock, This option is specified WITHOUT a user name to "validate/refresh" all user's passwords. It goes through the protected password database and sets the successful change time to the current time for all users. The result is that all user's password aging restarts at the current time. May be combined with the option. This option is specified with a user name to "validate/refresh" the specified user's password. It sets the successful change time to the current time. May be combined with the and/or options. Delete the user's password and return a random password that the user must later supply to the login process to login and pick a new password. Not valid for root. Also resets locks. May be combined with the option. RETURN VALUE
0 Success. 1 User not privileged. 2 Incorrect usage. 3 Can not find the entry or file. 4 Can not change the entry. 5 Not a Trusted System. EXAMPLES
Set the Minimum time between password changes to 12 (days), set the System generates pronounceable password flag to NO, and set the System generates password having characters only flag to YES. The following example is to restrict the times that user joeblow can get on the system on Mondays and Fridays to 5PM-9PM, and Sundays from 5AM-9AM. Other days are not restricted. WARNINGS
This command is intended for SAM use only. It may change with each release and can not be guaranteed to be backward compatible. Several database fields interact with others. Side effects may not be apparent until much later. Special meanings may apply in the following cases: o an absent field, o a field without a value, o a field with a zero value. Very little, if any checking is done to see if values are valid. It is the user's responsibility to range check values. HP-UX 11i Version 3 is the last release to support trusted systems functionality. FILES
System Password file Protected Password Database System Defaults Database AUTHOR
was developed by HP. SEE ALSO
getprpw(1M), prpwd(4), nsswitch.conf(4). TO BE OBSOLETED modprpw(1M)
All times are GMT -4. The time now is 11:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy