0
I need to create an user in a Linux system with permissions to install programs but without permissions to access the directories of other users.
I've tried to do this:
# Create restricted user user
adduser --home /home/restricted_user restricted_user
# Edit normal user dir permissions
chmod -R 700 /home/normal_user/
# Add restricted user to sudoers in order to allow program installation
sudo adduser restricted_user sudo
Then, I tried:
su restricted_user
sudo ls /home/normal_user
And finally the restricted user has access to the normal user's directory if he does it with sudo
How can I implement this restrictions?