ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Дмитрий <ddv@nevod.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: [Comm] Настройка PAM. SSHD авторизация в winbind
Date: Tue, 04 Mar 2008 16:54:36 +0500
Message-ID: <47CD387C.3000406@nevod.ru> (raw)

Настроил авторизацию для всех приложений через winbind всё работает 
кроме sshd.

# cat /etc/pam.d/sshd
#%PAM-1.0
auth     required       pam_userpass.so
auth     include        system-auth-winbind
auth     required       pam_nologin.so
account  include        system-auth-winbind
password include        system-auth-winbind
session  include        system-auth-winbind

# cat /etc/pam.d/system-auth-winbind
#%PAM-1.0
#auth     required      pam_securetty.so
auth     required       pam_nologin.so
auth     sufficient     pam_winbind.so
auth     include        system-auth-use_first_pass
account  sufficient     pam_winbind.so
account  include        system-auth
password sufficient     pam_winbind.so
password include        system-auth
# We use pam_mkhomedir to create home dirs for incoming domain users
# Note used umask, it will result in rwxr-x--x access rights
session  required       pam_mkhomedir.so skel=/etc/skel/ umask=0026
session  include        system-auth


Вот лог /var/log/auth/all
Mar  4 16:05:54 xx sshd[8402]: pam_winbind(sshd:auth): getting password 
(0x00000000)
Mar  4 16:05:54 xx sshd[8402]: pam_winbind(sshd:auth): Could not 
retrieve user's password
Mar  4 16:05:55 xx sshd[8402]: Failed password for guest from 
xxx.xxx.xxx.xxx port 55035 ssh2
Mar  4 16:05:55 xx sshd[8402]: Excess permission or bad ownership on 
file /var/log/btmp
Mar  4 16:05:58 xx sshd[8402]: Failed password for guest from 
xxx.xxx.xxx.xxx port 55035 ssh2
Mar  4 16:05:58 xx sshd[8402]: Excess permission or bad ownership on 
file /var/log/btmp
Mar  4 16:06:05 xx sshd[8402]: Failed password for guest from 
xxx.xxx.xxx.xxx port 55035 ssh2
Mar  4 16:06:05 xx sshd[8402]: Excess permission or bad ownership on 
file /var/log/btmp
Mar  4 16:06:05 xx sshd[8405]: Connection closed by xxx.xxx.xxx.xxx
Mar  4 16:07:55 xx sshd[8417]: PAM unable to 
dlopen(/lib64/security/pam_krb5.so)
Mar  4 16:07:55 xx sshd[8417]: PAM [error: /lib64/security/pam_krb5.so: 
cannot open shared object file: No such file or directory]

Настроил аналогичным образом через Керберос и всё работает. В чём проблема?
# cat /etc/pam.d/sshd
#%PAM-1.0
auth     required       pam_userpass.so
auth     include        system-auth-krb5
auth     required       pam_nologin.so
account  include        system-auth-krb5
password include        system-auth-krb5
session  include        system-auth-krb5

# cat /etc/pam.d/system-auth-krb5

#%PAM-1.0
auth     sufficient     pam_krb5.so
auth     include        system-auth-use_first_pass
account  sufficient     pam_krb5.so
account  include        system-auth
password sufficient     pam_krb5.so
password include        system-auth
### We use pam_mkhomedir to create home dirs for incoming domain users
### Note used umask, it will result in rwxr-x--x access rights
session  required       pam_mkhomedir.so skel=/etc/skel/ umask=0026
session  include        system-auth


                 reply	other threads:[~2008-03-04 11:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47CD387C.3000406@nevod.ru \
    --to=ddv@nevod.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git