ref: 827fdabbf912fa94b6472cf21cbdc5c82306af01
parent: 16ba4693e5f2f12c01bfd2ff89d53504d24cbd75
author: cinap_lenrek <[email protected]>
date: Wed Dec 14 13:20:48 EST 2022
netaudit: fix format, always state the fileserver tested
--- a/rc/bin/netaudit
+++ b/rc/bin/netaudit
@@ -166,20 +166,18 @@
echo 'checking basic security:'
for(fs in `{ndb/ipquery sys $sysname fs | sed 's/fs=//g'}) @{
rfork n
-
- echo $fs
if(srv $fs netaudit.$pid >[2] /dev/null || srvtls $fs netaudit.$pid >[2] /dev/null){
if(mount -N /srv/netaudit.$pid /n/netaudit >/dev/null >[2=1])
- echo ' file server allows none attach'
+ echo ' fs='$fs 'allows none attach. mistake?'
if not
- echo ' file server does not allow none attach'
+ echo ' fs='$fs 'does not allow none attach. ok'
if(mount -n /srv/netaudit.$pid /n/netaudit >/dev/null >[2=1])
- echo ' file server does not require auth for user '^$user
+ echo ' fs='$fs 'does not require auth for user '^$user^'. mistake?'
if not
- echo ' file server seems to require auth'
+ echo ' fs='$fs 'seems to require auth. ok'
}
if not
- echo ' '^$fs^' is not listening'
+ echo ' fs='$fs 'is not listening'
rm -f /srv/netaudit.$pid
}
}