How To Install uid_wrapper on Rocky Linux 8

In this tutorial we learn how to install uid_wrapper on Rocky Linux 8. uid_wrapper is A wrapper for privilege separation

Introduction

In this tutorial we learn how to install uid_wrapper on Rocky Linux 8.

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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install uid_wrapper.

Install uid_wrapper on Rocky Linux 8 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 Rocky Linux 8 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 Rocky Linux 8

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

sudo dnf remove uid_wrapper

uid_wrapper Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/88
/usr/lib/.build-id/88/c701bacd9557f8a62975815976c4797eb873d4
/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.0.6
/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/COPYING
/usr/share/doc/uid_wrapper/ChangeLog
/usr/share/doc/uid_wrapper/README
/usr/share/man/man1/uid_wrapper.1.gz
/usr/lib/.build-id
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/ad420e4d9e44c97e5ea19f3198e12175b4d640
/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.0.6
/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/COPYING
/usr/share/doc/uid_wrapper/ChangeLog
/usr/share/doc/uid_wrapper/README
/usr/share/man/man1/uid_wrapper.1.gz

References

Summary

In this tutorial we learn how to install uid_wrapper on Rocky Linux 8 using yum and dnf.