[Bug 1318168] [NEW] su: Failed to create session: No such file or directory
Launchpad Bug Tracker
1318168 at bugs.launchpad.net
Wed Oct 19 06:09:13 UTC 2016
You have been subscribed to a public bug:
I am using the command "su" quite often without any problems. The
following "su" is just a senseless example, but it will demonstrate the
problem quite well. In this example I want to make an echo as sshd user
(could be any other user like www-data, rabbitmq, or others as well):
su sshd -s /bin/sh -c echo
Doing this worked find, but beginning with Ubuntu 14.04, I get strange
log entries in /var/log/auth.log like:
May 10 14:21:18 abel su[22315]: Successful su for sshd by root
May 10 14:21:18 abel su[22315]: + /dev/pts/2 root:sshd
May 10 14:21:18 abel su[22315]: pam_unix(su:session): session opened for user sshd by root(uid=0)
May 10 14:21:18 abel su[22315]: pam_systemd(su:session): Failed to create session: No such file or directory
May 10 14:21:18 abel su[22315]: pam_unix(su:session): session closed for user sshd
Especially the 4th line with "Failed to create session: No such file or
directory" didn't appear on earlier system. With Ubuntu 13.10 it looked
like this:
May 10 14:22:30 davy su[18202]: Successful su for sshd by root
May 10 14:22:30 davy su[18202]: + /dev/pts/1 root:sshd
May 10 14:22:30 davy su[18202]: pam_unix(su:session): session opened for user sshd by root(uid=0)
May 10 14:22:30 davy su[18202]: pam_unix(su:session): session closed for user sshd
the /etc/passwd for user sshd is the same on 13.10 and 14.04:
sshd:x:103:65534::/var/run/sshd:/usr/sbin/nologin
Changing shell to /bin/false or /bin/sh or alike doesn't help. The
problem is, that certain monitoring or security systems don't this entry
and are complaining all the time.
** Affects: systemd (Ubuntu)
Importance: Undecided
Status: Confirmed
--
su: Failed to create session: No such file or directory
https://bugs.launchpad.net/bugs/1318168
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to systemd in Ubuntu.
More information about the foundations-bugs
mailing list