As root create the directory:
mkdir /usr/local/foo
Allow everyone browsing the directory:
chmod ugo+rX /usr/local/foo
To allow to just the user write/execute:
chown -R <alloweduser>:root /usr/local/foo/*
chmod -R u+rxw,go-rwx /usr/local/foo/*
To allow to just the user+group write/execute:
chown -R <alloweduser>:<allowedgroup> /usr/local/foo/*
chmod -R ug+rxw,o-rwx /usr/local/foo/*
To achieve this you must chown/chmod each file in the foo directory. Permissions on a directory do not restrict execution.
jlinkels
|