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

Re: Running GParted and Synaptic without entering password




On Sun, 13 May 2018, Richard Owlett wrote:

> On 05/13/2018 09:26 AM, bw wrote:
> > 
> > 
> > On Sun, 13 May 2018, Richard Owlett wrote:
> > 
> > > <snip>
> > > The result I wish to achieve is to click on the icon for either GParted or
> > > Synaptic *WITHOUT* being asked for a password (either root's or user's).
> > > 
> > > I've found vague hints that adding a line to my local /etc/sudoers file
> > > such as
> > >    richard     ALL = /usr/sbin/gparted , /usr/sbin/synaptic
> > > would accomplish my goal.
> > > Is that correct?
> > > <snip>
> > 
> > I think that might work if clicking each icon actually runs those
> > commands from each .desktop file.
> 
> I believe it does:
>   1. if logged in as root, entering "/use/sbin/gparted" runs.
>   2. if *NOT* logged in as root, entering "/usr/sbin/gparted" asks for
> password.
> 

Yeah, but I thought you wanted to click an icon?  What command does that 
execute?  There may already be a group setup to do it, like admin, so 
check the pk stuff out. 


Reply to: