В Fri, 23 Jan 2015 19:02:18 +0100 (CET)
Istvan Gabor
Hello:
I would like to help users by logging in through VNC session. Since the user doesn't have strong password I don't allow to log in the user through ssh. Instead I log in in my name and then su to that user and start the vncserver. Briefly:
ssh <user1> target.machine
user1@target> su user2 user2@target> vncserver :1
So far it's OK. When I try to connect to the vncserver I get only a blank window with an error message:
Call to lnusertemp failed (temporary directories full?). Check your installation.
VNC log file shows:
Error: cannot create directory "/run/user/1002": Permission denied startkde: Call to lnusertemp failed (temporary directories full?). Check your installation.
1002 is the UID of user2. I guess as I su-ed to user 2 from user1 login, the directory hasn't been created. How can I fix this one? If the given user is logged in locally this problem doesn't appear, but I need to use the VNC session even if the user is logged out.
/run/user/<uid> is intended to be temporary user directory with lifetime of "at least one user session exists". It is created by logind when first session is registered by pam_systemd. Now, plain "su" does not create user session, so it cannot work. "su -l" /may/ work. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org