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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 300
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 256
16.12 Ownership and Permissions 245
That was one demonstration of Linuxs security features. Linux, like UNIX, is a multi-user system,
and le permissions are one way the system uses to protect against any type of tampering malicious
or accidental.
One way to gain entry when we see were denied permission is to su to root, as we learned earlier.
Thats because whoever knows the root password has complete access.
[billy@localhost billy]$ su root
Password: (your root password)
[root@localhost billy]# cd /root
[root@localhost /root]#
But switching to superuser isntalwaysconvenient or smart, since its so easy to mistakenly mess
up important conguration les.
All les and directories are owned by the person who created them. We created the le sneak-
ers.txt in our login directory, so sneakers.txt belongsto us.
That means, we can specify whosallowedtoreadthele, write to the le or, if it were an application
instead of a text le, who can execute the le.
Reading, writing and executing are the three main settings in permissions.
Since every user on the system is placed into a group when that user is created, then we can also
specify whether certain groups can read, write to, or execute our le.
Lets take a closer look at sneakers.txt with the ls command using the -l (long) option (see
Figure 16.16).
[billy@localhost billy]$ ls -l sneakers.txt
-rw-rw-r-- 1 billy billy 150 Mar 19 08:08 sneakers.txt
Theres quite a bit of detail here. We can see who can read (r)andwriteto(w)thele,aswellaswho
created the le (billy) and to which group the owner belongs (billy).
Tip: Remember that, by default, your group was the login name you chose.
Other information to the right of the group includes the le name, date and time of its creation as
well as size.
How do all those dashes and letters ttogether?Its not as hard to read as it might seem. Lets take
a look:
-rw-rw-r--
Przeglądanie stron 256
1 2 ... 252 253 254 255 256 257 258 259 260 261 262 ... 299 300

Komentarze do niniejszej Instrukcji

Brak uwag