How can I make a command in Ubuntu usable only with sudo?

0

0

I need to make a command in Ubuntu (in this case gsettings, but whatever) runnable only with sudo permissions (so essentially I need to run the command with 'sudo gsettings' and I need to type the password). Any help?

Torres98

Posted 2019-05-30T13:31:01.767

Reputation: 1

3Have you tried to change the owner of the file to root and change it’s rights to 700 (or whatever for group and other without execute rights)? – Xvolks – 2019-05-30T13:35:01.520

gsettings is not supposed to be run with sudo. It modifies your user's configuration, which should be owned by your user, or you might see start seeing other things randomly fail. – muru – 2019-05-31T07:24:56.287

No answers