Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #195787
| From | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Running GParted and Synaptic without entering password |
| Date | 2018-05-16 09:50 +0200 |
| Message-ID | <vPZma-6Mu-17@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <vP5ah-6WM-3@gated-at.bofh.it> <vPgyK-5x8-5@gated-at.bofh.it> <vPB0t-Nb-1@gated-at.bofh.it> <vPIbD-54V-13@gated-at.bofh.it> <vPXkl-5BJ-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 05/16/2018 12:36 AM, John Crawley wrote: > On 2018-05-15 22:24, Richard Owlett wrote: >> On 05/15/2018 12:48 AM, John Crawley (johnraff) wrote: >>> >>> Policykit brings its own complications, but I think it should be >>> possible to create a .pkla file in /var/lib/polkit-1/localauthority >>> to allow a certain user, or group member, to perform an action >>> defined in /usr/share/polkit-1/actions/* without a password. You >>> could even add a new action if necessary. >> >> Through a chain of references I discovered >> /usr/share/polkit-1/actions/com.ubuntu.pkexec.gparted.policy >> >> The initial lines read: >>> <?xml version="1.0" encoding="UTF-8"?> >>> <!DOCTYPE policyconfig PUBLIC >>> "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" >>> "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"> >>> <policyconfig> >> >> However >> [http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd] >> gives a 404 File not found message. > > Indeed. Even so, that seems to be what is required in the xml. > >> Where would I find its syntax? > > I had a similar problem a while ago and found internet searches to be > somewhat helpful. My searches were not as good. Thank you. > This is not Debian, but on-topic: > https://wiki.archlinux.org/index.php/Polkit > And: > https://www.freedesktop.org/software/polkit/docs/0.105/pklocalauthority.8.html > > http://davidz25.blogspot.jp/2012/06/authorization-rules-in-polkit.html > https://github.com/systemd/systemd/issues/5523 I don't know if they answer ALL my questions. BUT they each specifically address one or more of my questions. They also suggest some likely fruitful search terms. > > It seems polkit want to shift from .pkla files to (javascript-like) > .rules files, but at the moment both might work on Debian, so use > whichever you feel less uncomfortable with. > > I used a .pkla file in /var/lib/polkit-1/localauthority/10-vendor.d/. If > you search for *.pkla files on your system, there might be some there, > or in /etc/polkit-1/localauthority/* to use as a template. > >> By a convoluted path I found: >> [https://www.freedesktop.org/software/polkit/docs/latest/polkit.8.html] >> >> Its last example strongly suggests I can do just what I want without >> messing up other users &/or apps. > > That's what I think too. Just as an untested guess, since the action is > already defined, something like this in > /etc/polkit-1/localauthority/50-local.d/gparted.pkla? > > [Allow specific user to use gparted] > Identity=unix-user:yourusername > Action=com.ubuntu.pkexec.gparted > ResultAny=no > ResultInactive=no > ResultActive=yes > > BTW To see the currently defined actions on your system, try this: > cat /usr/share/polkit-1/actions/* | grep -E > '(<action|<description>|<message>|<allow|</action>)'|sed > 's/<\/action>/\n/g;s/<\/[^>]*>//g' > But you can add one of your own too. >
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