This is a discussion on cosmetic fix for /etc/security within the mailing.openbsd.tech forums, part of the OpenBSD category; --> Since I don't use /etc/netstart nor /etc/hostname.* I received this message in my daily output: /etc/hostname.* is world readable. ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Since I don't use /etc/netstart nor /etc/hostname.* I received this message in my daily output: /etc/hostname.* is world readable. Here is a fix: Index: security ================================================== ================= RCS file: /cvs/src/etc/security,v retrieving revision 1.80 diff -u -p -r1.80 security --- security 17 Apr 2008 19:49:16 -0000 1.80 +++ security 30 Jun 2008 19:12:24 -0000 @@ -303,6 +303,7 @@ fi # world-readable. for f in /etc/hostname.* ; do + [ "$f" = '/etc/hostname.*' ] && break if [ "$(stat -f "%SLp" $f)" != "---" ]; then echo "\n$f is world readable." fi # Han |