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

  • Download
  • Add to my manuals
  • Print
  • Page
    / 300
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 259
248 You Are Here
Tip: Remember that le permissions are a security feature. Whenever you allow every-
onetoread,writetoandexecuteles, you may be increasing your risk of tampering. As
a rule, then, you should shy away from allowing everyone to read and write to a le.
In this case, however, lets say that we want to allow everyone to write to the le, so they can read it,
write notes in it and save it. That means well have to change the change the otherssection of the
le permissions.
Since were the owner of the le, we donthavetosu to root to do it. Lets take a look at the le rst.
At the shell prompt, type:
ls -l sneakers.txt
which gives us this le information:
-rw-rw-r-- 1 billy billy 150 Mar 19 08:08 sneakers.txt
Now, type the following:
chmod o+w sneakers.txt
To check our results, we can list the les details again. Now, the le looks like this:
-rw-rw-rw- 1 billy billy 150 Mar 19 08:08 sneakers.txt
Theres our result: Now, everyone can read and write to the le (Figure 16.18).
When we typed o+w,weweresaying,for others, add write permission to the le sneakers.txt.
If we want to remove all access permission from sneakers.txt (eventhoughitsonlyasketchy
shopping list), we could use the chmod command to take away both the read and write permissions
like so:
chmod go-rw sneakers.txt
and the result will look like this:
-rw------- 1 billy billy 150 Mar 19 08:08 sneakers.txt
Page view 259
1 2 ... 255 256 257 258 259 260 261 262 263 264 265 ... 299 300

Comments to this Manuals

No comments