Quote:
Originally Posted by
firefox111
is there a way to disable bash shell only for specific users?
It is the other way round: ENable specific users for the shell:
- create a group "bashusers"
- remove read/write/execute-bit from $(which bash) for world, set execute- and read-bit for group
- give group ownership of $(which bash) to group "bashusers"
- put everybody allowed to use bash into this group
This way you have disabled the usage of bash for all users not member of "bashusers". Of course you can't effectively disable it for user "root".
I hope this helps.
bakunin