Go Back   Linux Forums by TotalPenguin! Get linux Help! > Linux > Linux Security

Linux Security Make your Linux box more secure - Learn How

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-22-2008, 08:45 PM
Senior Member
 
Join Date: Jan 2007
Posts: 140
Wanch is on a distinguished road
Default Enforce Password Change

How do I enforce a password change every 60 days in Linux? I would also like the users to have certain rules to follow such as one capital letter and one shift 1-10 key. Any help?
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 02-26-2008, 03:00 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 572
Jordan will become famous soon enough
Default

You can force a user to change their password by using this command:

Code:
# chage -d 0 <username>
At their next login they will be required to change it. For password aging (force to change password after XXX days) edit /etc/login.defs file. Change:

Code:
PASS_MAX_DAYS   99999
to however many days you want the user to have the same password. IE - 60 days

Code:
PASS_MAX_DAYS   60
This only affect new users. For an existing user to enforce a password change every 60 days use:

Code:
# chage -M 60 <username>
As for a password policy you can edit that same file /etc/login.defs and change the values.
Reply With Quote
  #3 (permalink)  
Old 03-21-2008, 01:02 PM
Junior Member
 
Join Date: Mar 2008
Posts: 17
cutiger95 is on a distinguished road
Default

You can of course do it from the command line. But several of the dists now have user administration modules. These modules will allow you to log-in and manage a user with virtual point and click as long as you are the admin.
Reply With Quote
  #4 (permalink)  
Old 03-21-2008, 02:11 PM
Senior Member
 
Join Date: Jan 2007
Posts: 140
Wanch is on a distinguished road
Default

Thanks. I'd rather do it in the GUI. Does Ubuntu have a gui administer? What about SuSE?
Reply With Quote
  #5 (permalink)  
Old 03-21-2008, 09:29 PM
Junior Member
 
Join Date: Mar 2008
Posts: 17
cutiger95 is on a distinguished road
Default

I believe what you are looking for in Ubuntu is Samba, I personally have not used it but someone else may be better at describing it's strengths and weaknesses.
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 03-23-2008, 02:44 AM
Senior Member
 
Join Date: Jan 2007
Posts: 140
Wanch is on a distinguished road
Default

Isn't Samba a file sharing server, like NFS?
Reply With Quote
  #7 (permalink)  
Old 03-23-2008, 03:52 AM
Junior Member
 
Join Date: Mar 2008
Posts: 17
cutiger95 is on a distinguished road
Default You are correct Samba is a file manager

You will have to use

Usage: passwd [options] [LOGIN]

Options:
-a, --all report password status on all accounts
-d, --delete delete the password for the named account
-e, --expire force expire the password for the named account
-h, --help display this help message and exit
-k, --keep-tokens change password only if expired
-i, --inactive INACTIVE set password inactive after expiration
to INACTIVE
-l, --lock lock the named account
-n, --mindays MIN_DAYS set minimum number of days before password
change to MIN_DAYS
-q, --quiet quiet mode
-r, --repository REPOSITORY change password in REPOSITORY repository
-S, --status report password status on the named account
-u, --unlock unlock the named account
-w, --warndays WARN_DAYS set expiration warning days to WARN_DAYS
-x, --maxdays MAX_DAYS set maximim number of days before password


to make it work. Sorry couldn't find a GUI for ubuntu, thought there was one but that is what i get for thinking again.
change to MAX_DAYS
Reply With Quote
Reply

Tags
linux, password change, password rules

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/sd device addresses change Pan Linux Hardware 5 06-19-2008 10:48 AM
Change login resolution of Ubuntu TotalPenguin Linux Applications 4 02-22-2008 04:24 PM
Simple Question.... Change Default Editor Wanch Linux Applications 1 01-28-2008 01:00 PM
MySQL Root Password Prog Linux Applications 1 10-08-2007 08:38 PM
Change my Windows Manager Crop Linux General 1 01-21-2007 05:48 PM


All times are GMT. The time now is 09:26 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.