LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-27-2004, 08:50 AM   #1
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
Help needed! BIG problem with security


Hi all,

I just found out I have a huge! security problem...
When connecting through SSH to my linux machine, i am prompted for my username (Sofar so good) and then my password.
There is where it goes wrong: I can type in any password I'd like, an I get access!!!!
So i.e.
User: myname
Passwd: blabla
Works...
User: myname
Passwd: somthingelse
User: myname
Passwd: AnythingITypeHere

All work, and I am logged in as user myname..

Fortunately, The access to this box is limited to internal traffic only, but still, I don't like this!!!!

Anyone with Ideas ?? Thanks VERY!!!! much!

Sat
 
Old 04-27-2004, 10:09 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Sounds like you are using host-based or stored key authentification? What distribution does this occur on, and have you changed anything in the sshd_conf file?


Håkan
 
Old 04-27-2004, 11:05 AM   #3
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
I run 2 linuxboxes:
1 = RH9 acting as Samba PDC
1 = RH7.3


From any box (windows - putty) or linux, i can login to both machines with any passwd as long as the username is correct...


I have not made any changes lately.....
 
Old 04-27-2004, 11:14 AM   #4
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
I have found that the problem has something to do wit PAM, but I am not sure how to solve it...

I commented everything out in the /etc/pam.d/sshd and then it seems to work as expected (Allthough I cannot login at all then...)

Any hints ?
 
Old 04-27-2004, 12:13 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I commented everything out in the /etc/pam.d/sshd and then it seems to work as expected
OpenSSH's PAM file uses system-auth. First thing I would do is activate all statements in pam.d/sshd and add debug statements. If that doesn't show anything usefull I'd add debug statements to system-auth too. If that doesn't anything usefull, verify any changes you made in the past, post what you did accompanied by your sshd and system-auth files. One crude way to verify changed files would be to run rpm -Va and grep for /etc/pam.d, then extract those originals and diff.
 
Old 04-27-2004, 12:16 PM   #6
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
I compared the ssh pam file with the original one (Thank God for backups)
I commented out the first line in it:

Code:
# auth       required     /lib/security/pam_stack.so service=system-auth
auth       required     /lib/security/pam_nologin.so
account    required     /lib/security/pam_stack.so service=system-auth
password   required     /lib/security/pam_stack.so service=system-auth
session    required     /lib/security/pam_stack.so service=system-auth
session    required     /lib/security/pam_limits.so
session    optional     /lib/security/pam_console.so
I uncommented the first one and it seemd to work again, but logins are slow...
 
Old 04-27-2004, 12:53 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Any changes to system-auth?
 
Old 04-27-2004, 03:30 PM   #8
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
Sorry,

Where do i find that ? Changes to system-auth ?? I guess i didn't change anything there, since i don't even know where to find it...
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help needed in security ,vonarabilities ,loopholes in linux security haseebnazar Linux - Security 2 11-23-2005 07:16 PM
Big Help Needed Bad! Please!!!!!!!!!!! chris82 Linux - General 5 03-06-2004 12:24 PM
Installing RH 9 with RAID 5 --Big, big Problem!!! rhonneil Linux - Software 2 09-25-2003 08:13 PM
Big prob ! Special characters (like euro sign) needed + samba koencalliauw Arch 0 08-27-2003 01:23 PM
Help needed for Security Improvment aisman Linux - Security 3 07-21-2002 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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