User Switcher, just like sudo but worse
Go to file
2021-10-25 16:57:44 +02:00
.gitignore compiles on openbsd 2021-07-09 20:54:24 +02:00
LICENSE licensed code 2021-03-27 23:01:22 +01:00
makefile added manual pages 2021-07-15 23:18:46 +02:00
README.md updated readme 2021-07-25 18:18:14 +02:00
us.1 fix typos 2021-07-16 11:15:27 +02:00
us.c pause for some time on wrong password 2021-10-25 16:57:44 +02:00
us.conf.5 changed config, + became permit and - deny 2021-10-24 22:04:41 +02:00

US - User {Switcher,Shell}

Opens a shell as a different user without needing to authenticate as that user. This is similar to the behavior of su but it allows to execute privileged and/or commands as any other user without needing their password. It doesn't use PAM, instead relies on shadow files and the passwd database to check if the given password is correct. Support for different methods of authentication is planned.

Installing

To install use make install and to uninstall use make uninstall, all other documentation is provided as man pages, man us will give general information about the utility and how to use it and man us.conf contains info about the config file format.

Supported platforms

All platforms that store the encrypted password in /etc/passwd should be supported, which to this day are none. Linux is supported through shadow(3) and OpenBSD through its API. Support for more systems is planned. This program is libc-agnostic as (apart from authentication) it is POSIX compliant code.