[Samba] pam_systemd(samba:session): Failed to create session: No such file or directory

Rowland penny rpenny at samba.org
Tue Jun 23 10:49:37 UTC 2020


On 23/06/2020 11:32, Alex via samba wrote:
> Hello,
>
> There's a file server running CentOS 7 with packaged Samba:
> # rpm -qi samba
> Name        : samba
> Epoch       : 0
> Version     : 4.10.4
> Release     : 11.el7_8
> Architecture: x86_64
> ...
> Source RPM  : samba-4.10.4-11.el7_8.src.rpm
> Build Date  : Tue 12 May 2020 04:31:13 PM UTC
> ...
> Packager    : CentOS BuildSystem <http://bugs.centos.org>
>
> When a user opens a file share, there's an error coming up in the syslog (however,
> it doesn't affect user's ability to open the share):
> Jun 23 10:14:37 filer-1 smbd[4572]: pam_systemd(samba:session): pam-systemd initializing
> Jun 23 10:14:37 filer-1 smbd[4572]: pam_systemd(samba:session): Asking logind to create session: uid=16777217 pid=4572 service=samba type=tty class=user desktop= seat= vtnr=0 tty=smb/257860650 display= remote=yes remote_user= remote_host=172.26.10.1
> Jun 23 10:14:37 filer-1 smbd[3944]: pam_systemd(samba:session): Failed to create session: No such file or directory
> Jun 23 10:14:37 filer-1 smbd[3944]: pam_unix(samba:session): session opened for user DOMAIN\user by (uid=0)
> Jun 23 10:14:47 filer-1 smbd[3944]: pam_unix(samba:session): session closed for user DOMAIN\user
>
Are you using sssd ?

If so, then I would advise you to stop using sssd and use winbind 
instead. Sorry, but you cannot use sssd with Samba >= 4.8.0 and shares.

Rowland





More information about the samba mailing list