473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

etc/passwd edition

Ok , i need to make some changes on user password policies by editing the etc/passwd file ...

I need to change joeblow /etc/shadow entry so that he must change his password once every 90 days, receiving a warning 5 days prior to his password expiring, with no minimum time before user can change his passwords .

So far i can accomplish the first part (90 days to change password) thru this command:

chage -M 90 joeblow

But i am a little stock with the rest .

Any idea anyone ?

I appreciate any help
Apr 10 '07 #1
1 1561
ghostdog74
511 Expert 256MB
Ok , i need to make some changes on user password policies by editing the etc/passwd file ...

I need to change joeblow /etc/shadow entry so that he must change his password once every 90 days, receiving a warning 5 days prior to his password expiring, with no minimum time before user can change his passwords .

So far i can accomplish the first part (90 days to change password) thru this command:

chage -M 90 joeblow

But i am a little stock with the rest .

Any idea anyone ?

I appreciate any help
you do not want to manually modify your /etc/shadow file. use the proper tools, like usermod or passwd to change them. check your passwd, usermod man page for instructions.
Apr 11 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: dave | last post by:
Hello, I've got a php script that is trying to authenticate a user against a rh9 /etc/passwd file. The passwd file has permissions of 444 but when i try to log in i am being redirected to my error...
5
by: Robin Cull | last post by:
Hi all, I'm writing a script that needs to do lookups on the UNIX passwd and groups file on textual usernames/group names and return numeric UID/GID. Something that gives access to the C...
1
by: Kempniu | last post by:
Hi there, I was wondering how do all the "free web space" services etc. work - when one fills in a form, he/she is automatically added to the system's userlist. How does this work? I mean, how...
0
by: Greg Patnude | last post by:
From: "Greg Patnude" <gpatnude@hotmail.com> Subject: pg_shadow --> passwd Date: Monday, October 13, 2003 6:04 PM Is there a way to "decrypt" a database users passwd stored in pg_shadow ??? my...
0
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager...
3
by: Tony Hunter | last post by:
Hello, I am trying to automatically login to websites after I have used SSO to get the credentials. For my test, I am working with my Yahoo account. The code that I am using is code that many...
3
by: Rocky Zhou | last post by:
Today I found a problem, when I wrote a section of PHP code like this: <?php $fp = fopen("/etc/passwd","r"); if($fp) { echo 'ok!'; $result = fread($fp, 8192); return $result;
8
by: sathyashrayan | last post by:
Dear group, For a log-in page I have created a mysql db and user registers with a user name and password. The password field is encrypted with $passwd = sha1($_REQUEST); I insert the...
2
by: aliwarid | last post by:
Hi All, Can any one tell me how can i make changes in /etc/passwd file ? Is it right way to make changes with "vi" command in solaris ? Or Is there any other procedure or command like for LOCKING...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.