Документ взят из кэша поисковой машины. Адрес оригинального документа : http://comet.sai.msu.ru/UNIXhelp/examples/permissions.html
Дата изменения: Fri Jan 17 12:43:16 1997
Дата индексирования: Tue Oct 2 02:28:48 2012
Кодировка:

Поисковые слова: arp 220
Examples of access permissions

Examples of access permissions

   ls -l file1
   -rw-------  2 unixjohn     3287 Apr  8 12:10 file1

The owner of the file has read and write permission.


   ls -l file2
   -rw-r--r--  2 unixjohn     3287 Apr  8 12:11 file2

The owner has read and write permission. Everyone else - the group and all other users - can read the file.


   ls -l myprog
   -rwx--x--x  2 unixjohn     3287 Apr  8 12:10 myprog

The user has read, write and execute permission. Everyone else -the group and all others- can execute the file.


   ls -l
   ...
   drwxr-x---  2 erpl08       1024 Jun 17 10:00 SCCS

This is a directory. The user has red, write and execute permission. The group has read and execute permission on the directory. Nobody else can get access to it.


[Home] [Search] [Index]