Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Installation - Getting started with Red Hat Linux
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
System wide max passwd age?

System wide max passwd age?

2004-03-25       - By Shane C Branch

 Back
Steven J. Yellin wrote:

> On Thu, 25 Mar 2004, shane c branch wrote:
>
>> Steven J. Yellin wrote:
>> >     I've never done this, but
>> >  useradd -D -e expire_date -f inactive_days
>> > might do approximately what you want.
>>
>> I finally got a chance to start playing around with this today. Yes, the
>> information you provided combined with a reading of the following:
>> http://www.netsys.com/cgi-bin/display_article.cgi?1088
>>
>> and I am close to accomplishing my goal. I now have the useradd program
>> defaults set to my expiration requirements. And with the script provided
>> at the link above, creating users should be even easier.
>>
>> However, I'm still confused as to how to apply the password max age
>> policy to existing users. I'm sure it's in the documentation, but I'm
>> just not making the connection.
>>
>     Maybe it would work to just edit /etc/shadow. "man 5 shadow" says what
> the various fields (stuff between ":") mean.
>

I figured it out not too long after posting that email.

Following the previous suggestion, I did:

#useradd -D to see what my defaults were
then
#useradd -D -e186

to set the system wide expiration date. That takes care of any future users.

Then for current users
#passwd -w14 -x186 username

that set the warning and the max age for the current users. The current
users did have to reset passwords, but that's a small price to get the
policy in place.

--
regards,

shane


--
Shrike-list mailing list
Shrike-list@(protected)
https://www.redhat.com/mailman/listinfo/shrike-list

Earn $52 per hosting referral at Lunarpages.