Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

Codeblock
titleChange group ownership
blogin4:~ $ chgrp prj00012 somefile.txt
blogin4:~ $ ls -l somefile.txt
-rw-------  1 myaccount prj00012 237271040 Jul  3  2020 somefile.txt


To change all small number of files in a directory recusively, use "chgrp -R".  To update lots of files, especially on the Lustre filesystems, you should use "lfs find" instead:


Codeblock
titleChange group ownership of a directory and everything it contains
blogin4:~ $ lfs find somedirectory | xargs chgrp prj00012 
blogin4:~ $ ls -ld somedirectory
drwx------  1 myaccount  prj00012      4096 Jul  3  2020 somedirectory


If your file or directory names contain spaces, you will need to use "lfs find -0 ... | xargs -0 ..." instead.


Access for group members

Once a file (or a complete directory) has the group ownership, the file might be accessed by all users in the group.

...