Nguyễn Nguyệt Ánh
New member
How do I restrict users in Linux?
Answer
However if you only want to allow the user to run several commands, here is a better solution:
Answer
However if you only want to allow the user to run several commands, here is a better solution:
- Change the user shell to restricted bash chsh -s /bin/rbash <username>
- Create a bin directory under the user home directory sudo mkdir /home/<username>/bin sudo chmod 755 /home/<username>/bin.