UserCHRoot enables users to change root, drop privileges, change directory, and execute commands.
The userchroot program was created to address these needs. It is a small program that is meant to be run as suid (u+s root) when working with chroot environments. The program is designed to be as cautious as possible, in order to ensure that the target executable is not run with root privileges. Instead, userchroot will revert to the normal user privileges of the calling user, effectively undoing the suid-bit. If the program is unable to drop root privileges, the target executable will not be executed.
Userchroot has been tested on Linux and is written in C. The software is licensed under the GNU General Public License (v2) and comes with no warranty. It is provided with the understanding that software bugs do exist, and that it is possible for bad things to happen.
When building and installing the software, users should be aware that suid bits should not be used with programs that are downloaded from the internet. Because of this, building and installing UserCHRoot is not automated. There are no autotools or Makefiles included. To successfully build userchroot, users will need regular gcc and the standard C library headers. They may also need to use chmod, chown, and cp to properly install the program.
UserCHRoot is used by calling it with the following command line arguments:
new-root new-cwd exec-name [exec-params]
This software is a handy tool for anyone who needs to manage chroot environments in a secure and efficient way.
Version 0.1: N/A