On Tue, Jun 1, 2010 at 12:39 PM, Hadley Rich <h...@nice.net.nz> wrote: > On Tue, 2010-06-01 at 12:23 +1200, Derek Smithies wrote: >> Even more useful is >> sudo sux >> >> which gives root the ability to open gui tools. > > Be careful with using sudo in this mannor. You run the risk of creating > problems for yourself. The same goes for running graphical programs with > sudo like so; > > `sudo gedit` > > If you need to run a graphical program then you should run it with gksu > like so; > > `gksu gedit` > > The reason for this is that sudo (unless invoked with the -i switch) > will run as the user root but with the users environment. > > This may (or may not) cause files in your home directory to be created > or overwritten owned by root. This in turn may effect the ability to run > the program as your normal user in the future.
I had a similar problem with ~/.bash_history being owned by root. Probably for that reason.