F
F
Fireproof Cockroach2019-09-20 15:04:53
*nix-like systems
Fireproof Cockroach, 2019-09-20 15:04:53

How to give the right to run a specific application to a user?

Hey!
I want the user to be userable to restart the process nginx(i.e. do sudo service nginx reload | restart). It is impossible to issue other rights to him .
Putting it in sudo or installing SELinux doesn't work :)
(ubuntu)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Karasik, 2019-09-20
@uonick

Why don't you like sudo? It's just what it's designed for.
here is more in Russian https://white55.ru/sudo.html
For existing user groups in the system, you can also allow the execution of individual commands or groups of commands:
%users localhost=/sbin/shutdown -h now - allow local users to shut down the computer.
%operators ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom - allow members of the “operators” group to mount and unmount the specified devices.

P
paran0id, 2019-09-20
@paran0id

Why doesn't it fit?
You can put 750 on the nginx binary and add the user to the owner group, and run bypassing systemd. Or write acl to the binary. But in general, it seems to me that you want to do something wrong.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question