User Switcher, just like sudo but worse
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Linux User 9f0238d788 pause for some time on wrong password 2 years ago
.gitignore compiles on openbsd 3 years ago
LICENSE licensed code 3 years ago
README.md updated readme 3 years ago
makefile added manual pages 3 years ago
us.1 fix typos 3 years ago
us.c pause for some time on wrong password 2 years ago
us.conf.5 changed config, + became permit and - deny 2 years ago

README.md

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.