13

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.

Seth
  • 59,332
Søren
  • 144

2 Answers2

10

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.

Eliah Kagan
  • 119,640
olivm
  • 124
-1
  • Download sux from here http://fgouget.free.fr/index-en.shtml
  • Copy sux to directory in your path (/usr/local/bin for example)
  • Change permissions to executable (chmod 755 sux), i don't know if these permissions are the ritgh ones
  • Replace /bin/sh for /bin/bash

Mi system is debian 10

Regards