Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://comet.sai.msu.ru/UNIXhelp/tasks/change_own.html
Дата изменения: Fri Jan 17 12:43:23 1997 Дата индексирования: Tue Oct 2 00:58:12 2012 Кодировка: Поисковые слова: jet |
Every user is a member of one or more groups. To find out which groups you belong to use the command:
groups
To find out which groups another user belongs to use the command:
groups username
Your files and directories are owned by the group (or one of the groups) that you belong to. This is known as their "group ownership".
To list the group ownership of your files:
ls -gl
You can change the group ownership of a file or directory with the command:
chgrp group_name file/directory_name
You must be a member of the group to which you are changing ownership to.