Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In Linux, how can I prevent users from executing chown, chgrp or chmod?

share|improve this question

2 Answers 2

chown: Already requires root.

chgrp: Users can only change into groups they themselves belong to.

chmod: Probably impossible to restrict - unless you also block all programming language compilers/interpreters and disable any remote filesystem access (including SFTP).

(It might be possible to block the chmod() syscall with something like AppArmor (if it can block syscalls at all), but it would break a whole lot of programs.)

share|improve this answer

try using Iron Bars Shell

"Iron Bars Shell (ibsh) is a free, open-source restricted system shell for Linux and Unix. It is small, secure, and is based on a whole new perspective: DENY EVERYTHING!! If something is needed, allow it."

it basicly denies everything, and then you allow users to use what you want

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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