To set the sticky bit for folder, why chmod 1777 and chmod 3777 both can set the sticky bit for a folder?
Is there an ideal chmod for /tmp (with /var/tmp symlinked to /tmp)?
I've seen people mention it both ways just curious as to the difference.
Is it a security difference?
To enforce the following permissions on files in /var/www, can I use the commands chmod u+s and chmod g+s? Do I just run it on the /var/www directory (once the permissions are properly set)?
chown -R root:web /var/www
chmod -R g+rw /var/www