How To Install uid_wrapper on Fedora 36

In this tutorial we learn how to install uid_wrapper in Fedora 36. uid_wrapper is A wrapper for privilege separation

Introduction

In this tutorial we learn how to install uid_wrapper on Fedora 36.

What is uid_wrapper

Some projects like a file server need privilege separation to be able to switch to the connection user and do file operations. uid_wrapper convincingly lies to the application letting it believe it is operating as root and even switching between UIDs and GIDs as needed. To use it set the following environment variables LD_PRELOAD=libuid_wrapper.so UID_WRAPPER=1 This package doesn’t have a devel package cause this project is for development/testing.

We can use yum or dnf to install uid_wrapper on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install uid_wrapper.

Install uid_wrapper on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install uid_wrapper using dnf by running the following command:

sudo dnf -y install uid_wrapper

Install uid_wrapper on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install uid_wrapper using yum by running the following command:

sudo yum -y install uid_wrapper

How To Uninstall uid_wrapper on Fedora 36

To uninstall only the uid_wrapper package we can use the following command:

sudo dnf remove uid_wrapper

uid_wrapper Package Contents on Fedora 36

---
title: "How To Install uid_wrapper on Fedora 36"
linkTitle: "uid_wrapper"
type: "docs"
description: "In this tutorial we learn how to install uid_wrapper in Fedora 36. uid_wrapper is A wrapper for privilege separation"
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/uid_wrapper-featured.png
---

## Introduction

In this tutorial we learn how to install `uid_wrapper` on Fedora 36.

### What is `uid_wrapper`

> Some projects like a file server need privilege separation to be able to switch to the connection user and do file operations. uid_wrapper convincingly lies to the application letting it believe it is operating as root and even switching between UIDs and GIDs as needed.  To use it set the following environment variables  LD_PRELOAD=libuid_wrapper.so UID_WRAPPER=1  This package doesn't have a devel package cause this project is for development/testing.  

We can use `yum` or `dnf` to install `uid_wrapper` on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install uid_wrapper.

## Install uid_wrapper on Fedora 36 Using dnf

Update yum database with `dnf` using the following command.

```bash
sudo dnf makecache --refresh

After updating yum database, We can install uid_wrapper using dnf by running the following command:

sudo dnf -y install uid_wrapper

Install uid_wrapper on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install uid_wrapper using yum by running the following command:

sudo yum -y install uid_wrapper

How To Uninstall uid_wrapper on Fedora 36

To uninstall only the uid_wrapper package we can use the following command:

sudo dnf remove uid_wrapper

uid_wrapper Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/1dae8a6a9277fcabb19479caf451b52c8e099f
/usr/lib/cmake
/usr/lib/cmake/uid_wrapper
/usr/lib/cmake/uid_wrapper/uid_wrapper-config-version.cmake
/usr/lib/cmake/uid_wrapper/uid_wrapper-config.cmake
/usr/lib/libuid_wrapper.so
/usr/lib/libuid_wrapper.so.0
/usr/lib/libuid_wrapper.so.0.1.0
/usr/lib/pkgconfig
/usr/lib/pkgconfig/uid_wrapper.pc
/usr/share/doc/uid_wrapper
/usr/share/doc/uid_wrapper/AUTHORS
/usr/share/doc/uid_wrapper/ChangeLog
/usr/share/doc/uid_wrapper/README.md
/usr/share/licenses/uid_wrapper
/usr/share/licenses/uid_wrapper/LICENSE
/usr/share/man/man1/uid_wrapper.1.gz
/usr/lib/.build-id
/usr/lib/.build-id/58
/usr/lib/.build-id/58/6bcc2f3a048a754648e730fbeefc7db07d9301
/usr/lib64/cmake
/usr/lib64/cmake/uid_wrapper
/usr/lib64/cmake/uid_wrapper/uid_wrapper-config-version.cmake
/usr/lib64/cmake/uid_wrapper/uid_wrapper-config.cmake
/usr/lib64/libuid_wrapper.so
/usr/lib64/libuid_wrapper.so.0
/usr/lib64/libuid_wrapper.so.0.1.0
/usr/lib64/pkgconfig
/usr/lib64/pkgconfig/uid_wrapper.pc
/usr/share/doc/uid_wrapper
/usr/share/doc/uid_wrapper/AUTHORS
/usr/share/doc/uid_wrapper/ChangeLog
/usr/share/doc/uid_wrapper/README.md
/usr/share/licenses/uid_wrapper
/usr/share/licenses/uid_wrapper/LICENSE
/usr/share/man/man1/uid_wrapper.1.gz

References

Summary


In this tutorial we learn how to install `uid_wrapper` on [Fedora 36](/fedora/36/) using [yum](/fedora/36/yum/) and [dnf]((/fedora/36/dnf/).

## References

* [uid_wrapper website](http://cwrap.org/)

## Summary

In this tutorial we learn how to install `uid_wrapper` on [Fedora 36](/fedora/36/) using [yum](/fedora/36/yum/) and [dnf]((/fedora/36/dnf/).