fxkl4...@protonmail.com wrote: > 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 use: su - user then run your X program, provided you change: /etc/pam.d/su-l and add session optional pam_xauth.so Some people might say that this is insecure. I don't think it is in a single user environment. (I posted this before but I am not sure it got through).