Sponsored Content
Full Discussion: "password min age" setting
Operating Systems AIX "password min age" setting Post 302181354 by prichard on Wednesday 2nd of April 2008 06:23:46 PM
Old 04-02-2008
make a copy of /etc/security/user first

vi /etc/security/user

search for ^default, it will take you to the default stanza

find minage in the default stanza.

Change it to desired value. That will change the minage for all users, unless some users are set individually.
 

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. Solaris

Compliation Error in solaris - macro "min" requires 2 arguments, but only 1 given

Hi, I am trying to compile our linux code base in solaris and came across the following issues. Am I suppose to do something special ? Can anyone help me to fix this issue. System : uname -a SunOS aspen 5.10 Generic_125100-08 sun4u sparc SUNW,Sun-Fire-280R The complier that I am using is... (0 Replies)
Discussion started by: learningkid
0 Replies

3. Shell Programming and Scripting

cat $como_file | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'

hi All, cat file_name | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g' Can this be done by using sed or awk alone (4 Replies)
Discussion started by: harshakusam
4 Replies

4. 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

5. Shell Programming and Scripting

how to use "cut" or "awk" or "sed" to remove a string

logs: "/home/abc/public_html/index.php" "/home/abc/public_html/index.php" "/home/xyz/public_html/index.php" "/home/xyz/public_html/index.php" "/home/xyz/public_html/index.php" how to use "cut" or "awk" or "sed" to get the following result: abc abc xyz xyz xyz (8 Replies)
Discussion started by: timmywong
8 Replies

6. 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

7. UNIX for Dummies Questions & Answers

Help with "process age " script

I want a script that will identify all processes for a particular id and kill it if its running more than 5 hours. i have tried to make it but dont know how to find to retrive the process running more than 5 hours. tried below: ps -eo pid,etime,comm,user,tty | grep sas please help... (1 Reply)
Discussion started by: milan111
1 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
sysconfigdb(8)						      System Manager's Manual						    sysconfigdb(8)

NAME
sysconfigdb - Manage the subsystem configuration database SYNOPSIS
/sbin/sysconfigdb -s /sbin/sysconfigdb {-a | -u} [-t target] -f file subsystem-name /sbin/sysconfigdb {-m | -r} [-t target] -f file [subsystem-name] /sbin/sysconfigdb -d [-t target] subsystem-name /sbin/sysconfigdb -l [-t target] [subsystem-name,...] Specifies a subsystem that contains the attributes you want to modify. The subsystem name and attributes are in a stanza-formatted input file. You must specify only one subsystem name when deleting (-d), adding (-a), or replacing (-u) a subsystem. In other cases, when you do not specify a subsystem name the operation is attempted for all the subsystems and attributes specified in the input file. FLAGS
Adds the specified subsystem entry to the target file. Deletes the specified subsystem entry from the target file. Specifies the input file, a stanza-formatted file that contains entries for one or more subsystems. The default target file is the /etc/sysconfigtab file. Specify another target file by using the -t target flag. Lists the specified subsystem entries in the target file. If you do not specify subsystem-name,... arguments, all subsystem entries in the target file are listed. The /etc/sysconfigtab file is the default target file. Merges subsystem attributes specified in the input file with the subsystem attributes in the target file. If you do not specify a subsys- tem-name argument, all subsystem entries in the input file are merged. The /etc/sysconfigtab file is the default target file. Removes the subsystem entries specified in the input file from the target file. The only entries removed are those which have attribute names and val- ues that exactly match those in the input file. If you do not specify a subsystem-name argument, all subsystem entries in the input file with exactly-matching attributes are removed from the target file. The /etc/sysconfigtab file is the default target database file. Syn- chronizes the /etc/sysconfigtab file and the in-memory configuration database by updating the in-memory database so that it matches the /etc/sysconfigtab file. Specifies the target file for the operation. If you do not specify this flag, the default target file is the /etc/sysconfigtab file. Replaces a subsystem entry in the target file with the subsystem entry specified in the input file. DESCRIPTION
The sysconfigdb command is used to manage the /etc/sysconfigtab subsystem configuration database. However, it can also be used to maintain any text file that has the same format as the /etc/sysconfigtab file. The file being managed by the sysconfigdb command is called the tar- get file. By default, the target file is the /etc/sysconfigtab file. To specify another file as a target file, use the -t file flag. To modify a target file, create an input stanza-formatted file, as described in stanza(4). This stanza file contains the name of one or more subsystems, each with a list of attributes and their values. When the target file is the /etc/sysconfigtab file, modifications you make to it are automatically synchronized into the in-memory subsys- tem configuration database. However, the subsystems are unchanged until the next time they are configured. When the target file is another file, there is no synchronization with the in-memory subsystem configuration database. For example, suppose you create the following file named table_mgr.stanza that defines the attributes for a subsystem named table_mgr_1 and a subsystem named tbl_mgr_2: table_mgr_1: size = 10 name = Ten Element Table tbl_mgr_2: size = 5 name = Five Element Table To add the contents of this file to the /etc/sysconfigtab database and to have those modifications synchronized with the in-memory configu- ration database, enter the following commands: # sysconfigdb -a -f table_mgr.stanza table_mgr_1 # sysconfigdb -a -f table_mgr.stanaz tbl_mgr_2 The above example does not change the value of attributes in the running kernel. To modify the value of attributes in the run- ning kernel you must do one of the following: Use the sysconfig -r command Unconfigure and reconfigure the subsystem that contains the attribute value Reboot your system Always use the sysconfigdb command to modify the /etc/sysconfigtab database as it automatically updates the in-memory copy of the database. This ensures that the kernel has immediate access to any changes. The file is also automatically merged during an update installation and changes will be merged into the new system. To add the contents of the file table_mgr.stanza to another text file named /etc/sampleconfigdb, enter the following command: # sysconfigdb -a -t /etc/sampleconfigdb -f table_mgr.stanza Because the output file is not the /etc/sysconfigtab file, the in-memory configuration data- base is not updated. RESTRICTIONS
You must be the root user to execute the commmand when the /etc/sysconfigtab file is the target file and the operation will modify it. EXAMPLES
The following list shows examples of using the sysconfigdb command: To replace an existing entry in the /etc/sysconfigtab file, use the -u flag: # sysconfigdb -u -f table_mgr.stanza table_mgr_1 The above command replaces the table_mgr_1 entry in the /etc/sysconfigtab file with the information in the table_mgr.stanza file for the table_mgr_1 subsystem. The command updates the in-memory copy of the subsystem configuration database to match the modified /etc/sysconfigtab file. To merge information in a stanza-formatted file with the /etc/sysconfigtab file, use the -m flag: # sysconfigdb -m -f table_mgr.stanza tbl_mgr_2 The above command merges the tbl_mgr_2 information from the table_mgr.stanza file with the information already in the tbl_mgr_2 entry in the /etc/sysconfigtab file. The command updates the in-memory copy of the subsystem configuration database to match the modified /etc/sysconfigtab file. To list the entry for a subsystem in the /etc/sysconfigtab file, use the -l flag: # sysconfigdb -l table_mgr_1 table_mgr_1: size = 10 name = Ten Element Table The above command does not update the in-memory copy of the subsystem configuration database. To delete the entry for a subsystem from the /etc/sysconfigtab file, use the -d flag: # sysconfigdb -d table_mgr_1 The above command deletes the table_mgr_1 entry from the /etc/sysconfigtab file and updates the in-mem- ory copy of the subsystem configuration database to match the modified /etc/sysconfigtab file. FILES
The subsystem configuration database RELATED INFORMATION
Commands: cfgmgr(8) sysconfig(8) Files: sysconfigtab(4), stanza(4) delim off sysconfigdb(8)
All times are GMT -4. The time now is 07:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy