Slow "su - user" under X11 (pam, xauth)

Rafał Cygnarowski rafilists at gmail.com
Mon Feb 23 17:36:41 CET 2009


Dnia niedziela 22 luty 2009, Radoslaw Zielinski napisał:
> The problem: "su - user" under X is slow.
>
>
> The background: I've added an user, now I'm trying to "sudo su - ..." to
> it.  I'm doing this from an X session, so pam has decided to use
> pam_xauth.so:
>
>   $ sudo grep xauth /etc/pam.d/su
>   session   optional  pam_xauth.so
>
> pam_xauth calls xauth (as the destination user):
>
>   /usr/bin/xauth -f /home/users/radek/.Xauthority nlist :0.0

My workaround for this is following script for su -l (I call it sul):

#!/bin/sh

XAUTHORITY=/home/users/$1/.Xauthority su -l $1

Regards,
-- 
Rafał Cygnarowski
rafilists [at] gmail [dot] com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : /mailman/pipermail/pld-devel-en/attachments/20090223/633f4c4b/attachment.sig 


More information about the pld-devel-en mailing list