sidebar | permalink | keywords | summary |
---|---|---|---|
sidebar |
xcp-nfs-reference-chown.html |
netapp, xcp, reference, nfs, command, commands |
XCP NFS command reference |
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.
xcp chown -user/-group <user-name/group-name> <source NFS export path>
The following table lists the chown
parameters and their description.
Parameter | Description |
---|---|
Excludes the files and directories that match the filter. |
|
Only processes the files and directories that match the filter. |
|
Sets the Linux group ID (GID) at the source. |
|
Sets the Linux UID at the source. |
|
Changes the UID. |
|
Changes the GID. |
|
Specifies the referenced file or directory point. |
|
Reports the output for every object processed. |
Use the -exclude <filter>
parameter with the chown
command to exclude the files and directories that match the filter.
xcp chown -exclude <filter> -user <user_name> <source NFS export path>
Use the -match <filter>
parameter with the chown
command to only process the files and directories that match the filter.
xcp chown -match <filter> -user <user_name> <source NFS export path>
Use the -group <group>
parameter with the chown
command to set the Linux GID at the source.
xcp chown -match <filter> -user <user_name> <source NFS export path>
Use the -user <user>
parameter with the chown
command to set the Linux UID at the source.
xcp chown -user -user <user_name> <source NFS export path>
Use the -user-from <user_from>
parameter with the chown
command to change the UID.
xcp chown -user-from user1 -user <user_name> <source NFS export path>
Use the -group-from <group_from>
parameter with the chown
command to change the GID.
xcp chown -group-from <group_name> -group <group_name> <source NFS export path>
Use the -reference <reference>
parameter with the chown
command to specify the referenced file or directory point.
xcp chown -reference <reference> <source NFS export path>
Use the -v
parameter with the chown
command to report the output for every object processed.
xcp chown -user-from <user_name> -v -user <user_name> <source NFS export path>