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

# dpns-mkdir(1)

make DPNS directory in the name server

## NAME

dpns-mkdir - make DPNS directory in the name server

## SYNOPSIS

**dpns-mkdir** \[**-m** *mode*\] \[**-p**\] *path*...

## DESCRIPTION

**dpns-mkdir** creates the specified DPNS directories in the name server.

This requires write permission in the parent directory. The owner ID and group ID of the new directories are set to the requestor's real user ID and group ID, respectively.

- *path*

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

The **dpns-mkdir** command has the following options:

- **-m**

  specifies the mode to be used.  Default mode is 777.

- **-p**

  creates all the non-existing parent directories first. The mode set for the created intermediate directories is the logical difference between 0777 and the user umask but at least 0300.

## 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\_chmod(3)](/dpns_chmod/3.md)**, **[dpns\_mkdir(3)](/dpns_mkdir/3.md)**, **[dpns\_umask(3)](/dpns_umask/3.md)**

## AUTHOR

**LCG Grid Deployment** Team
