003 File Manager
Current Path:
/usr/sbin
usr
/
sbin
/
π
..
π
ac
(10.36 KB)
π
accton
(5.66 KB)
π
acpiconf
(9.14 KB)
π
acpidb
(496.75 KB)
π
acpidump
(39.86 KB)
π
adduser
(23.38 KB)
π
ancontrol
(34.19 KB)
π
apm
(13.1 KB)
π
arp
(17.88 KB)
π
ath3kfw
(14.51 KB)
π
audit
(5.98 KB)
π
auditd
(21.79 KB)
π
auditdistd
(127.49 KB)
π
auditreduce
(15.34 KB)
π
authpf
(20.57 KB)
π
authpf-noip
(20.57 KB)
π
automount
(50.65 KB)
π
automountd
(50.65 KB)
π
autounmountd
(50.65 KB)
π
bcmfw
(8.68 KB)
π
bhyve
(374.03 KB)
π
bhyvectl
(41.55 KB)
π
bhyveload
(16.41 KB)
π
binmiscctl
(14.12 KB)
π
blacklistctl
(33.88 KB)
π
blacklistd
(41.85 KB)
π
bluetooth-config
(9.71 KB)
π
boot0cfg
(15.09 KB)
π
bootparamd
(15.81 KB)
π
bootpef
(38.09 KB)
π
bootptest
(17.37 KB)
π
bsdconfig
(11.98 KB)
π
bsdinstall
(3.44 KB)
π
bsnmpd
(136.55 KB)
π
bthidcontrol
(36.06 KB)
π
bthidd
(55.51 KB)
π
btpand
(32.42 KB)
π
btxld
(13.49 KB)
π
callbootd
(9.26 KB)
π
camdd
(37.59 KB)
π
cdcontrol
(22.45 KB)
π
certctl
(7.74 KB)
π
chkgrp
(9.04 KB)
π
chkprintcap
(18.22 KB)
π
chown
(10.23 KB)
π
chroot
(8.31 KB)
π
ckdist
(16.18 KB)
π
clear_locks
(6.23 KB)
π
config
(56.23 KB)
π
cpucontrol
(20.03 KB)
π
crashinfo
(8.21 KB)
π
cron
(44.9 KB)
π
ctladm
(66.98 KB)
π
ctld
(123.97 KB)
π
cxgbetool
(2.86 MB)
π
daemon
(15.76 KB)
π
dconschat
(22.84 KB)
π
devctl
(11.83 KB)
π
devinfo
(8.68 KB)
π
diskinfo
(19.2 KB)
π
dtrace
(35.91 KB)
π
dumpcis
(26.69 KB)
π
dwatch
(36.59 KB)
π
editmap
(84.02 KB)
π
edquota
(22.9 KB)
π
efibootmgr
(22.04 KB)
π
efidp
(9.79 KB)
π
efivar
(14.77 KB)
π
etcupdate
(43.94 KB)
π
extattrctl
(16.63 KB)
π
fdcontrol
(14.94 KB)
π
fdformat
(18.52 KB)
π
fdread
(17.14 KB)
π
fdwrite
(10.19 KB)
π
fifolog_create
(9.03 KB)
π
fifolog_reader
(31.19 KB)
π
fifolog_writer
(15.57 KB)
π
flowctl
(12.19 KB)
π
fmtree
(36.11 KB)
π
freebsd-update
(91.6 KB)
π
fstyp
(19.38 KB)
π
ftp-proxy
(28.19 KB)
π
fwcontrol
(32.87 KB)
π
gensnmptree
(29.26 KB)
π
getextattr
(11.24 KB)
π
getfmac
(6.78 KB)
π
getpmac
(6.9 KB)
π
gpioctl
(11.71 KB)
π
gssd
(34.37 KB)
π
gstat
(23.22 KB)
π
hccontrol
(174.81 KB)
π
hcsecd
(30.18 KB)
π
hcseriald
(10.12 KB)
π
hostapd
(876.65 KB)
π
hostapd_cli
(79.18 KB)
π
hoststat
(8.41 KB)
π
hv_kvp_daemon
(21.99 KB)
π
hv_vss_daemon
(9.45 KB)
π
i2c
(14.99 KB)
π
iasl
(1.34 MB)
π
idprio
(7.61 KB)
π
ifmcstat
(12.74 KB)
π
inetd
(47.88 KB)
π
iostat
(19.66 KB)
π
iovctl
(19.91 KB)
π
ip6addrctl
(12.2 KB)
π
ipfwpcap
(10.79 KB)
π
iprop-log
(24.89 KB)
π
iscsid
(37.38 KB)
π
iwmbtfw
(19.09 KB)
π
jail
(68.96 KB)
π
jexec
(8.85 KB)
π
jls
(15.11 KB)
π
kbdcontrol
(39.62 KB)
π
kbdmap
(16.16 KB)
π
keyserv
(24.67 KB)
π
kgmon
(13.02 KB)
π
kldxref
(29.59 KB)
π
kstash
(9.68 KB)
π
ktutil
(38.81 KB)
π
l2control
(12.84 KB)
π
l2ping
(10.6 KB)
π
lastlogin
(8.5 KB)
π
local-unbound
(148.45 KB)
π
local-unbound-anchor
(38.63 KB)
π
local-unbound-checkconf
(29.43 KB)
π
local-unbound-control
(33.32 KB)
π
local-unbound-setup
(11.7 KB)
π
lockstat
(49.98 KB)
π
lpc
(55.95 KB)
π
lpd
(82.2 KB)
π
lptcontrol
(6.48 KB)
π
lptest
(6.03 KB)
π
lsextattr
(11.24 KB)
π
mailstats
(73.28 KB)
π
mailwrapper
(8.41 KB)
π
makefs
(183.64 KB)
π
makemap
(89.47 KB)
π
manctl
(7.75 KB)
π
memcontrol
(11.88 KB)
π
mergemaster
(43.59 KB)
π
mfiutil
(75.3 KB)
π
mixer
(12.14 KB)
π
mld6query
(10.53 KB)
π
mlx5tool
(11.54 KB)
π
mlxcontrol
(19.72 KB)
π
mount_smbfs
(15.29 KB)
π
mountd
(54.05 KB)
π
moused
(40.59 KB)
π
mprutil
(33.95 KB)
π
mpsutil
(33.95 KB)
π
mptable
(15.74 KB)
π
mptutil
(46.35 KB)
π
mtest
(17.24 KB)
π
mtree
(60.94 KB)
π
ndis_events
(9.19 KB)
π
ndiscvt
(39.78 KB)
π
ndisgen
(15.83 KB)
π
ndp
(24.03 KB)
π
newsyslog
(46.39 KB)
π
nfscbd
(10.15 KB)
π
nfsd
(22.62 KB)
π
nfsdumpstate
(8.02 KB)
π
nfsrevoke
(6.08 KB)
π
nfsuserd
(16.87 KB)
π
ngctl
(29.15 KB)
π
nghook
(10.09 KB)
π
nmtree
(60.94 KB)
π
nologin
(625.77 KB)
π
nscd
(87.91 KB)
π
ntp-keygen
(205.75 KB)
π
ntpd
(842.26 KB)
π
ntpdate
(126.85 KB)
π
ntpdc
(268.29 KB)
π
ntptime
(83.42 KB)
π
pac
(28.74 KB)
π
pciconf
(37.38 KB)
π
periodic
(4.19 KB)
π
pkg
(32.22 KB)
π
plockstat
(22.91 KB)
π
pmc
(167.45 KB)
π
pmcannotate
(15.8 KB)
π
pmccontrol
(11.81 KB)
π
pmcstat
(77.77 KB)
π
pnfsdscopymr
(9.09 KB)
π
pnfsdsfile
(10.01 KB)
π
pnfsdskill
(6.26 KB)
π
portsnap
(29.86 KB)
π
powerd
(15.97 KB)
π
ppp
(427.13 KB)
π
pppctl
(15.77 KB)
π
praliases
(86.38 KB)
π
praudit
(9.13 KB)
π
prometheus_sysctl_exporter
(13.91 KB)
π
pstat
(14.47 KB)
π
purgestat
(8.41 KB)
π
pw
(74.28 KB)
π
pwd_mkdb
(16.71 KB)
π
pwm
(10.45 KB)
π
quot
(14.92 KB)
π
quotaoff
(8.29 KB)
π
quotaon
(8.29 KB)
π
rarpd
(16.11 KB)
π
repquota
(11.14 KB)
π
rfcomm_pppd
(13.8 KB)
π
rip6query
(7.69 KB)
π
rmextattr
(11.24 KB)
π
rmt
(9.48 KB)
π
rmuser
(8.96 KB)
π
route6d
(46.17 KB)
π
rpc.lockd
(64.46 KB)
π
rpc.statd
(22.27 KB)
π
rpc.umntall
(12.3 KB)
π
rpc.yppasswdd
(41.08 KB)
π
rpc.ypupdated
(18.19 KB)
π
rpc.ypxfrd
(16.12 KB)
π
rpcbind
(43.91 KB)
π
rrenumd
(34.28 KB)
π
rtadvctl
(31.52 KB)
π
rtadvd
(70.95 KB)
π
rtprio
(7.61 KB)
π
rtsold
(40.09 KB)
π
rwhod
(17.15 KB)
π
sa
(23.57 KB)
π
sade
(48.1 KB)
π
sdpcontrol
(15.98 KB)
π
sdpd
(38.07 KB)
π
sendmail
(8.41 KB)
π
service
(4.84 KB)
π
services_mkdb
(14.02 KB)
π
sesutil
(20.83 KB)
π
setextattr
(11.24 KB)
π
setfib
(7.2 KB)
π
setfmac
(14.27 KB)
π
setfsmac
(14.27 KB)
π
setpmac
(6.11 KB)
π
smbmsg
(10.09 KB)
π
snapinfo
(7.46 KB)
π
sntp
(324.31 KB)
π
spi
(15.59 KB)
π
spkrtest
(3.62 KB)
π
spray
(7.8 KB)
π
sshd
(302.45 KB)
π
swapinfo
(14.47 KB)
π
syslogd
(53.15 KB)
π
sysrc
(22.64 KB)
π
tcpdchk
(19.85 KB)
π
tcpdmatch
(16.88 KB)
π
tcpdrop
(10.25 KB)
π
tcpdump
(936.43 KB)
π
traceroute
(33.23 KB)
π
traceroute6
(30.32 KB)
π
trim
(9.41 KB)
π
trpt
(11.45 KB)
π
tzsetup
(20.19 KB)
π
uathload
(9.28 KB)
π
uefisign
(20.87 KB)
π
ugidfw
(8.57 KB)
π
uhsoctl
(26.11 KB)
π
usbconfig
(26.59 KB)
π
usbdump
(16.42 KB)
π
utx
(7.81 KB)
π
valectl
(12.23 KB)
π
vidcontrol
(27.79 KB)
π
vidfont
(16.16 KB)
π
vigr
(2.42 KB)
π
vipw
(7.2 KB)
π
wake
(7.33 KB)
π
watch
(12.79 KB)
π
watchdog
(15.37 KB)
π
watchdogd
(15.37 KB)
π
wlandebug
(16.26 KB)
π
wpa_cli
(529.82 KB)
π
wpa_passphrase
(37.72 KB)
π
wpa_supplicant
(926.5 KB)
π
yp_mkdb
(11.82 KB)
π
ypbind
(20.45 KB)
π
ypinit
(8.8 KB)
π
ypldap
(93.28 KB)
π
yppoll
(7.91 KB)
π
yppush
(23.81 KB)
π
ypserv
(43.55 KB)
π
ypset
(7.36 KB)
π
zdb
(164.94 KB)
π
zdump
(13.48 KB)
π
zfsd
(102.01 KB)
π
zhack
(16.02 KB)
π
zic
(42.48 KB)
π
zonectl
(13.94 KB)
π
zzz
(1.23 KB)
Editing: vigr
#!/bin/sh #- # Copyright (c) 2014 Dag-Erling SmΓΈrgrav # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # $FreeBSD$ # error() { echo "$@" >&2 exit 1 } usage() { error "usage: vigr [-d dir]" } # Check arguments while getopts d: opt ; do case $opt in d) etcdir="${OPTARG}" ;; *) usage ;; esac done # Look for the current group file grpfile="${etcdir:-/etc}/group" if [ ! -f "${grpfile}" ] ; then error "Missing group file" fi # Create a secure temporary working directory tmpdir=$(mktemp -d -t vigr) if [ -z "${tmpdir}" -o ! -d "${tmpdir}" ] ; then error "Unable to create the temporary directory" fi tmpfile="${tmpdir}/group" # Clean up on exit trap "exit 1" INT trap "rm -rf '${tmpdir}'" EXIT set -e # Make a copy of the group file for the user to edit cp "${grpfile}" "${tmpfile}" while :; do # Let the user edit the file ${EDITOR:-/usr/bin/vi} "${tmpfile}" # If the result is valid, install it and exit if chkgrp -q "${tmpfile}" ; then install -b -m 0644 -C -S "${tmpfile}" "${grpfile}" exit 0 fi # If it is not, offer to re-edit while :; do echo -n "Re-edit the group file? " read ans case $ans in [Yy]|[Yy][Ee][Ss]) break ;; [Nn]|[Nn][Oo]) exit 1 ;; esac done done
Upload File
Create Folder