[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to use sudo not root



On Thu, Jun 15, 2006 at 09:43:43 -0600, Joseph Smidt wrote:
>When I installed Debian I selected to not allow root login thinking
>that would enable sudo and disable root.  But when I logged into gnome
>it kept asking for the root password to do admin things, so I set a
>root password and it works.
>However, I would like to disable root and have it so my sudo password
>works for all the gnome admin things, like opening synaptic.  How do I
>do that?  Thanks.

You have to edit the .desktop file for synaptic
(/usr/share/applications/synaptic.desktop). change the line

 Exec=gksu -u root /usr/sbin/synaptic

to

 Exec=gksudo -u root /usr/sbin/synaptic

and you should be set.

Not though that any upgrade to synaptic is likely to change it back.

/M

-- 
Magnus Therning                             (OpenPGP: 0xAB4DFBA4)
magnus@therning.org             Jabber: magnus.therning@gmail.com
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

Beauty is more important in computing than anywhere else in technology
because software is so complicated. Beauty is the ultimate defence
against complexity.
     -- David Gelernter

Attachment: pgpuukvoppq9S.pgp
Description: PGP signature


Reply to: