Adding a single privileged applet for system upgrades to an unprivileged account on RPi OS
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Adding a single privileged applet for system upgrades to an unprivileged account on RPi OS
What is the file system name of the executable shown in the upper right of the Raspberry Pi's panel? See the attachment below.
When clicked on, it displays a menu with two items: "Show Updates" and "Install Updates". It asks for a password when "Install Updates" is chosen, but no action is taken because the account is unprivileged. I would like to allow that one account to only update the system but not grant full root access to everything, just that one program.
I've looked at the output of ps before and while having the applet active, but can't guess at it as even a diff shows nothing.
I hope it is possible to add just that one item to /etc/sudoers or, if absolutely necessary, in polkit so that the unprivileged account stays unprivileged except for that single applet. What should I look at?
The documentation of the applet or, failing that, its source code?
I have no idea what that applet is, but my guess would be that an entry in /etc/sudoers won't be sufficient. Some PAM/polkit magic more likely. I see 3 different polkit tutorials here
If you cannot find that out you will have to wait for somebody who uses Rpi OS and this exact applet.
I'd have thought somebody who's been using Linux(Questions) for 17 years would be able to come up with more info.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.