Red Hat NETSCAPE MANAGEMENT SYSTEM 6.0 - CUSTOMIZATION User Manual Page 259

  • Download
  • Add to my manuals
  • Print
  • Page
    / 300
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 258
16.12 Ownership and Permissions 247
Beyond the rst item, in the following three sets, well see one of the following:
r –file can be read
w –file can be written to
x –file can be executed (if itsaprogram)
When we see a dash in owner, group or others, it means that particular permission hasnt been
granted.
Lets look again at rst column of sneakers.txt and identify its permissions. (See Figure 16.17)
[billy@localhost billy]$ ls -l sneakers.txt
-rw-rw-r-- 1 billy billy 150 Mar 19 08:08 sneakers.txt
[billy@localhost billy]$
Figure 16.17: A closer view of permissions
The lesowner,billy, has permission to read and write to the le; its not a program, so billy
doesnt have permission to execute it. The group, billy, has permission to read and write to sneak-
ers.txt, as well. Similar to the program notation for owner billy,theres no execute permission
for group billy.
In the last set, we can see that those who arent either the user billy or in the group called billy
can read the le, but cant write to it or execute it.
We can use the chmod command to change a les permissions.
Lets work a bit more on sneakers.txt to change the permissions with the chmod command.
The original le looks like this, with its initial permissions settings:
-rw-rw-r-- 1 billy billy 150 Mar 19 08:08 sneakers.txt
As long as were the owner of the le or were logged into the root account we can change
permissions in any combination of settings for the owner, group and others.
Right now, the owner (thatsus)andourgroup(whichisbilly) can read and write to the le.
Anyone outside of our group for example, anyone in the adm group - can only read the le (r- -).
Page view 258
1 2 ... 254 255 256 257 258 259 260 261 262 263 264 ... 299 300

Comments to this Manuals

No comments