# $Id$ # Authority: dag # Upstream: Alec Thomas Summary: Allows restricted root access for specified users Name: op Version: 1.32 Release: 3 License: BSD Group: Applications/System URL: http://swapoff.org/op/ Source: http://swapoff.org/files/op/op-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: flex, pam-devel %description op provides a flexible means for system administrators to grant access to certain root operations without having to give them full superuser privileges. Different sets of users may access different operations, and the security-related aspects of each operation can be carefully controlled. %prep %setup %{__cat} <<'EOF' >op.conf ### This is the config file for the op tool. ### For more information about the syntax see manual page op(1) ### Define some users #OPERATORS=(dag|ramses) ### Define hosts that Fred is restricted to #DAG_HOSTS=(horsea|jynx) ### Define hosts that Barry is restricted to #RAMSES_HOSTS=(pikachu|jynx) ### Define user/host access list #ACCESS_LIST=dag@DAG_HOSTS|ramses@RAMSES_HOSTS ### 'op su' - gives user a root shell. ### Restrict a list of local users. #su # /bin/su -; # users=dag,ramses,wim # environment # password ### 'op reboot' - reboot system ### Shows how to use a simple access list #reboot # /sbin/reboot; # users=ACCESS_LIST # password ### 'op shutdown