Shell confusion

Mikkel L. Ellertson mikkel at infinity-ltd.com
Fri Mar 13 22:06:28 UTC 2009


Matthew Flaschen wrote:
> 
> You should not run GUI apps under a root shell.  Do:
> 
> sudo gedit
> 
What is the difference between running "su - -c gedit" and "sudo
gedit" - they both run gedit as with root permissions. The only
difference I know about is that the first form runs with root's
environment. (Like the -i option of sudo.) I would expect this to be
 marginally safer, as you know you are using root's path.

> or better yet:
> 
> sudoedit /etc/the_config.ext
> 
This is much safer, and you can still use gedit as your editor if
you want by setting the VISUAL or EDITOR environment variables.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090313/60c23d9e/attachment-0001.sig>


More information about the fedora-list mailing list