How To Install uid_wrapper on CentOS 8
Introduction
In this tutorial we learn how to install uid_wrapper
on CentOS 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. uid_wrapper 1.2.4 4.el8 x86_64 41 k uid_wrapper-1.2.4-4.el8.src.rpm powertools A wrapper for privilege separation http GPLv3+ 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 CentOS 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 CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8
To uninstall only the uid_wrapper
package we can use the following command:
sudo dnf remove uid_wrapper
uid_wrapper Package Contents on CentOS 8
/usr/lib/.build-id
/usr/lib/.build-id/84
/usr/lib/.build-id/84/9ec27a2464ccd1c3c7a6715ea78d543acf691b
/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
/usr/lib/.build-id
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/978e77b3d5c543b9f6dcdef4cc4d9a8f068b08
/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
References
- [uid_wrapper website](http://cwrap.org/ http://cwrap.org/)
Summary
In this tutorial we learn how to install uid_wrapper
on CentOS 8 using yum and dnf.