I want to constrain the user to only have permissions for specific commands in Centos but he need to access root directory.
I want to prevent user from removing, restart, shut down
But he should be able to read, kill processes, run processes, show running processes, create files and directory, view it ..
I tried to use restricted users with rbash, but he unable to use cd command and he has access to /home/username only!
$ cd
-rbash: cd: restricted
is there any solution?