Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 04-26-2005, 09:58 PM   #1
Registered: Oct 2004
Posts: 42

Rep: Reputation: 15
how expire password automatically


I have a couple of questions regarding the passwords and security:

1. How do I make all the passwords expire within, say 60 days of previous time the password was reset? Do I need to run a script for it or can we acheive this using commands?

2. I want to prevent some users in my system from executing 'su', while others should be able to do it. How do I acheive this? I read online that adding those some users to a group and chmod the group permissions is not a good idea... I was thinking if there was a better way to do it.

I am runnning Redhat Enterprise 3.... Please advice...

Old 04-27-2005, 12:25 AM   #2
Senior Member
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
I'm not sure if yours is the same as Gentoo but in Gentoo you have to be in the wheel group to su to root. That may help on one of those problems.


Old 04-27-2005, 12:38 AM   #3
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 33
ad 1)

There is utility chage for setting password aging.

See this for more passwords info:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
samba password expire Peds222 Linux - Newbie 1 03-12-2005 04:34 PM
Change text of "password will expire in..." Schlabbl Linux - Software 0 08-25-2004 03:48 AM
Warning: your password will expire in 0 days dragon Linux - Security 5 05-27-2004 02:53 AM
Howto login as root with no password (automatically) vivekd Linux - Software 0 02-12-2004 04:29 AM
Samba -> Expire password Tiago Cruz Linux - Networking 6 03-05-2003 07:21 AM

All times are GMT -5. The time now is 04:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration