2025-08-13 11:22:01 +10:00
# RootDO
2021-07-13 21:33:12 +02:00
2022-02-09 20:16:13 +01:00
This project aims to be a very slim alternative to both sudo and doas.
2021-07-13 21:33:12 +02:00
### Installation
2022-05-05 08:21:48 +02:00
You can clone and build rdo with the following set of commands:
2021-07-14 15:13:36 +02:00
2021-07-13 21:33:12 +02:00
```sh
2025-08-13 11:23:36 +10:00
git clone https://mrrp.sx7n8.tech/soccera/rdo.git
2021-07-13 21:33:12 +02:00
cd rdo
make
2025-08-13 11:23:36 +10:00
rdo make install
2021-07-13 21:33:12 +02:00
```
After that, you'll have to configure rdo to allow you to use it.
2022-03-08 18:12:42 +01:00
To do this, edit `/etc/rdo.conf` , and set the group variable to the admin group you are in.
2021-07-13 21:33:12 +02:00
2022-02-09 20:16:13 +01:00
Then you're good to go!
2021-07-13 21:33:12 +02:00
2022-02-09 20:16:13 +01:00
To uninstall:
2021-07-13 21:33:12 +02:00
```sh
2025-08-13 11:23:36 +10:00
rdo make uninstall
2021-07-13 21:33:12 +02:00
```
### Usage
```sh
rdo [command]
```
2021-07-15 12:44:44 +02:00
2022-12-17 00:33:56 +01:00
Or, to get the password from stdin:
```sh
rdo - [command]
```
2025-08-13 11:22:01 +10:00
`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.
2021-07-16 00:43:18 +02:00
The configuration file has the following variables:
```
2022-03-08 17:32:53 +01:00
group=wheel
2021-07-16 00:43:18 +02:00
wrong_pw_sleep=1000
session_ttl=5
```
2022-03-08 17:32:53 +01:00
- `group` : The group of users that is allowed to execute rdo.
2025-08-13 11:22:01 +10:00
- `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.
2021-07-29 18:38:33 +02:00
2025-08-13 11:22:01 +10:00
### License
2021-07-29 18:38:33 +02:00
2025-08-13 11:22:01 +10:00
This project is licensed under the GNU General Public License v3.0. See the `LICENSE` file for the full license text.