Skip to content

Latest commit

 

History

History
136 lines (88 loc) · 3.91 KB

xcp-nfs-reference-chown.adoc

File metadata and controls

136 lines (88 loc) · 3.91 KB
sidebar permalink keywords summary
sidebar
xcp-nfs-reference-chown.html
netapp, xcp, reference, nfs, command, commands
XCP NFS command reference

chown

The XCP NFS chown command scans and changes the ownership of all the files for the given directory structure. The chown command requires an NFS share or the POSIX path as a variable. XCP chown recursively changes the ownership for a given path. The chown command displays the changed user ID (UID) for a file.

Syntax
xcp chown -user/-group <user-name/group-name> <source NFS export path>

The following table lists the chown parameters and their description.

Parameter Description

chown -exclude <filter>

Excludes the files and directories that match the filter.

chown -match <filter>

Only processes the files and directories that match the filter.

chown -group <group>

Sets the Linux group ID (GID) at the source.

chown -user <user>

Sets the Linux UID at the source.

chown -user-from <user_from>

Changes the UID.

chown -group-from <group_from>

Changes the GID.

chown -reference <reference>

Specifies the referenced file or directory point.

chown -v

Reports the output for every object processed.

chown -exclude <filter>

Use the -exclude <filter> parameter with the chown command to exclude the files and directories that match the filter.

Syntax
xcp chown -exclude <filter> -user <user_name> <source NFS export path>

chown -match <filter>

Use the -match <filter> parameter with the chown command to only process the files and directories that match the filter.

Syntax
xcp chown -match <filter>  -user <user_name> <source NFS export path>

chown -group <group>

Use the -group <group> parameter with the chown command to set the Linux GID at the source.

Syntax
xcp chown -match <filter> -user <user_name> <source NFS export path>

chown -user <user>

Use the -user <user> parameter with the chown command to set the Linux UID at the source.

Syntax
xcp chown -user -user <user_name> <source NFS export path>

chown -user-from <user_from>

Use the -user-from <user_from> parameter with the chown command to change the UID.

Syntax
xcp chown -user-from user1 -user <user_name> <source NFS export path>

chown -group-from <group_from>

Use the -group-from <group_from> parameter with the chown command to change the GID.

Syntax
xcp chown -group-from <group_name> -group <group_name> <source NFS export path>

chown -reference <reference>

Use the -reference <reference> parameter with the chown command to specify the referenced file or directory point.

Syntax
xcp chown -reference <reference> <source NFS export path>

chown -v

Use the -v parameter with the chown command to report the output for every object processed.

Syntax
xcp chown -user-from <user_name> -v -user <user_name> <source NFS export path>