diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-12-14 18:20:48 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-12-14 18:20:48 +0000 |
commit | 827fdabbf912fa94b6472cf21cbdc5c82306af01 (patch) | |
tree | e67b135d349efb296456d054a4562bf19e415033 /rc | |
parent | 16ba4693e5f2f12c01bfd2ff89d53504d24cbd75 (diff) |
netaudit: fix format, always state the fileserver tested
Diffstat (limited to 'rc')
-rwxr-xr-x | rc/bin/netaudit | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/rc/bin/netaudit b/rc/bin/netaudit index fc69b98a6..2fd56ae5b 100755 --- a/rc/bin/netaudit +++ b/rc/bin/netaudit @@ -166,20 +166,18 @@ fn checksec { 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 } } |