D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Debian 7 and sudo

 

Chris' suggestion should definitely solve the original problem, but I wanted to chime in to add a little info for all the people saying that 'su' was the command he was looking for. In this case, it really isn't. Calling su without any parameters switches the user to root (su = Switch User). That's why you provide root's password when using it.

It should go without saying, but if you're not used to using it, I'll mention that it also means that you'll still be logged in as root after running whatever command you were trying to run. This is as opposed to sudo which is a program used to elevate a normal users permissions for the duration of its execution.


On 14 June 2013 09:18, Chris Tipney <chris@xxxxxxxxxx> wrote:
Neil,

I am far from being an expert but...


On 14/06/2013 09:04, Neil Winchurst wrote:
I thought I would have a look at Debian so I have installed v 7 Xfce in VBox. Since I normally use Ubuntu based distros I expected the installation to be similar. However I was asked to provide a root password and separately to set up a 'normal' user. Strange.

Anyway, I have been looking at it and I am well impressed so far. But, there is always a but, I cannot work out how to run a gui program as root. Normally for example, to run gedit as root I would enter gksudo gedit. I would be asked for the password and away we go.

Gksudo is not recognised in Debian. Also, in a terminal, I can't seem to use sudo.
You need to add yourself to the sudo group so this is what I do:

Open the root terminal, then command

'adduser neil sudo'

close root terminal

The user neil then needs to log out and in again

now you can enter commands such as 'sudo gedit' , the sudo command will ask for the root password of course

Hope that helps,

Chris


Any experts out there please, who can set me on the right track?

Thanks

Neil




--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq