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@debian5:~$ xauth info
> Authority file:       /home/tbals/.Xauthority
> tbals@debian5:~$ sudo xauth info
> Authority file:       /home/tbals/.Xauthority
> tbals@debian5:~$ ls  /home/tbals/.Xauthority
> /home/tbals/.Xauthority
> 
> 
> Squeeze;
> 
> tbals@debian6:~$ xauth info
> Authority file:       /home/tbals/.Xauthority
> tbals@debian6:~$ sudo xauth info
> xauth:  creating new authority file /root/.Xauthority
> Authority file:       /root/.Xauthority
> tbals@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                                                 [email protected]
                 Professionell gesehen bin ich zu haben ....

Attachment: signature.asc
Description: Digital signature

--
Linux mailing list [email protected]
subscribe/unsubscribe: http://lug-owl.de/mailman/listinfo/linux
Hinweise zur Nutzung: http://www.lug-owl.de/Mailingliste/hints.epo

Antwort per Email an