Monday, April 29, 2024
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 7731  / 3 Years ago, thu, august 12, 2021, 4:01:11

I'm administering a system and do not want people messing with their system settings (specifically the power settings).



I've searched everywhere and cannot find a method for disabling the power settings from system settings.



The gnome-system-tools package didn't contain any options for restricting access to system settings or power settings.



Using Raring Ringtail.


More From » system-settings

 Answers
4

Changing permissions to 700 for /usr/bin/gnome-control-center would help you restrict the normal users gain access.

However that goes out for all the settings, and users wont be able to set other settings like the display or keyboard.



Another good way is to define user group and change the ownership of gnome-control-center to those groups. and then add the permissible user to the group. the full description is here.



We have done is created groups with certain admin privileges and managed centrally using/etc/sudoers where in entries are whitelisted and provided on need basis.

For example:

Including the line :



$admin=ALL=(ALL) ALL `!/usr/bin/gnome-control-center`

[#30756] Thursday, August 12, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bunsistent

Total Points: 198
Total Questions: 108
Total Answers: 121

Location: Monaco
Member since Sun, Jan 16, 2022
2 Years ago
;