Red Hat NETSCAPE MANAGEMENT SYSTEM 6.0 - CUSTOMIZATION Instrukcja Użytkownika Strona 264

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 300
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 263
252 You Are Here
chmod a-x tigger
to remove execute access to all.
Heres what happens now when we try to cd to into tigger:
[billy@localhost billy]$ cd tigger
bash: tigger: Permission denied
[billy@localhost billy]$
Lets restore ours and our groups access.
chmod ug+x tigger
Now, if we check our work with ls -dl well see that only others will be denied access to tigger.
16.13 Fun with Numbers in chmod
Remember when we made a reference to the shorthand method of chmod? Heresanotherwayto
change permissions; it may seem a little complex at rst - especially if math isnt your strong suit.
Lets go back to the original permissions for sneakers.txt.
-rw-rw-r-- 1 billy billy 150 Mar 19 08:08 sneakers.txt
Each permission setting can be represented by a numerical value:
r =4
w =2
x =1
- =0
When these values are added together, the total is used to set specic permissions - more specic
than changing permissions with the alphabetical shorthand.
In sneakers.txt, then, here are the numerical permissions settings:
- (-rw) (-rw) (r--)
|||
0+4+2 0+4+2 4+0+0
Przeglądanie stron 263
1 2 ... 259 260 261 262 263 264 265 266 267 268 269 ... 299 300

Komentarze do niniejszej Instrukcji

Brak uwag