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.
News Link: https://www.cloudbooklet.com/how-to-restrict-user-to-specific-directory-on-linux-google-cloud/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-restrict-user-to-specific-directory-on-linux-google-cloud.
RSS Link: https://www.cloudbooklet.com/feed/.