LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-26-2014, 07:29 PM   #1
samalchow
LQ Newbie
 
Registered: Jan 2014
Location: Colorado
Distribution: Debian/Centos
Posts: 18

Rep: Reputation: Disabled
chage command - minimum numbers of days


So I've changed this setting, just to play around with it, for my default user to '2'.

But let I can freely change my password multiple times during the day. Is there something that needs to get restarted before the changes take affect?
 
Old 01-27-2014, 03:17 AM   #2
myatthu
Member
 
Registered: Jan 2014
Distribution: CentOS, Fedora, Ubuntu
Posts: 108

Rep: Reputation: 18
Can you put the output of chage -l
Code:
chage -l <username>
 
Old 01-27-2014, 07:09 PM   #3
samalchow
LQ Newbie
 
Registered: Jan 2014
Location: Colorado
Distribution: Debian/Centos
Posts: 18

Original Poster
Rep: Reputation: Disabled
Last password change : Jan 27, 2014
Password expires : Feb 21, 2014
Password inactive : never
Account expires : never
Minimum number of days between password change : 2
Maximum number of days between password change : 25
Number of days of warning before password expires : 7
 
Old 01-27-2014, 10:00 PM   #4
myatthu
Member
 
Registered: Jan 2014
Distribution: CentOS, Fedora, Ubuntu
Posts: 108

Rep: Reputation: 18
It is strange. How do you try to change password?
For your reference, below is my test account.

Code:
chage -l testuser
Last password change                                    : Jan 28, 2014
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 1
Maximum number of days between password change          : 99999
Number of days of warning before password expires       : 7
That is feedback message

Code:
Changing password for testuser.
(current) UNIX password:
You must wait longer to change your password
passwd: Authentication token manipulation error
passwd: password unchanged
 
Old 01-27-2014, 11:19 PM   #5
samalchow
LQ Newbie
 
Registered: Jan 2014
Location: Colorado
Distribution: Debian/Centos
Posts: 18

Original Poster
Rep: Reputation: Disabled
Using the passwd command

Is there other ways of changing it?
 
Old 01-27-2014, 11:55 PM   #6
myatthu
Member
 
Registered: Jan 2014
Distribution: CentOS, Fedora, Ubuntu
Posts: 108

Rep: Reputation: 18
Do you enable shadow file? Run pwconv to enable it.
Code:
pwconv
 
Old 01-28-2014, 06:10 PM   #7
samalchow
LQ Newbie
 
Registered: Jan 2014
Location: Colorado
Distribution: Debian/Centos
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by myatthu View Post
Do you enable shadow file? Run pwconv to enable it.
Code:
pwconv

What will that do?
 
Old 01-28-2014, 06:42 PM   #8
myatthu
Member
 
Registered: Jan 2014
Distribution: CentOS, Fedora, Ubuntu
Posts: 108

Rep: Reputation: 18
chage command required shadow password enabled
 
Old 01-29-2014, 02:19 PM   #9
clacour
Member
 
Registered: Sep 2003
Location: Dallas, Tx, USA
Distribution: Red Hat, Gentoo, Libranet
Posts: 98

Rep: Reputation: 16
Quote:
Originally Posted by samalchow View Post
What will that do?
It will move the passwords out of /etc/passwd, and into a file called /etc/shadow. /etc/shadow is normally much more restricted than /etc/passwd, so people can't get the passwords and try a dictionary attack on them.

If this is your own machine, I'd recommend it - it's much more secure.

If this machine doesn't belong to you (belongs to the company, for example), get the ok before doing it. I can't imagine any company knowingly NOT using shadow passwords, but still not a good idea to change things without warning them.
 
  


Reply



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
"chage" command query sheelavantar Linux - Newbie 5 01-15-2012 08:04 PM
Possible "chage" command corrupted after linux build..how do i reinstall? linuxeth123 Linux - Server 3 05-24-2011 12:55 PM
Find command with -mtime +15 or -15 days?? Virtuose Linux - Newbie 1 02-02-2011 05:48 PM
Chage command mburu Linux - Newbie 1 11-27-2008 09:06 AM
ls command with numbers? SciYro Linux - General 2 04-17-2004 04:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:52 AM.

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