LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-03-2009, 08:54 AM   #1
daugavpils
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
Console user locked out - pam problems?


I am trying to enable AD authentication for Debian stable servers to enable users to logon via ssh authenticating against Windows AD.It all works fine and I can ssh to the server using my Windows credentials but I have noticed this message on remote ssh logon when logging on as root:

Your account has been locked. Please contact your System administrator
Your account has been locked. Please contact your System administrator
Your account has been locked. Please contact your System administrator
Last login: Sat Jun 13 14:15:14 2009 from workstation1
server1:~#

I have checked if I can login via local console as root and oops, I cannot.Same error pops up.This could kick me painfully in the future.
At the same time I have tried the same setup for RedfHat and I don't have this problem.
I believe the problem is somewhere in my pam configuration but can't see where.googling for error does not get me anywhere either.

below are details for corresponding pam files on Debian and redhat

*common-account*

`account sufficient pam_winbind.so require_membership_of=S-1-5-21-602162358-1844823847-725345543-XXXXXX`

`account sufficient pam_winbind.so require_membership_of=S-1-5-21-602162358-1844823847-725345543-XXXXXX`

`account sufficient pam_winbind.so require_membership_of=S-1-5-21-602162358-1844823847-725345543-XXXXXX`

`account required pam_unix.so`

*common-auth*

`auth sufficient pam_winbind.so require_membership_of=S-1-5-21-602162358-1844823847-725345543-XXXXXX`

`auth sufficient pam_winbind.so require_membership_of=S-1-5-21-602162358-1844823847-725345543-XXXXXX`

`auth sufficient pam_winbind.so require_membership_of=S-1-5-21-602162358-1844823847-725345543-XXXXXX`

`auth required pam_unix.so nullok_secure`

*common-sesion*

`session required pam_mkhomedir.so skel=/etc/skel/ umask=0022`
`session sufficient pam_winbind.so require_membership_of=S-1-5-21-602162358-1844823847-725345543-XXXXXX `

`session sufficient pam_winbind.so require_membership_of=S-1-5-21-602162358-1844823847-725345543-XXXXXX`

`session sufficient pam_winbind.so require_membership_of=S-1-5-21-602162358-1844823847-725345543-XXXXX`

`session required pam_unix.so`


*RedHat system-auth file:*

`auth required pam_env.so`
`auth sufficient pam_unix.so nullok try_first_pass`
`auth sufficient pam_winbind.so use_first_pass`
`auth requisite pam_succeed_if.so uid >= 500 quiet`
`auth required pam_deny.so`

`account required pam_unix.so`
`account sufficient pam_succeed_if.so uid < 500 quiet`
`account sufficient pam_winbind.so use_first_pass`
`account required pam_permit.so`

`password requisite pam_cracklib.so try_first_pass retry=3`
`password sufficient pam_unix.so md5 shadow nullok try_first_pass use_authtok`
`password sufficient pam_winbind.so use_first_pass`
`password required pam_deny.so`

`session optional pam_keyinit.so revoke`
`session required pam_limits.so`
`session required pam_winbind.so use_first_pass`
`session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid`
`session required pam_unix.so`
`session optional pam_mkhomedir.so skel=etc/skel/ umask=0027`
 
Old 07-04-2009, 07:18 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
This is the standard configuration on Debian. No ssh root logins. No console root logins.
 
Old 07-05-2009, 10:27 AM   #3
theacerguy
Member
 
Registered: Jan 2009
Location: on my pc!
Distribution: openSUSE 11.2 opensolaris 2009.06
Posts: 218
Blog Entries: 7

Rep: Reputation: 32
Quote:
Originally Posted by stress_junkie View Post
This is the standard configuration on Debian. No ssh root logins. No console root logins.
this is what i would recomend:
use ubuntu server 9.04 because that allows root logins via ssh and console just do sudo passwd root then you can set his password and su away(note i am typing this on ubuntu 9.04 server cos i did sudo apt-get install kdm exce4 and got kdm and xfce)
 
  


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
Difference betwwen : Locked User Account & Disabled User Accounts in Linux ? avklinux Linux - Security 1 02-04-2009 02:30 PM
print user list, showing a locked user account?? royal024 Linux - Newbie 4 10-18-2008 10:57 AM
Locked-up virtual console Consul Linux - General 3 01-29-2006 01:02 PM
Locked out after activating PAM-LDAP tdubois65 Linux - Security 3 04-13-2004 02:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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