need help: restrict users to use only a few commands

L

liadsh

Guest
I need to allow one user to run all the commands and to the other one allow only a few.. lets say 'cd','ls',and 'cat'.
How do i do this? I know there's a way with the sudoers file, but i dont think that's what i need
Any help would be great!
 


thanks for the reply,
but actually this is not helping too much since in my environment i don't have access to the internet (no yum or apt-get can be executed).
i need to achieve these results internally.

i googled and found something about changing the content of "/home/some_user/.bashrc" or "/home/some_user/.bash_profile".
maybe someone knows how to set this up?
 

Members online


Top