1
0
Fork 0
forked from soccera/rdo
fixed parsing vulnerability rdo
Find a file
sw1tchbl4d3 a30dffcf5d Add -fsanitize=undefined to Makefile
Now we also check for undefined behaviour in our debug build.
2021-07-29 17:28:17 +02: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 -fsanitize=undefined to Makefile 2021-07-29 17:28:17 +02:00
rdo.c Fix memory leak in getconf() 2021-07-18 23:34:31 +02:00
rdo_sample.conf Add sessions feature 2021-07-15 23:47:27 +02:00
README.md Add some explanations for the config to the README 2021-07-16 00:43:18 +02:00
sessions.h Avoid unnecessary recursion in ensuredir() 2021-07-29 17:25:34 +02:00

RootDO AUR

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

Installation

If you are on Arch Linux, you can download the package via the AUR.

If you are using any other linux distro, you can build it yourself by following these instructions:

git clone https://codeberg.org/sw1tchbl4d3/rdo
cd rdo
make
sudo 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 username variable to your own.

After that you're good to go!

And to uninstall:

sudo make uninstall

Usage

rdo [command]

The configuration file has the following variables:

username=sw1tchbl4d3
wrong_pw_sleep=1000
session_ttl=5
  • username: The username of the user that is allowed to execute rdo (no multi user or group support (yet)).
  • wrong_pw_sleep: The amount of milliseconds to sleep at a wrong password attempt. Must be a positive integer. Set to 0 to disable.
  • session_ttl: The amount of minutes a session lasts. Must be a positive integer. Set to 0 to disable.

Dependencies

  • libbsd