Re: FC4 "sudo su -" breaks root's access to X server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael A. Peters wrote:
On Sat, 2005-06-25 at 23:15 -0500, Jonathan Berry wrote:

Hi all,

I've noticed that with FC4 if I use "sudo su -" to get a root shell
and try to open an X application (like a GUI text editor, for
instance) I get the error:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


I saw this mentioned elsewhere in context of pam_console and it seems to
be a bug - but really, it is a BAD idea to allow sudo to do anything
that can result in a root shell. Really bad idea. I know that is the
default on OS X - but OS X has a lot of bad defaults (which why everyone
except me has to fix permissions so often - I never log into OS X as an
admin and thus permissions never get screwed up)

This is why, of course, Red Hat doesn't allow root to log in anywhere:-)


If you want a root shell (and there are good reasons to have one), sudo -s does it. No need for su.

cd /var/log/squid
bash: cd: /var/log/squid: Permission denied


--

Cheers
John

-- spambait
1aaaaaaa@xxxxxxxxxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxxxxxxxxx
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux