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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 300
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 264
16.13 Fun with Numbers in chmod 253
The total for the user is six, the total for the group is six and the total for others is four. The permis-
sions setting, then, is read as 664.
If we want to change sneakers.txt so those in our group didnt have write access, but could still
read the le (as shown in Figure 16.20), well have to remove the access by subtracting 2 from that set
of numbers.
The numerical values, then, would become six, four and four or 644.
So we can type:
chmod 644 sneakers.txt
Lets check our changes by listing the le (ls -l sneakers.txt):
-rw-r--r-- 1 billy billy 150 Mar 19 08:08 sneakers.txt
Figure 16.20: Removing group write permissions
And there it is; now, neither the group nor others have write permission to sneakers.txt.To
return the groups write access for the le, we can just add the value of w (2) to the second set of
permissions.
Przeglądanie stron 264
1 2 ... 260 261 262 263 264 265 266 267 268 269 270 ... 299 300

Komentarze do niniejszej Instrukcji

Brak uwag