LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-24-2018, 03:19 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,772
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
seeking logging for failed passwords


Is there a setting that will make a log entry that shows the PASSWORD_STRING used when the login fails?

I realize that this will often catch a simple typo, but I'm thinking that I can automatically watch the log and throw an alarm if that happens too often.
My few users do a pretty good job of using strong passwords. My guests not so much. Some guest users are teen boys (I have grand sons) and so I'm wanting to know that someone is pecking around -- not just "failed login" but which PASSWORD_STRING were they pecking with.

Thanks in advance,
~~~ 0;-Dan
 
Old 05-25-2018, 06:18 AM   #2
DevGuy
LQ Newbie
 
Registered: May 2018
Location: London
Distribution: CentOS 7.5
Posts: 25

Rep: Reputation: Disabled
Passwords are hashed. If plain text is available, that would render the hashing useless. So, you are unlikely to be able to get the plain text, unless you can hack into the kernel memory.

There's nothing to stop you creating accounts using passwords you prefer and assign them to users.

I'd imagine script kiddies usually peck around with a common hacking-dictionary set of words.

Last edited by DevGuy; 05-25-2018 at 06:24 AM.
 
Old 05-26-2018, 01:04 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
breach of privacy, i'd say.
you should not know your users' passwords.
why not simply log the amount of login attempts?
if it's more than a few times per minute, more than a dozen times per hour, etc. it's VERY likely to be a cracking attempt.
even then you don't have to ban the IP compltely, just start with a penalty of 1 hour or so.
software exists that does that for you (fail2ban?).
 
Old 05-26-2018, 10:55 AM   #4
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 601

Rep: Reputation: 172Reputation: 172
As said it would be a breach of the data protection laws at least, and certainly immoral.
You cannot even excuse yourself by saying you might need access to their data in an emergency, since there are far better way around that.
Whenever I had to work on people's machines, I always either asked them to remove passwords temporarily or change it to something not connected with their usual one. I always insisted on them changing the passwords as soon as they were happy with the work done.
This has two side affects.
They tend to trust you more since they know full well that you will likely have to have access to their data to protect it from any hardware errors - back up for instance.
It forces them to change the password when they get it back and therefore tends to protect you from any future data losses.
 
Old 05-29-2018, 12:45 PM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I don't understand. Your grandkids are sometimes guest users on your system, and they try to guess passwords to other accounts? And you want to know which words they are using to guess at the correct password?
 
Old 05-30-2018, 03:31 PM   #6
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,772

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
My thoughts worked like this:
  • {user} tries to login -- the login fails
  • they keep trying ... still fails
  • they ask me for help with login

I could simply force a fresh, known, easy-to-type string. They gripe that they like what they are using blah blah blah. As an example, their password is AbcdEfgh31415. Their problem is that they forget the capital-E
in the middle of things. I was hoping to log what they actually typed so that I could see, Abcdefgh31415 on the failed attempt(s).

As this machine is home-office internal, and the users are family, I was focused on helpful.
Thanks to all for the privacy reminders.

~~~ 0;-Dan
 
Old 05-30-2018, 03:54 PM   #7
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 601

Rep: Reputation: 172Reputation: 172
Even when the Authorities get permission to break into machines, they NEVER NEVER get the user's password without being given it.
If it is possible (remember the Apple case) to break in, it is only possible to remove the password necessity, or to overwrite it with a known one. That way the user will know it has been hacked.
Passwords are "one time" encrypted and cannot be decrypted (well except by trying every single possibility).
 
Old 05-30-2018, 04:08 PM   #8
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,732

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by SaintDanBert View Post
I could simply force a fresh, known, easy-to-type string. They gripe that they like what they are using blah blah blah.
Then just force what they (think) they are using?

[Tho, I get the desire to show them what they're doing "wrong"...]
 
Old 06-09-2018, 04:07 PM   #9
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,772

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by scasey View Post
Then just force what they (think) they are using?

[Tho, I get the desire to show them what they're doing "wrong"...]
Since these are family youngsters, I was hoping to use the teachable moment.
I'll find another way...

Thanks to all,
~~~ 0;-Dan
 
  


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
Console users logging in without passwords! claude56 Linux - Security 17 10-07-2010 10:32 AM
Console users logging in without passwords! (OT) unSpawn Linux - Security 1 07-22-2010 10:04 AM
Failed passwords log Zero187 Linux - Newbie 7 06-02-2009 03:36 PM
sshd attacks - failed passwords x42bn6 Linux - Security 28 10-19-2006 10:15 AM
logging passwords (using PAM) markus1982 Linux - General 1 03-26-2003 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:49 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