LINUX.ORG.RU
решено ФорумAdmin

Проблемы с sssd

 


0

1

Всем привет! Имею рабочую станцию с Ubuntu 20.04 lts. Пытаюсь сделать ввод в домен AD «Методом» sssd. Выполняю команду:

sudo apt-get -y install realmd sssd sssd-tools samba-common krb5-user packagekit samba-common-bin samba-libs adcli ntp

Получаю ошибку:

Creating SSSD system user & group...
adduser: Warning: The home directory `/var/lib/sss' does not belong to the user you are currently creating.
Warning: found usr.sbin.sssd in /etc/apparmor.d/force-complain, forcing complain mode
Warning from /etc/apparmor.d/usr.sbin.sssd (/etc/apparmor.d/usr.sbin.sssd line 54): Warning failed to create cache: usr.sbin.sssd
Created symlink /etc/systemd/system/sssd.service.wants/sssd-autofs.socket → /lib/systemd/system/sssd-autofs.socket.
Created symlink /etc/systemd/system/sssd.service.wants/sssd-nss.socket → /lib/systemd/system/sssd-nss.socket.
Created symlink /etc/systemd/system/sssd.service.wants/sssd-pam-priv.socket → /lib/systemd/system/sssd-pam-priv.socket.
Created symlink /etc/systemd/system/sssd.service.wants/sssd-pam.socket → /lib/systemd/system/sssd-pam.socket.
Created symlink /etc/systemd/system/sssd.service.wants/sssd-ssh.socket → /lib/systemd/system/sssd-ssh.socket.
Created symlink /etc/systemd/system/sssd.service.wants/sssd-sudo.socket → /lib/systemd/system/sssd-sudo.socket.
Created symlink /etc/systemd/system/multi-user.target.wants/sssd.service → /lib/systemd/system/sssd.service.
sssd-autofs.service is a disabled or a static unit, not starting it.
sssd-nss.service is a disabled or a static unit, not starting it.
sssd-pam.service is a disabled or a static unit, not starting it.
sssd-ssh.service is a disabled or a static unit, not starting it.
sssd-sudo.service is a disabled or a static unit, not starting it.
Job for sssd.service failed because the control process exited with error code.
See "systemctl status sssd.service" and "journalctl -xe" for details.
A dependency job for sssd-nss.socket failed. See 'journalctl -xe' for details.
A dependency job for sssd-sudo.socket failed. See 'journalctl -xe' for details.
A dependency job for sssd-ssh.socket failed. See 'journalctl -xe' for details.
A dependency job for sssd-autofs.socket failed. See 'journalctl -xe' for details.
A dependency job for sssd-pam-priv.socket failed. See 'journalctl -xe' for details.
A dependency job for sssd-pam.socket failed. See 'journalctl -xe' for details.
Setting up sssd-proxy (2.2.3-3) ...
Setting up sssd-ad-common (2.2.3-3) ...
Created symlink /etc/systemd/system/sssd.service.wants/sssd-pac.socket → /lib/systemd/system/sssd-pac.socket.
sssd-pac.service is a disabled or a static unit, not starting it.
A dependency job for sssd-pac.socket failed. See 'journalctl -xe' for details.
Setting up sssd-krb5-common (2.2.3-3) ...
Setting up krb5-user (1.17-6ubuntu4) ...
Setting up samba-common-bin (2:4.11.6+dfsg-0ubuntu1.5) ...
Checking smb.conf with testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Server role: ROLE_STANDALONE

Обратите внимание на:

adduser: Warning: The home directory `/var/lib/sss' does not belong to the user you are currently creating.
После этой ошибки все сервисы «посыпались»( Кто сталкивался с подобным? Есть идеи?


Ты несколько раз создавал и удалял пользователя с этим именем, не всегда с одним и тем же id.

d ★★★★
()
Ответ на: комментарий от d

Я нашел причину проблемы, не создавалась домашняя папка пользователя, решение:

1) On RHEL based systems, user’s home directory will be created automatically. On Ubuntu/Debian, you need to enable this feature.

sudo bash -c "cat > /usr/share/pam-configs/mkhomedir" <<EOF
Name: activate mkhomedir
Default: yes
Priority: 900
Session-Type: Additional
Session:
        required                        pam_mkhomedir.so umask=0077 skel=/etc/skel
EOF

2) Then activate with:

sudo pam-auth-update

Ensure “activate mkhomedir” is selected, it should have |*|

3) Restart sssd service

sudo systemctl restart sssd & status sssd

dim4k
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.