Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #195720
| From | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Running GParted and Synaptic without entering password |
| Date | 2018-05-14 15:40 +0200 |
| Message-ID | <vPlRL-gH-9@gated-at.bofh.it> (permalink) |
| References | <vOZof-3u8-19@gated-at.bofh.it> <vP0aC-3Zf-13@gated-at.bofh.it> <vP5jY-707-13@gated-at.bofh.it> <vPfW1-5kI-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 05/14/2018 02:13 AM, tomas@tuxteam.de wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Sun, May 13, 2018 at 02:51:49PM -0500, 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. > > Yes, perhaps that's what sudo is for then (you'd have to run > "sudo /usr/sbin/gparted" instead: make it more convenient by > some wrapper [1]). > > Of course the recommendation is still "don't do it", but the > good thing is: it's just that, a recommendation. FWIW, I went > through that phase and am back now to my "custom commands" > asking for a password when doing something sudo-ish. It's a > kind of "are you awake there, at the controls?" That's what I want on all but one of my installs. > which I've come to appreciate. But to each her own and all that :-) > > Cheers > > [1] There are many solutions to that: I have a /home/tomas/bin > which I add to my PATH where I put all those little scripts > which are too small or too unstable to go to /usr/local/bin. > If I need a sudo in there, I just code it in. In my default > setting, I then get asked for a password. By relaxing sudoers > (e.g. with NOPASSWD: or !authenticate) you can fine tune that > to skip the authentication at a very fine-grained level (by > command, by user or by host (on which the command is running)). That sounds promising. What should I be reading? > > - -- tomas >
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Running GParted and Synaptic without entering password Richard Owlett <rowlett@cloud85.net> - 2018-05-13 15:40 +0200
Re: Running GParted and Synaptic without entering password "tv.debian@googlemail.com" <tv.debian@googlemail.com> - 2018-05-13 16:20 +0200
Re: Running GParted and Synaptic without entering password Richard Owlett <rowlett@cloud85.net> - 2018-05-13 21:50 +0200
Re: Running GParted and Synaptic without entering password Joe <joe@jretrading.com> - 2018-05-14 10:00 +0200
Re: Running GParted and Synaptic without entering password <tomas@tuxteam.de> - 2018-05-14 10:50 +0200
Re: Running GParted and Synaptic without entering password Richard Owlett <rowlett@cloud85.net> - 2018-05-14 15:10 +0200
Re: Running GParted and Synaptic without entering password David Wright <deblis@lionunicorn.co.uk> - 2018-05-15 02:50 +0200
Re: Running GParted and Synaptic without entering password Richard Owlett <rowlett@cloud85.net> - 2018-05-15 13:30 +0200
Re: Running GParted and Synaptic without entering password Curt <curty@free.fr> - 2018-05-15 14:50 +0200
Re: Running GParted and Synaptic without entering password Richard Owlett <rowlett@cloud85.net> - 2018-05-15 16:10 +0200
Re: Running GParted and Synaptic without entering password David Wright <deblis@lionunicorn.co.uk> - 2018-05-15 19:00 +0200
Re: Running GParted and Synaptic without entering password Glenn English <ghe2001@gmail.com> - 2018-05-15 20:30 +0200
Re: Running GParted and Synaptic without entering password Joe <joe@jretrading.com> - 2018-05-16 11:30 +0200
Re: Running GParted and Synaptic without entering password "John Crawley (johnraff)" <john@bunsenlabs.org> - 2018-05-15 07:50 +0200
Re: Running GParted and Synaptic without entering password Richard Owlett <rowlett@cloud85.net> - 2018-05-15 15:30 +0200
Re: Running GParted and Synaptic without entering password John Crawley <john@bunsenlabs.org> - 2018-05-16 07:40 +0200
Re: Running GParted and Synaptic without entering password Richard Owlett <rowlett@cloud85.net> - 2018-05-16 09:50 +0200
Re: Running GParted and Synaptic without entering password <tomas@tuxteam.de> - 2018-05-13 16:20 +0200
Re: Running GParted and Synaptic without entering password Richard Owlett <rowlett@cloud85.net> - 2018-05-13 21:50 +0200
Re: Running GParted and Synaptic without entering password David Wright <deblis@lionunicorn.co.uk> - 2018-05-14 03:30 +0200
Re: Running GParted and Synaptic without entering password Richard Hector <richard@walnut.gen.nz> - 2018-05-14 08:00 +0200
Re: Running GParted and Synaptic without entering password <tomas@tuxteam.de> - 2018-05-14 09:00 +0200
Re: Running GParted and Synaptic without entering password bw <bwtnguy@yahoo.com> - 2018-05-13 16:30 +0200
Re: Running GParted and Synaptic without entering password Richard Owlett <rowlett@cloud85.net> - 2018-05-13 22:00 +0200
Re: Running GParted and Synaptic without entering password bw <bwtnguy@yahoo.com> - 2018-05-13 22:20 +0200
Re: Running GParted and Synaptic without entering password <tomas@tuxteam.de> - 2018-05-14 09:20 +0200
Re: Running GParted and Synaptic without entering password Richard Owlett <rowlett@cloud85.net> - 2018-05-14 15:40 +0200
Re: Running GParted and Synaptic without entering password Brian <ad44@cityscape.co.uk> - 2018-05-14 01:10 +0200
csiph-web