[GRLUG] root on Fedora 15
Adam Tauno Williams
awilliam at whitemice.org
Thu Sep 22 15:55:48 EDT 2011
Quoting Eric Beversluis <ebever at researchintegration.org>:
> Well after all my trials with getting my new Lenovo x120e running I've
> ended up with Fedora 15, which seems to be working nicely.
> One problem tho: I'm used to opening gedit from the command line root
> prompt so I can edit root-permission files (don't use vi often enough to
> remember the commands). But Fedora 15 won't let me do that.
> "
> [root at localhost eric]# gedit
> (gedit:20435): EggSMClient-WARNING **: Failed to connect to the session
> manager: None of the authentication protocols specified are supported
> g_dbus_connection_real_closed: Remote peer vanished with error:
> Underlying GIOStream returned 0 bytes on an async read
> (g-io-error-quark, 0). Exiting.
> Terminated
> "
Yep, just "su -" to root rather than "su"; I do this all the time.
GEDIT RULEZ!
awilliam at beast:~> su -
Password:
beast:~ # gedit /etc/passwd
The "-" gives you a login shell, which basically means you initialize
a new environment. Your old one won't work as your security context
has changed.
awilliam at linux-yu4c:~> su
Password:
linux-yu4c:/home/awilliam # env | wc -l
89
linux-yu4c:/home/awilliam # exit
awilliam at linux-yu4c:~> su -
Password:
linux-yu4c:~ # env | wc -l
64
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the grlug
mailing list