privlx/readme.txt

38 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-12-11 12:12:57 +00:00
privlx (Privilege List eXecute)
Allow unprivileged users to run executables for privileged users.
2023-12-11 12:17:08 +00:00
NOTE: Some features are still coming, until then expect the ABI to break.
2023-12-11 12:12:57 +00:00
* Syntax:
2023-12-12 03:13:08 +00:00
privlx <command> - Get privileges and run command
unprivlx <command> - Drop privileges and run command
2023-12-11 12:12:57 +00:00
* Config:
Add commands you want to allow users to run as root in /etc/privlx/commands.conf, one per line.
Example (/etc/privlx/commands.conf):
poweroff
reboot
pm-hibernate
pm-powersave
pm-suspend-hybrid
pm-suspend
Allow the user to access power management tools. Be warned, poweroff and reboot let the user break the system. It is best to make a wrapper script, to only allow defined behavior.
* BUILDING
* Configuration:
Before compiling or installing, you may set these environment variables, either in a shell, or inside of ./env:
- CC: Your C compiler (default: cc)
- CFLAGS: Compilation flags (default: none)
2023-12-12 03:13:08 +00:00
- APP_NAME: What the app is called. This is used for naming the binaries and outputting errors (default: privlx)
- APP_BIN: Where the app's binaries are stored (default: /usr/local/bin)
2023-12-11 12:12:57 +00:00
- APP_CONF: Where the app's configuration files are stored (default: /etc/$APP_NAME)
* Compilation:
Run ./compile
You need a C compiler, and standard libraries
* Installation:
Run ./install as root