---
name: "dpns-chown"
section: "1"
platform: "linux"
package: "dpm"
version: "1.10.0-2+b3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/dpns-chown"
---

# dpns-chown(1)

change owner and group of a DPNS directory/file in the name server

## NAME

dpns-chown - change owner and group of a DPNS directory/file in the name server

## SYNOPSIS

**dpns-chown** \[**-h**\] \[**-R**\] *owner*\[:*group*\] *path*...

**dpns-chown** \[**-h**\] \[**-R**\] :*group* *path*...

## DESCRIPTION

**dpns-chown** sets the owner and/or the group of a DPNS directory/file in the name server to the values in *owner* and *group* respectively.

To change the owner ID, if the group ID does not change and if the caller and the new owner ID belong to that group, GRP\_ADMIN privilege is needed, otherwise the caller must have ADMIN privilege in the Cupv database. To change the group ID, the effective user ID of the process must match the owner ID of the file and the new group must be in the list of groups the caller belong to or the caller must have ADMIN privilege in the Cupv database.

- *owner*

  is either a valid username or a valid numeric ID.

- *group*

  is either a valid group name or a valid numeric ID.

- *path*

  specifies the DPNS pathname. If *path* does not start with **/**, it is prefixed by the content of the **DPNS\_HOME** environment variable.

## OPTIONS

The following options are supported:

- **-h**

  If *path* is a symbolic link, changes the ownership of the link itself.

- **-R**

  Recursive mode.

## EXIT STATUS

This program returns 0 if the operation was successful or \>0 if the operation failed.

## SEE ALSO

**[Castor\_limits(4)](/Castor_limits/4.md)**, **[dpns\_chown(3)](/dpns_chown/3.md)**, **Cupvlist(1)**

## AUTHOR

**LCG Grid Deployment** Team
