LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-22-2019, 09:32 PM   #1
mintner
LQ Newbie
 
Registered: Sep 2019
Posts: 3

Rep: Reputation: Disabled
Default max password expiry is 99999 days, why?


# Password aging controls:
# PASS_MAX_DAYS Maximum number of days a password may be used.
# PASS_MIN_DAYS Minimum number of days allowed between password changes
# PASS_MIN_LEN Minimum acceptable password length.
# PASS_WARN_AGE Number of days warning given before a password expires
PASS_MAX_DAYS 99999
PASS_MIN_DAYS 0
PASS_MIN_LEN 5
PASS_WARN_AGE 7

Why is it 99999 days? 5 nines. What is special about this? Does it have to be 5 characters? It coulda been 9999, even 999 days. I feel like there’s a reason it is 99999.

I realize this doesn’t matter for function, but I am curious as to why. If there is no reason, I want to know that too.

Last edited by mintner; 11-22-2019 at 10:24 PM. Reason: More information
 
Old 11-22-2019, 09:35 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,351
Blog Entries: 28

Rep: Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147
What is the context of this "default password expiry" setting?
 
2 members found this post helpful.
Old 11-23-2019, 12:50 AM   #3
gregorywest
LQ Newbie
 
Registered: Nov 2019
Location: Manitoba Canada
Distribution: Centos, SUSE, Debian, Ubuntu, Fedora....
Posts: 8

Rep: Reputation: Disabled
Default max password expiry is 99999 days, why?

My quick guesx is 99,999 is just under 275 years, thus 9999 would be just under 27 years. Where the latter can happen in the life span of code ( I had a job in the early 1990's updating code written in the 1960's), the former is not. Since you have a field of width X, X=4 could cause an issue, but X=5, if it caused an issue would be 200 years after the person who caused it died.

Greg
 
2 members found this post helpful.
Old 11-23-2019, 05:01 AM   #4
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by mintner View Post
# Password aging controls:
# PASS_MAX_DAYS Maximum number of days a password may be used.
# PASS_MIN_DAYS Minimum number of days allowed between password changes
# PASS_MIN_LEN Minimum acceptable password length.
# PASS_WARN_AGE Number of days warning given before a password expires
PASS_MAX_DAYS 99999
PASS_MIN_DAYS 0
PASS_MIN_LEN 5
PASS_WARN_AGE 7
Ugh! The system'll allow someone to use a 5-character password for nearly 274 years. The auditors will have a cow.

As for why "99999"? Probably just some value the person that set up the configuration pulled out of thin air (or somewhere else). "12345" (a still-too-long 33.8 years) could have been just as likely found in the config. I've always figured that PostgreSQL listens on port "5432" for much the same reason.
 
Old 11-23-2019, 03:31 PM   #5
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
Originally Posted by rnturn View Post
As for why "99999"?
It's lesser time than the extreme "-1"...
 
Old 11-23-2019, 10:26 PM   #6
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by rnturn View Post
I've always figured that PostgreSQL listens on port "5432" for much the same reason.
Amd some BitTorrent clients (like Vuze) on port 54321
 
Old 11-24-2019, 09:03 AM   #7
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,673

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
Oops! Already solved but here's my worth...

Quote:
Default max password expiry is 99999 days, why?
Because it's a five numeric digit field? The largest single decimal number is 9, so 99999 would be the maximum allowable number. You'd have to ask the person who originally coded this why they wanted five digits but to me, it looks like it's equivalent to "Password does not expire."

Play Bonny!

 
1 members found this post helpful.
Old 11-24-2019, 09:56 AM   #8
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
Originally Posted by Soadyheid View Post
...to me, it looks like it's equivalent to "Password does not expire."
To be nit-picking, it really isn't... it's set to expire in ~274 year. A "do not expire" is "-1".
 
1 members found this post helpful.
Old 11-24-2019, 07:33 PM   #9
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,673

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
OK, I said "equivalent". Should I have said "User will expire first"?

Keep up the nit picking!

Play Bonny!

 
2 members found this post helpful.
  


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
99999 reuk Linux - Newbie 23 03-14-2016 04:12 PM
red hat satellite server and kicstart PASS_MAX_DAYS 99999 unix1adm Red Hat 2 03-15-2012 12:10 PM

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

All times are GMT -5. The time now is 08:52 PM.

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