Andrei Borzenkov írta:
В 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.
Thanks Andrei. Unfortunately su -l doesn't make a logion session in this context, doesn't work. If I remember correctly in previous openSUSE versions (11.x 12.2) I could use the above described method to log in and use the VNC session as a su-ed user. In openSUSE 13.2 the behavior is different. Other method to try? (This can be a show-stopper for oS13.2). Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org