fixed parsing vulnerability rdo
Find a file
2025-08-13 11:23:36 +10:00
benchmark Implement benchmark on a Dockerfile 2022-12-27 11:21:01 -03:00
metadata add ebuild 2025-08-13 08:34:13 +10:00
.gitignore First Commit 2021-07-13 21:33:12 +02:00
LICENSE First Commit 2021-07-13 21:33:12 +02:00
Makefile add manpage and fix makefile 2025-08-13 11:13:10 +10:00
rdo.1 add manpage and fix makefile 2025-08-13 11:13:10 +10:00
rdo.c changed compiler to cc, shortened rdo.c 2025-08-13 02:04:32 +03:30
rdo.conf.5 add manpage and fix makefile 2025-08-13 11:13:10 +10:00
rdo_sample.conf Add groups support 2022-03-08 17:32:53 +01:00
README.md fix readme 2025-08-13 11:23:36 +10:00
readpassphrase.h Don't search for tty, open it directly. 2022-12-20 22:51:14 +01:00
sessions.h lock tty ioctl to openbsd 2023-02-05 12:43:21 +01:00

RootDO

This project aims to be a very slim alternative to both sudo and doas.

Installation

You can clone and build rdo with the following set of commands:

git clone https://mrrp.sx7n8.tech/soccera/rdo.git
cd rdo
make
rdo make install

After that, you'll have to configure rdo to allow you to use it. To do this, edit /etc/rdo.conf, and set the group variable to the admin group you are in.

Then you're good to go!

To uninstall:

rdo make uninstall

Usage

rdo [command]

Or, to get the password from stdin:

rdo - [command]

rdo will ask for your password and grant you a session, on successful authentication you will be able to use rdo for the time specified in session_ttl. You have 3 attempts to enter the correct password.

The configuration file has the following variables:

group=wheel
wrong_pw_sleep=1000
session_ttl=5
  • group: The group of users that is allowed to execute rdo.
  • wrong_pw_sleep: The amount of milliseconds to sleep at a wrong password attempt. Must be a positive integer. Set to 0 to disable. Defaults to 1000.
  • session_ttl: The amount of minutes a session lasts. Must be a positive integer. Set to 0 to disable. Defaults to 5.

License

This project is licensed under the GNU General Public License v3.0. See the LICENSE file for the full license text.