www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/08/06:00:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <40ED1B40.5070104@x-ray.at>
Date: Thu, 08 Jul 2004 12:00:32 +0200
From: Reini Urban <rurban AT x-ray DOT at>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a2) Gecko/20040629
MIME-Version: 1.0
To: "Harig, Mark" <maharig AT idirect DOT net>
CC: cygwin AT cygwin DOT com
Subject: Re: cron_diagnose.sh version 1.6
References: <BADF3C947A1BD54FBA75C70C241B0B9E0145993C AT ex02 DOT co DOT idirect DOT net>
In-Reply-To: <BADF3C947A1BD54FBA75C70C241B0B9E0145993C@ex02.co.idirect.net>
X-IsSubscribed: yes

Harig, Mark wrote:
> Please report the version number that this
> script reports so that improvements can be
> made to it.

v1.6: permission fail for /etc/passwd:
for fname in /etc/passwd /etc/group; do
   /usr/bin/ls -ld $fname | egrep -q '^-r..r..r.. ';
   if [ $? -ne 0 ]; then
     echo "The permissions on the file $fname are not correct."
     echo "Please run 'chmod +r $fname', and run this script again."
     return 1
   fi
done

I have "-rw-r--r--+" which should be checked. Or is it a new requirement 
that no extended ACL must be defined? To my knowledge not.
So please delete the last space in the regex.
Without the space it runs fine.
-- 
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019