How do I restrict users in Linux?

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:
  1. Change the user shell to restricted bash chsh -s /bin/rbash <username>
  2. Create a bin directory under the user home directory sudo mkdir /home/<username>/bin sudo chmod 755 /home/<username>/bin.
 

Tìm kiếm

Back
Top