Sponsored Content
Top Forums UNIX for Dummies Questions & Answers setting of default PASSLENGTH Post 8170 by rwb1959 on Sunday 7th of October 2001 05:35:06 PM
Old 10-07-2001
In a file called /etc/login.defs you will find
a section...

# Password aging controls:
#
# PASS_MAX_DAYS Maximum number of days a password may be used.
# PASS_MIN_DAYS Minimum number of days allowed between password changes.
# PASS_MIN_LEN Minimum acceptable password length.
# PASS_WARN_AGE Number of days warning given before a password expires.
#

...here you will see the actual variables and
their settings. Change them here.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Setting Default Permissions for Files

Hi, I am setting up an area on a unix server where multiple people will be editing web pages. Can anyone tell me how to set it up the directory and subdirectories so that when a user creates a new file, it defaults to permissions of 664 or 775? I've tried using umask but from what I can... (1 Reply)
Discussion started by: robbieg
1 Replies

2. UNIX for Dummies Questions & Answers

PASSLENGTH on Irix

My first post here, and hopefully it will be one of many to come. I am currently running multiple SGI's with different versions of Irix. I have a problem setting the minimum password length for users. I have modified the /etc/default/passwd so that PASSLENGTH = 8 However, it still... (1 Reply)
Discussion started by: herrmag
1 Replies

3. Linux

setting up default page in webppliance

hi frnds i have created a web page name www.my.com i just want to configure a default page where whenever i give some wrong link name that defualt page should be open e:g www.myco.com/x.html (here x.html is not present i have typed it incidentally) so this... (0 Replies)
Discussion started by: naik_mit
0 Replies

4. UNIX for Advanced & Expert Users

Setting the default shell without using chsh

I have tcsh being set as the default shell.I would like to change to ksh. But i dont have "chsh" on my solaris box.so i added the following code to my ~/.login file if ( -f /usr/bin/ksh) then setenv SHELL /usr/bin/ksh exec /usr/bin/ksh endif But this helps me to get the ksh,i doesnot... (10 Replies)
Discussion started by: ennstate
10 Replies

5. Linux

grub: setting a default OS?

I have a dual-boot system (just testing it out, really -- 32-bit Xubuntu 8.10 and 64-bit Ubuntu 9.04) and I'd like to set the computer to boot to the second OS unless I tell it otherwise. Is there a way to do that? (2 Replies)
Discussion started by: CRGreathouse
2 Replies

6. AIX

setting default PP size

Does anyone know how to set PP (Physical Partition) size on rootvg when installing AIX OS from scratch (via CD or NIM installation)? (7 Replies)
Discussion started by: pdtak
7 Replies

7. AIX

default umask setting during ftp

Hi all, How do i change the default primary group of files uploaded in AIX (via ftp) in such a way that the files will be owned by tom:staff? I understand that the default file permission can be set in /etc/profile for aix by adding a new line umask=032 Do I add a line in umask as well?... (5 Replies)
Discussion started by: chipahoys
5 Replies

8. Solaris

default password setting

Can anyone kindly explain to me the meaning of the default values of the code below please? Thank you very much #MINDIFF=3 #MINALPHA=2 #MINNONALPHA=1 #MINUPPER=0 #MINLOWER=0 #MAXREPEATS=0 #MINSPECIAL=0 #MINDIGIT=0 #WHITESPACE=YES (1 Reply)
Discussion started by: cjashu
1 Replies

9. UNIX for Dummies Questions & Answers

Is there any $PATH default setting?

This is a very newbie's question: I was trying to add a new version of the same command "blastn", but the old command always shows up first. which blastn /usr/local/bin/blastnThe two versions of the same command "blastn" are located in: which -a blastn /usr/local/bin/blastn... (5 Replies)
Discussion started by: yifangt
5 Replies

10. Solaris

Is there a difference between setting a user as nologin and setting it as a role?

Trying to figure out the best method of security for oracle user accounts. In Solaris 10 they are set as regular users but have nologin set forcing the dev's to login as themselves and then su to the oracle users. In Solaris11 we have the option of making it a role because RBAC is enabled but... (1 Reply)
Discussion started by: os2mac
1 Replies
PWCONV(8)						    System Management Commands							 PWCONV(8)

NAME
pwconv, pwunconv, grpconv, grpunconv - convert to and from shadow passwords and groups SYNOPSIS
pwconv pwunconv grpconv grpunconv DESCRIPTION
The pwconv command creates shadow from passwd and an optionally existing shadow. The pwunconv command creates passwd from passwd and shadow and then removes shadow. The grpconv command creates gshadow from group and an optionally existing gshadow. The grpunconv command creates group from group and gshadow and then removes gshadow. These four programs all operate on the normal and shadow password and group files: /etc/passwd, /etc/group, /etc/shadow, and /etc/gshadow. Each program acquires the necessary locks before conversion. pwconv and grpconv are similar. First, entries in the shadowed file which don't exist in the main file are removed. Then, shadowed entries which don't have `x' as the password in the main file are updated. Any missing shadowed entries are added. Finally, passwords in the main file are replaced with `x'. These programs can be used for initial conversion as well to update the shadowed file if the main file is edited by hand. pwconv will use the values of PASS_MIN_DAYS, PASS_MAX_DAYS, and PASS_WARN_AGE from /etc/login.defs when adding new entries to /etc/shadow. Likewise pwunconv and grpunconv are similar. Passwords in the main file are updated from the shadowed file. Entries which exist in the main file but not in the shadowed file are left alone. Finally, the shadowed file is removed. Some password aging information is lost by pwunconv. It will convert what it can. BUGS
Errors in the password or group files (such as invalid or duplicate entries) may cause these programs to loop forever or fail in other strange ways. Please run pwck and grpck to correct any such errors before converting to or from shadow passwords or groups. CONFIGURATION
The following configuration variable in /etc/login.defs changes the behavior of grpconv and grpunconv: MAX_MEMBERS_PER_GROUP (number) Maximum members per group entry. When the maximum is reached, a new group entry (line) is started in /etc/group (with the same name, same password, and same GID). The default value is 0, meaning that there are no limits in the number of members in a group. This feature (split group) permits to limit the length of lines in the group file. This is useful to make sure that lines for NIS groups are not larger than 1024 characters. If you need to enforce such limit, you can use 25. Note: split groups may not be supported by all tools (even in the Shadow toolsuite). You should not use this variable unless you really need it. The following configuration variables in /etc/login.defs change the behavior of pwconv: PASS_MAX_DAYS (number) The maximum number of days a password may be used. If the password is older than this, a password change will be forced. If not specified, -1 will be assumed (which disables the restriction). PASS_MIN_DAYS (number) The minimum number of days allowed between password changes. Any password changes attempted sooner than this will be rejected. If not specified, -1 will be assumed (which disables the restriction). PASS_WARN_AGE (number) The number of days warning given before a password expires. A zero means warning is given only upon the day of expiration, a negative value means no warning is given. If not specified, no warning will be provided. FILES
/etc/login.defs Shadow password suite configuration. SEE ALSO
grpck(8), login.defs(5), pwck(8). System Management Commands 06/24/2011 PWCONV(8)
All times are GMT -4. The time now is 05:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy