On 2010/11/06 14:12, Bahador NazariFard wrote: > Hi > > I am using OpenBSD operating system. > > I think there is a problem in* /etc/netstart* on Line 44: *set -A stat -- > `ls -nL $file`* > I think we should change this line to *set -A stat -- `ls -nl $file`* > > Before fixing this problems always netstart prints "*WARNING: $file is > insecure, fixing permissions*"
netstart deliberately only looks at the target of a symlink for these files (both when we check and when we chmod/chown. ls -nl is pointless and ambiguous, -n means "long output with numeric values for uid/gid" and -l means "long output with names for uid/gid". What are the permissions on your /etc/hostname.* files? Are you doing anything strange with flags? (check with ls -lo or something).