Description of problem:
When an user logs in a run time directory should be created for it in /run/user.
Similar sudo bug 961510.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
[root@fed1 ~]# su - pkis
[pkis@fed1 ~]$ ls /run/user/
[pkis@fed1 ~]$ exit
[root@fed1 ~]# su pkis
Last login: Tue May 21 10:33:29 CEST 2013 on pts/0
[pkis@fed1 root]$ ls /run/user/
[pkis@fed1 root]$ exit
[root@fed1 ~]# su -c "ls /run/user/" pkis
Last login: Tue May 21 10:33:40 CEST 2013 on pts/0
[root@fed1 ~]# su -c "ls /run/user/" - pkis
Last login: Tue May 21 10:38:19 CEST 2013 on pts/0
No directory is created for user in /run/user
A directory is created.
I don't see a reason why programs like su(1) or sudo(1) should create any random files... If we really want this functionality then it has to be implemented on one place and controlled by some config file -- for example by PAM module, or by logind, etc.
I'm sorry but this is really duplicate of bug 753882 which was closed by Lennart.
*** This bug has been marked as a duplicate of bug 753882 ***