LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-26-2010, 11:02 AM   #16
ECRocker
Member
 
Registered: May 2007
Distribution: RHEL 5, Ubuntu 9.10, Fedora 12
Posts: 85

Original Poster
Rep: Reputation: 17

From logs:

Code:
Jan 26 12:04:51 JokerFish login: pam_unix(login:auth): authentication failure; logname=LOGIN uid=0 euid=0 tty=tty3 ruser= rhost=  user=root
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: configured realm 'CHESAPEAKEBAY.NET'
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: flags: forwardable
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: flag: no ignore_afs
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: flag: user_check
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: flag: no krb4_convert
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: flag: krb4_convert_524
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: flag: krb4_use_as_req
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: will try previously set password first
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: will let libkrb5 ask questions
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: flag: no use_shmem
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: flag: no external
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: flag: warn
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: ticket lifetime: 36000
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: renewable lifetime: 36000
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: minimum uid: 600
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: banner: Kerberos 5
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: ccache dir: /tmp
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: keytab: FILE:/etc/krb5.keytab
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: called to authenticate 'root', realm 'CHESAPEAKEBAY.NET'
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: authenticating 'root@CHESAPEAKEBAY.NET'
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: ignoring 'root' -- uid below minimum = 600
Jan 26 12:04:51 JokerFish login: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: configured realm 'CHESAPEAKEBAY.NET'
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: flags: forwardable
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: flag: no ignore_afs
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: flag: user_check
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: flag: no krb4_convert
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: flag: krb4_convert_524
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: flag: krb4_use_as_req
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: will try previously set password first
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: will let libkrb5 ask questions
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: flag: no use_shmem
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: flag: no external
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: flag: warn
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: ticket lifetime: 36000
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: renewable lifetime: 36000
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: minimum uid: 600
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: banner: Kerberos 5
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: ccache dir: /tmp
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: keytab: FILE:/etc/krb5.keytab
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: ignoring 'root' -- uid below minimum = 600
Jan 26 12:04:51 JokerFish login: pam_krb5[2528]: pam_open_session returning 25 (The return value should be ignored by PAM dispatch)
Jan 26 12:04:51 JokerFish login: ROOT LOGIN ON tty3

Last edited by ECRocker; 01-26-2010 at 11:08 AM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-27-2010, 04:45 PM   #17
ECRocker
Member
 
Registered: May 2007
Distribution: RHEL 5, Ubuntu 9.10, Fedora 12
Posts: 85

Original Poster
Rep: Reputation: 17
Found it.

Code:
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
at the top of my /etc/pam.d/login file. This line caused all local users logging in at the console to be allowed access regardless what was in the system-auth file.

I ran into some issues after I commented that line out, but they aren't of any concern to this discussion.

Not too sure what those options mean, but it appears that it checks the securetty file, which lists the console, thus returns a "success" and fulfills the authentication requirements. I'm assuming (and will try to research it more tomorrow) that the "user_unknown=ignore" argument is why non-local users had to have a valid password because their Active Directory account was not known to the stack at this stage.
 
  


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
How does on login as the root ? And what password do I use for it ? vigdavies Linux - Newbie 28 10-17-2009 07:53 PM
Password Recovery in Edubuntu 7.04 - In Terminal, Root Login : su , password : ????? farhannaeem13 Linux - Security 3 11-30-2007 09:59 AM
How to set login and password and root password in suse 10.2 sirius57 SUSE / openSUSE 8 07-24-2007 09:51 AM
root login password barrythai Ubuntu 1 12-25-2006 12:26 PM
Can't Login Locally As Root Sword Linux - General 5 08-01-2003 03:25 PM

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

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