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

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

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



-- spambait
1aaaaaaa computerdatasafe com au  Z1aaaaaaa computerdatasafe com au
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/

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