How to Restrict User to Specific Directory on Linux – Google Cloud

How to Restrict a User to Specific Directory on Linux Google Cloud. It is necessary to limit user with specific privileges by restricting SSH or allow only to access specific directory. .

This guide provides a detailed guide to restrict users to access only a specific directories by modifying the SSH configuration file. This is also known as a chroot jail setup.

This guide is tested on Google Cloud Platform running Ubuntu 20.04 Linux machine. This setup will surely work on AWS Azure or any cloud or any VPS or dedicated servers running any Linux distributions.

Choose Best Hosting for your Business.

Create a new group to add all users inside this group.

Now you can create user or add the existing user to the new restriction group.

If you want to create a new user you ca follow this command.


Read Full Post

News Link:
RSS Link:

Linux Chatter is a news aggregator service that curates some of the best Linux, Cloud, Technical Guides, Hardware and Security news. We display just enough content from the original post to spark your interest. If you like the topic, then click on the 'read full post' button to visit the author's website. Use Linux Chatter to find content from amazing authors!

Note: The content provided has been modified and is not displayed as intended by the author. Any trademarks, copyrights and rights remain with the source.

Disclaimer: Linux Chatter sources content from RSS feeds and personal content submissions. The views and opinions expressed in these articles are those of the authors and do not necessarily reflect those of Linux Chatter.