chgrp
Changes the user group of a file in the LSF data management cache.
Options
Change user group after stage out.
bdata chgrp [-dmd cluster_name] -g user_group_name "[host_name:]abs_file_path"bdata chgrp [-dmd cluster_name] -g user_group_name "[host_name:]abs_folder_path/[*]"
Change user group after stage in.
bdata chgrp [-dmd cluster_name] -g user_group_name -tag tag_nameDescription
- Change group after stage out
-
Use the bdata chgrp -g group_name command and specify the name of a data file or folder that is already staged in to the cache. The chgrp command changes the user group of a transferred data file and the directory it is in. The file must be in the transferred state or idle state for the command to succeed.
If you specify a folder, either recursive (abs_folder_path/) or non-recursive (abs_folder_path/*), the folder must be in the transferred state or idle state. The user group of both the folder and its contents are changed. The top-level folder permissions are set to 0770 (rwxrwx---). The permissions of other directories under the top-level directory are set to 0750 (rwxr-x---).
When you use the asterisk character (*) at the end of the path, the data requirements string must be in quotation marks.
If you specify an optional host name (host_name:abs_file_path), the bdata chgrp command changes the user group of the files or folders that are staged in from the specified host.
- Change group after stage in
-
Use the bdata chgrp -g group_name command and specify a tag name to change the group of all the files in the cache that is associated with the tag to the group name specified by group_name. The group of the tag directory and its contents is changed. The command sets the permissions of the top-level tag directory to 0770 (rwxrwx---). The permission of other directories in the top-level tag directory is set to 0750 (rwxr-x---).
The command is equivalent to the chmod ug+r, o-rwx command, and sets the owner and group read permissions of all files (not directories).