[Pkg-shadow-devel] Bug#659878: quick workaround

Aleksandar Kostadinov akostadinov at gmail.com
Fri Dec 14 11:25:13 UTC 2012


FYI, somehow inconvenient if you have large number of users but this is a
workaround:

1. replace last two lines of sux executable bash script with:
TERM="$TERM export $sux_xauthority $sux_term DISPLAY='$DISPLAY'"
exec su $sux_su_opts

2. put this as first line of ~user/.bash_profile
[[ "$TERM" == *xauth* ]] && eval "$TERM"

Make sure to avoid sux-ing into non-modified users to not expose your
cookies in environment

Btw "su -" has X11 working by default on fedora 18, not sure how. not same
for regular users though.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20121214/c07969fa/attachment.html>


More information about the Pkg-shadow-devel mailing list