Monday, April 29, 2024
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 9155  / 12 Months ago, tue, may 30, 2023, 3:56:09

With the coming 14.04 release sux (wrapper around su which will transfer your X credentials) is no longer included in Ubuntu.
(I think it is being removed because it is being pulled from Debian, because of no maintenance of the original code.)



I'm looking for simple alternatives, not something that requires you to mess around with config-files or run sshd locally.


More From » software-recommendation

 Answers
6

I've been very sad too to see that there were no easy alternative to sux at first, but ended with this:




  1. In /etc/pam.d/su, to forward xauth keys between users when calling su, add:



    session  optional  pam_xauth.so

  2. In ~olivier/.bashrc:



    export $(dbus-launch)


    (Not sure it is actually needed.)


  3. And then a simple su olivier from my logged-in user.



[#26733] Wednesday, May 31, 2023, 12 Months  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
panshow

Total Points: 454
Total Questions: 98
Total Answers: 122

Location: Philippines
Member since Sat, Jul 11, 2020
4 Years ago
;