Best Answer: How Do I Restrict Users to My Home Directory in Linux?
Contents How Do I Change Permissions on a Linux Home Directory? to Change Directory Permissions in Linux, Use the Following: Chmod +Rwx Filename to Add...
Contents
How do I change permissions on a Linux home directory?
To change directory permissions in Linux, use the following:
- chmod +rwx filename to add permissions.
- chmod -rwx directoryname to remove permissions.
- chmod +x filename to allow executable permissions.
- chmod -wx filename to take out write and executable permissions.
Must Read
How do I restrict SFTP users home directory in Linux?
The simplest way to do this, is to create a chrooted jail environment for SFTP access. This method is same for all Unix/Linux operating systems. Using chrooted environment, we can restrict users either to their home directory or to a specific directory.