linux user account isolation. remove /usr/bin permissions for specified user only

set default as no permissions for new files:

sudo setfacl -d -m u:untrusted:--- /usr/bin

remove all permissions from all files:

find /usr/bin/ -type f | while read f; do sudo setfacl -m u:untrusted:--- $f; done

whitelist what you need:

sudo setfacl -x u:untrusted /usr/bin/ls

Reply to this note

Please Login to reply.

Discussion

No replies yet.