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

# lfc-mkdir(1)

make LFC directory in the name server

## NAME

lfc-mkdir - make LFC directory in the name server

## SYNOPSIS

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

## DESCRIPTION

**lfc-mkdir** creates the specified LFC 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 LFC pathname. If *path* does not start with **/**, it is prefixed by the content of the **LFC\_HOME** environment variable.

The **lfc-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)**, **[lfc\_chmod(3)](/lfc_chmod/3.md)**, **[lfc\_mkdir(3)](/lfc_mkdir/3.md)**, **[lfc\_umask(3)](/lfc_umask/3.md)**

## AUTHOR

**LCG Grid Deployment** Team
