How can I prevent other sudoers to run apt-get install command? Other commands such as mount and others are OK with them.


You can't! If you wish to give root access to an user, nothing can stop him from do anything he want with the system. Root privileges means no restrictions. So, better, give to an user only the permissions he needs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.