How To Limit User’s Access To The Linux System

Limit User's Access To The Linux System

3 Responses

  1. Layne Bernardo says:

    This is a very helpful article, and presents a much simpler way of providing the exact functionality I need than a chroot jail. Thanks!

  2. sahil says:

    I would like to allow user to use cd command
    how?

    • sk says:

      It will not allow you to execute “cd” command. So you can’t go anywhere. You can simply stay in the current working directory. If you allow the “cd” command, what is the point of using Restricted Shell? The user can go anywhere and do whatever he wants. There won’t be any restriction.

      Anyway, try the following and let me know if it works.

      Run the following command to allow “cd” command:

      # ln -s /bin/cd /home/ostechnix/bin/cd

      Make sure you have created the “/home/ostechnix/bin” directory. Now, the user can able to use “cd” command.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.