---
name: "parrot_namespace"
section: "1"
platform: "linux"
package: "coop-computing-tools"
version: "1:7.14.5-1+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/parrot_namespace"
---

# parrot\_namespace(1)

run a command in a modified namespace.

## NAME

**parrot\_namespace** - run a command in a modified namespace.

## SYNOPSIS

FCparrot\_cp \[options\] *\<command\>*FT

## DESCRIPTION

FCparrot\_namespaceFT detects whether it is already running under Parrot and either forks a new mount namespace in the existing Parrot session or simply executes FCparrot\_runFT. For applications that only need to make mount-related changes, FCparrot\_namespaceFT is a drop-in replacement for FCparrot\_runFT that automatically handles nested invocations.

## OPTIONS

- **-M,--mount=*\</foo=/bar\>***

  Mount (redirect) *\</foo\>* to *\</bar\>* (FCPARROT\_MOUNT\_STRINGFT)

- **-m,--ftab-file=*\<path\>***

  Use *\<path\>* as a mountlist (FCPARROT\_MOUNT\_FILEFT)

- **-l,--ld-path=*\<path\>***

  Path to ld.so to use.

- **--parrot-path**

  Path to FCparrot\_runFT (FCPARROT\_PATHFT)

- **-v,--version**

  Show version number

- **-h,--help**

  Help: Show these options

## EXIT STATUS

On success, returns zero.  On failure, returns non-zero.

## EXAMPLES

To run Parrot under Parrot with a modified mount environment, use FCparrot\_namespaceFT

```

```

-

  % parrot\_namespace -M /tmp=/tmp/job01 sh % parrot\_mount --unmount /tmp    # not allowed

Now in the same shell, we can call FCparrot\_namespaceFT regardless of whether we're already running under Parrot or not.

```

```

-

  % parrot\_namespace -m mountfile foo

## COPYRIGHT

The Cooperative Computing Tools are Copyright (C) 2022 The University of Notre Dame.  This software is distributed under the GNU General Public License.  See the file COPYING for details.

## SEE ALSO

- •

  **Cooperative Computing Tools Documentation**

- •

  **Parrot User Manual**

- •

  **[parrot\_run(1)](/parrot_run/1.md)** **[parrot\_cp(1)](/parrot_cp/1.md)** **[parrot\_getacl(1)](/parrot_getacl/1.md)**  **[parrot\_setacl(1)](/parrot_setacl/1.md)**  **[parrot\_mkalloc(1)](/parrot_mkalloc/1.md)**  **[parrot\_lsalloc(1)](/parrot_lsalloc/1.md)**  **[parrot\_locate(1)](/parrot_locate/1.md)**  **[parrot\_timeout(1)](/parrot_timeout/1.md)**  **[parrot\_whoami(1)](/parrot_whoami/1.md)**  **[parrot\_mount(1)](/parrot_mount/1.md)**  **[parrot\_md5(1)](/parrot_md5/1.md)**  **[parrot\_package\_create(1)](/parrot_package_create/1.md)**  **[parrot\_package\_run(1)](/parrot_package_run/1.md)**  **[chroot\_package\_run(1)](/chroot_package_run/1.md)**
