...
/usr/bin/ls
| description |
---|
| - /usr/bin/ls is the program that performs the ls command
- root (the master admin account) is the owner, in the root group
- dash ( - ) in position one signifies this is a regular file
rwx for owner allows read, write and executer-x for group permits read and executer-x for everyone permits read and execute
|
ls -ldl -d ~/docs (-d says to list directory information, not directory contents)
...
Expand |
---|
|
ls -ld /stor/work/CBRS_unix/test shows the permissions of that directory are drwxr-x--- and it is owned by user abattenh in the CCBB_Workshops_1 group. Because group permissions are r-x anyone in our CCBB_Workshops_1 group can access that directory, but cannot add/delete files in it because there are no group write permissions. So ls -l /stor/work/CBRS_unix/test successfully lists the directory's contents, but touch /stor/work/CBRS_unix/test/newfile.txt reports a Permission denied error (touch, when successful, just creates a new empty file) |
What are the directory permissions and ownership of /stor/work/CBRS_unix/test/anna_only? Can you list its contents? Why or why not?
Expand |
---|
|
ls -l /stor/work/CBRS_unix/test -test (or - ls -ld /stor/work/CBRS_unix/test/anna_only) shows the permissions of the anna_only directory are drwx------ and it is owned by user abattenh in the CCBB_Workshops_1 group. Because group permissions are --- no one in our CCBB_Workshops_1 group can access that directory. So ls -l /stor/work/CBRS_unix/test/anna_only reports a Permission denied error. |
...