All pastes #429878 Raw Edit

Stuff

public text v1 · immutable
·published 2007-04-08 15:21 UTC
rendered paste body
# cat /etc/control.d/facilities/sudo
#!/bin/sh

. /etc/control.d/functions

BINARY=/usr/bin/sudo

new_fmode public 4711 root root
new_fmode wheelonly 4710 root wheel
new_fmode restricted 700 root root

new_help public "Any user can execute $BINARY"
new_help wheelonly "Only \"wheel\" group members can execute $BINARY"
new_help restricted "Only root can execute $BINARY"

control_fmode "$BINARY" "$*" || exit 1
root@snowflake /etc/control.d/facilities #