Owl control FreeBSD port
Overview
control provides a common interface to register and control system
facilities.
This is intended primarily for facilities that can potentially be
dangerous to system security, to let you enable, disable, or configure the
facility independently from package installation.
When run with no arguments, control lists all available facilities,
their current status, and their supported settings.
When a FACILITY name is specified, control may list its supported
settings, reports its current status (default action), or switch it to a
new STATUS.
Example output
# control
at restricted [ public restricted ]
chsh public [ public restricted ]
crontab public [ public restricted ]
mount public [ public restricted ]
newgrp public [ public wheelonly restricted ]
passwd traditional [ traditional restricted ]
ping wheelonly [ public wheelonly restricted ]
postfix server [ server local ]
pw public [ public restricted ]
sftp off [ on off ]
su wheelonly [ public wheel wheelonly restricted ]
traceroute wheelonly [ public wheelonly restricted ]
write public [ public restricted ]
# control ping
wheelonly
# ls -l /sbin/ping
-r-sr-x--- 1 root wheel 21K Nov 5 2004 /sbin/ping*
# control ping public
# ls -l /sbin/ping
-r-sr-xr-x 1 root wheel 21K Nov 5 2004 /sbin/ping*
# control ping
public
Differences between original Linux and FreeBSD version
- Replaced find and sed calls with the appropiate GNU
tools. The BSD version of find and sed won't work without
further investigation.
- Added various control files
(at, crontab, newgrp, ping, pw, traceroute, chsh, mount, passwd, postfix,
sftp, su, write) and modified to refelect the FreeBSD default permission
modes.
- Minor style changes.
Download
owl-control-fbsd.tgz [4 KB]
Installation
Be sure to have /usr/ports/misc/findutils and
/usr/ports/textproc/gsed installed.
# tar xfz owl-control-fbsd.tgz
# cd owl-control-fbsd
# mkdir -p /etc/control.d/facilities/
# cp functions /etc/control.d/
# cp control /usr/local/sbin
# cp files/* /etc/control.d/facilities/
# cp control.8 /usr/local/man/man8/
# control
Author
control was written by Solar Designer <solar (at) owl.openwall.com>
for Openwall GNU/*/Linux. FreeBSD
port by Matthias Schmidt <schmidt (at) owl.openwall.com>.
License
Public domain.
|