Create user with restricted access to own directory
Create a new user with it’s home directory set to the one you need him to have access to (this command must be run under sudo or in root shell): adduser –home /restricted/directory restricted_user This will create an user restricted_user, the directory /restricted/directory and then…