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

# lfc-setcomment(1)

add/replace a comment associated with a file/directory

## NAME

lfc-setcomment - add/replace a comment associated with a file/directory

## SYNOPSIS

**lfc-setcomment** *path* *comment*

## DESCRIPTION

**lfc-setcomment** adds/replaces a comment associated with a file/directory in the LFC name server.

The effective user ID of the process must match the owner of the file or the caller must have ADMIN privilege in the Cupv database.

- *path*

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

## 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\_setcomment(3)](/lfc_setcomment/3.md)**, **Cupvlist(1)**

## AUTHOR

**LCG Grid Deployment** Team
