Re: Root privilege (SOLVED)
cga2000 wrote:
> On Sun, Jan 07, 2007 at 09:22:38PM EST, Roberto C. Sanchez wrote:
>> On Mon, Jan 08, 2007 at 03:19:56AM +0100, Danesh Daroui wrote:
>> > Actually I had tried it before and I couldn't. It is cool since Debian
>> > increases security like this, but I modified login settings in login
>> > page to allow "root" to login and now it works.
>> >
>> I will reiterate the sentiments that some others have expressed. This
>> is a very bad idea. There is nothing that absolutely requires that you
>> login as root. Between su and sudo, you are able to do anything
>> requiring elevated privileges.
>
> Quick hack from a bash prompt:
>
> $ /bin/su - /* switch to root */
>
> # export DISPLAY=:0.0 /* let root access */
> # export XAUTHORITY=~yourid/.Xauthority /* .. your display */
>
> # guiapp & /* start application */
If you want to do all this in a single command, and you have sudo installed,
try this:
sudo guiapp &
You might have to fg it if it pops a password prompt, then Ctrl-Z and bg 1
to background it again.
Reply to: