Unix Technical Forum

cosmetic fix for /etc/security

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. ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-01-2008, 01:02 PM
Han Boetes
 
Posts: n/a
Default cosmetic fix for /etc/security

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:24 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com