x11-forward und sudo
Florian Lohoff
f at zz.de
Fri Feb 18 15:17:01 CET 2011
On Thu, Feb 17, 2011 at 11:25:19AM +0100, Thomas Baeumer wrote:
> Bei mir laeuft kein gdm und ich komme per ssh, aber:
>
> Lenny:
>
> tbals at debian5:~$ xauth info
> Authority file: /home/tbals/.Xauthority
> tbals at debian5:~$ sudo xauth info
> Authority file: /home/tbals/.Xauthority
> tbals at debian5:~$ ls /home/tbals/.Xauthority
> /home/tbals/.Xauthority
>
>
> Squeeze;
>
> tbals at debian6:~$ xauth info
> Authority file: /home/tbals/.Xauthority
> tbals at debian6:~$ sudo xauth info
> xauth: creating new authority file /root/.Xauthority
> Authority file: /root/.Xauthority
> tbals at debian6:~$ ls /root/.Xauthority
> ls: cannot access /root/.Xauthority: No such file or directory
>
> Schon komisch.... zum einen scheint sudo da nix zu vererben und zum
> anderen wird /root/.Xauthority nicht angelegt. Warum auch immer.
Guck mal in deine /etc/sudoers:
Defaults env_reset
env_reset If set, sudo will reset the environment to only contain
the LOGNAME, MAIL, SHELL, USER, USERNAME and the SUDO_*
variables. Any variables in the caller's environment
that match the env_keep and env_check lists are then
added. The default contents of the env_keep and
env_check lists are displayed when sudo is run by root
with the -V option. If the secure_path option is set,
its value will be used for the PATH environment
variable. This flag is on by default.
Flo
--
Florian Lohoff f at zz.de
Professionell gesehen bin ich zu haben ....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lug-owl.de/pipermail/linux/attachments/20110218/c2c0a3df/attachment.sig>
More information about the Linux
mailing list