Answer the question
In order to leave comments, you need to log in
Is it possible in Linux to prevent ordinary users from executing commands?
Is it possible in Linux to prevent ordinary users from executing commands?
An ordinary user can execute commands: cp, rm and others like that.
Is there any way to ban them?
Answer the question
In order to leave comments, you need to log in
He will still have the ability to delete or copy through any other program, except for the shell, which you forbid.
You can prevent the user from deleting files or creating new ones (see chmod)
What problem are you trying to solve in this way?
The most reliable way is to drive the user into a chroot, and limit him to limits. But even here you will have to try hard, as there is, for example, stream redirection.
Write your own, for example with your own bledge ... commands and the necessary rights))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question