Web Server Administration: File Permissions
File Permissions
bigmoose (25) ls -lgtotal 4-rwxr-xr-x 1 ericl nomad 40 Aug 23 16:21 config.sh-rw-rw-r-- 1 ericl nomad 16 Aug 23 16:20 doc1.txt-rw------- 1 ericl nomad 22 Aug 23 16:20 doc2.txt-rw-r--r-- 1 ericl nomad 26 Aug 23 16:20 doc3.txt
Use ls -lg to show permissions:
config.sh is readable and executable by anyone
doc1.txt is rw for ericl and group nomad and r for everyone else
doc2.txt is rw only for ericl
doc3.txt is rw for ericl and r for everyone else