Red Hat ENTERPRISE LINUX WS 2.1 - Guia de Instalação Página 228

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 227
228 File and directory handling
DONE
INDEX
INDEX
14.1.2 Permissions of a directory
The permissions of a directory are represented as follows:
1 = x = search
2 = w= write
4 = r = read
14.1.3 Types of Access
Each file has 3 sets of permissions for 3 categories of users:
the actual owner (shortened ’u’ like user)
users who have the same group ID as the owner
1
(shortened ’g’ like group)
users who have a different group ID than the owner (shortened ’o’ like other)
14.1.4 Example
•Type ls -l filename to see the 3 sets of file permission
e.g. ls -l fila
-rwxrw-r-- 1 jim sys 987 Sep 15 15:08 fila
The permissions of the file fila are 764:
7 = rwx for the user jim
6 = rw- for all users of the group sys
4 = r- - for other users
Use the command ls -ld to see the directory permissions.
e.g. ls -dl dira
drwxr-xr-- 1 jim sys 987 Sep 15 15:08 dira
1. the group attribute of a file can be changed with chgrp, the permissions of a file always
refer to the group ID which is shown with ls -l filename
Vista de página 227
1 2 ... 223 224 225 226 227 228 229 230 231 232 233 ... 271 272

Comentários a estes Manuais

Sem comentários