Re: switch users and still use display
fxkl47BF@protonmail.com writes:
> i log in to x session as user1 on host1
> from within a xterm i want to change to user2 on host1 and run x programs
> the current way i do this is ssh user2@host1
> does using ssh on the same host use encryption
> is there another way to do this
> i feel like this has been hashed over here previously
> i just can't find the answer
You can do it using su, after you have made the following changes:
diff /etc/pam.d/su-l~ /etc/pam.d/su-l
6a7
> session optional pam_xauth.so
I.e. add that session line to the end of the file.
Some people might claim that this is insecure. I don't think it is in a
single user environment.
Reply to: