From mkuntic@mioc.hr  Mon Jul  7 02:21:19 2003
Return-Path: <mkuntic@mioc.hr>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 999FD37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  7 Jul 2003 02:21:19 -0700 (PDT)
Received: from zagreb.mioc.hr (zagreb.mioc.hr [193.198.200.3])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DD04043F93
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  7 Jul 2003 02:21:18 -0700 (PDT)
	(envelope-from mkuntic@mioc.hr)
Received: from mkuntic by zagreb.mioc.hr with local (Exim 4.20)
	id 19ZSBR-0009Mg-8k
	for FreeBSD-gnats-submit@freebsd.org; Mon, 07 Jul 2003 11:21:17 +0200
Message-Id: <E19ZSBR-0009Mg-8k@zagreb.mioc.hr>
Date: Mon, 07 Jul 2003 11:21:17 +0200
From: Marko Kuntic <mkuntic@mioc.hr>
Reply-To: Marko Kuntic <mkuntic@mioc.hr>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: error from weekly periodic script 330.catman
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         54170
>Category:       conf
>Synopsis:       [patch] error from weekly periodic script 330.catman
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 07 02:30:07 PDT 2003
>Closed-Date:    
>Last-Modified:  Mon Jan 14 01:09:42 UTC 2008
>Originator:     Marko Kuntic
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
XV. gimnazija, Zagreb, Croatia
>Environment:
System: FreeBSD zagreb.mioc.hr 5.1-RELEASE
FreeBSD 5.1-RELEASE #0: Wed Jun 18 10:46:35 CEST 2003
root@zagreb.mioc.hr:/usr/src/sys/i386/compile/ZAGREB i386
>Description:
The 330.catman script, when run periodically by cron weekly, produces the
following output:

Reformatting manual pages:
find: .: Permission denied
/usr/libexec/catman.local: no local-mounted manual directories found: \
/usr/share/man /usr/share/openssl/man /usr/local/man \
/usr/local/lib/perl5/5.6.1/man

However, when the same script is run manually by root, no such error is
displayed.
>How-To-Repeat:
Configure periodic to run the corresponding weekly duty.
>Fix:
Unknown.
>Release-Note:
>Audit-Trail:

From: Matteo Riondato <rionda@gufi.org>
To: bug-followup@freebsd.org
Cc: mkuntic@mioc.hr
Subject: Re: conf/54170: error from weekly periodic script 330.catman
Date: Thu, 31 Mar 2005 19:04:42 +0200

 --vni90+aGYgRvsTuO
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 Are you still having this issue?=20
 I really didn't manage to reproduce it.
 Please, let me know.
 Best Regards
 
 --=20
 Rionda aka Matteo Riondato
 Disinformato per default
 G.U.F.I. Staff Member (http://www.gufi.org)
 FreeSBIE Developer (http://www.freesbie.org)
 
 --vni90+aGYgRvsTuO
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.0 (FreeBSD)
 
 iD8DBQFCTC2q2Mp4pR7Fa+wRAlfrAKCEWv8JjwXt8t1uRdTh6mJYiSNsVgCfe2WS
 Yrh1Cb4OSya2xP8YLEC0ZYo=
 =9G3C
 -----END PGP SIGNATURE-----
 
 --vni90+aGYgRvsTuO--

From: Marko Kuntic <mkuntic@mioc.hr>
To: Matteo Riondato <rionda@gufi.org>
Cc: bug-followup@freebsd.org
Subject: Re: conf/54170: error from weekly periodic script 330.catman
Date: Thu, 31 Mar 2005 23:37:59 +0200 (CEST)

 On Thu, 31 Mar 2005, Matteo Riondato wrote:
 
 > Are you still having this issue?
 > I really didn't manage to reproduce it.
 
 Yes, the issue persists in 5.3-RELEASE, in the following form (from 
 the weekly periodic log):
 
 Reformatting manual pages:
 find: .: Permission denied
 /usr/libexec/catman.local: no local-mounted manual directories found: /usr/share/man /usr/share/openssl/man /usr/local/man /usr/X11R6/man /usr/local/lib/perl5/5.8.5/man /usr/local/lib/perl5/5.8.5/perl/man
 
 Regards,
 Marko Kuntic

From: Matteo Riondato <rionda@gufi.org>
To: Marko Kuntic <mkuntic@mioc.hr>
Cc: bug-followup@freebsd.org
Subject: Re: conf/54170: error from weekly periodic script 330.catman
Date: Fri, 1 Apr 2005 07:57:22 +0200

 --ofZMSlrAVk9bLeVm
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Thu, Mar 31, 2005 at 11:37:59PM +0200, Marko Kuntic wrote:
 > On Thu, 31 Mar 2005, Matteo Riondato wrote:
 >=20
 > >Are you still having this issue?
 > >I really didn't manage to reproduce it.
 >=20
 > Yes, the issue persists in 5.3-RELEASE, in the following form (from=20
 > the weekly periodic log):
 >=20
 > Reformatting manual pages:
 > find: .: Permission denied
 > /usr/libexec/catman.local: no local-mounted manual directories found:=20
 > /usr/share/man /usr/share/openssl/man /usr/local/man /usr/X11R6/man=20
 > /usr/local/lib/perl5/5.8.5/man /usr/local/lib/perl5/5.8.5/perl/man
 
 Is your /usr NFS-mounted?
 Best Regards
 --=20
 Rionda aka Matteo Riondato
 Disinformato per default
 G.U.F.I. Staff Member (http://www.gufi.org)
 FreeSBIE Developer (http://www.freesbie.org)
 
 --ofZMSlrAVk9bLeVm
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.0 (FreeBSD)
 
 iD8DBQFCTOLC2Mp4pR7Fa+wRAtCzAKDKwrDzHLFULtBo0WES2PfZhkperACdENnk
 3ACxcd2JNG6AwQVwOFqKnok=
 =y0Gb
 -----END PGP SIGNATURE-----
 
 --ofZMSlrAVk9bLeVm--

From: Marko Kuntic <mkuntic@mioc.hr>
To: Matteo Riondato <rionda@gufi.org>
Cc: bug-followup@freebsd.org
Subject: Re: conf/54170: error from weekly periodic script 330.catman
Date: Fri, 1 Apr 2005 10:49:43 +0200 (CEST)

 On Fri, 1 Apr 2005, Matteo Riondato wrote:
 
 >>> Are you still having this issue?
 >>> I really didn't manage to reproduce it.
 >>
 >> Yes, the issue persists in 5.3-RELEASE, in the following form (from
 >> the weekly periodic log):
 >>
 >> Reformatting manual pages:
 >> find: .: Permission denied
 >> /usr/libexec/catman.local: no local-mounted manual directories found:
 >> /usr/share/man /usr/share/openssl/man /usr/local/man /usr/X11R6/man
 >> /usr/local/lib/perl5/5.8.5/man /usr/local/lib/perl5/5.8.5/perl/man
 >
 > Is your /usr NFS-mounted?
 
 No, nothing of the sort. On one system there's a single / partition, on 
 another it's an ordinary UFS2 mount. The error appears on both.
 
 Regards,
 Marko Kuntic

From: Matteo Riondato <rionda@gufi.org>
To: Marko Kuntic <mkuntic@mioc.hr>
Cc: bug-followup@freebsd.org
Subject: Re: conf/54170: error from weekly periodic script 330.catman
Date: Fri, 1 Apr 2005 14:01:44 +0200

 --kaF1vgn83Aa7CiXN
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Fri, Apr 01, 2005 at 10:49:43AM +0200, Marko Kuntic wrote:
 > >>Reformatting manual pages:
 > >>find: .: Permission denied
 > >>/usr/libexec/catman.local: no local-mounted manual directories found:
 > >>/usr/share/man /usr/share/openssl/man /usr/local/man /usr/X11R6/man
 > >>/usr/local/lib/perl5/5.8.5/man /usr/local/lib/perl5/5.8.5/perl/man
 
 Well...that's really strange, because periodic scripts are executed
 with root uid, so you should never get a permission denied.
 Do you use some sort of ACLs or MAC? can you please send the output of=20
 ls -la /usr/share/man | head -2
 ls -la /usr/share/openssl/man |head -2
 ls -la /usr/local/man | head -2
 ls -l /usr/X11R6/man | head -2
 ls -l /usr/local/lib/perl5/5.8.5/man |head -2
 ls -l /usr/local/lib/perl5/5.8.5/perl/man |head -2
 
 Thank you.
 Best Regards
 --=20
 Rionda aka Matteo Riondato
 Disinformato per default
 G.U.F.I. Staff Member (http://www.gufi.org)
 FreeSBIE Developer (http://www.freesbie.org)
 
 --kaF1vgn83Aa7CiXN
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.0 (FreeBSD)
 
 iD8DBQFCTTgn2Mp4pR7Fa+wRAuilAJ98qSE79sMeDKFKpAQSCLGbyX+LoACfd1tD
 3Lfzbn/2q6u8eRNDCQnQrec=
 =X/lF
 -----END PGP SIGNATURE-----
 
 --kaF1vgn83Aa7CiXN--

From: Marko Kuntic <mkuntic@mioc.hr>
To: Matteo Riondato <rionda@gufi.org>
Cc: bug-followup@freebsd.org
Subject: Re: conf/54170: error from weekly periodic script 330.catman
Date: Fri, 1 Apr 2005 14:26:28 +0200 (CEST)

 On Fri, 1 Apr 2005, Matteo Riondato wrote:
 
 > Well...that's really strange, because periodic scripts are executed
 > with root uid, so you should never get a permission denied.
 
 Yes, and when I run the script in question manually, as root, I get no 
 errors. The errors only occur when the script is run by cron - periodic.
 
 > Do you use some sort of ACLs or MAC? can you please send the output of
 > ls -la /usr/share/man | head -2
 > ls -la /usr/share/openssl/man |head -2
 > ls -la /usr/local/man | head -2
 > ls -l /usr/X11R6/man | head -2
 > ls -l /usr/local/lib/perl5/5.8.5/man |head -2
 > ls -l /usr/local/lib/perl5/5.8.5/perl/man |head -2
 
 Certainly:
 
 [mkuntic@zagreb.mioc.hr] <~>$ ls -la /usr/share/man | head -2
 total 556
 drwxr-xr-x  24 root  wheel     512 Mar 27 05:01 .
 [mkuntic@zagreb.mioc.hr] <~>$ ls -la /usr/share/openssl/man |head -2
 total 100
 drwxr-xr-x  7 root  wheel    512 Mar 27 05:01 .
 [mkuntic@zagreb.mioc.hr] <~>$ ls -la /usr/local/man | head -2
 total 116
 drwxr-xr-x  38 root  wheel   1024 Mar 27 05:01 .
 [mkuntic@zagreb.mioc.hr] <~>$ ls -l /usr/X11R6/man | head -2
 total 56
 drwxr-xr-x   2 man   wheel   512 Dec 27 17:43 cat1
 [mkuntic@zagreb.mioc.hr] <~>$ ls -l /usr/local/lib/perl5/5.8.5/man |head -2
 total 12
 drwxr-xr-x  2 root  wheel  4096 Feb 14 23:38 man3
 [mkuntic@zagreb.mioc.hr] <~>$ ls -l /usr/local/lib/perl5/5.8.5/perl/man 
 |head -2
 total 34
 drwxr-xr-x  2 root  wheel   9728 Dec 27 11:23 man3
 
 The filesystems are mounted with acls, but no acls are defined on the 
 directories in question.
 
 Regards,
 Marko Kuntic

From: Matteo Riondato <rionda@gufi.org>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: conf/54170: error from weekly periodic script 330.catman
Date: Fri, 1 Apr 2005 14:40:32 +0200

 --TYjWXklH5JTzT8n9
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Fri, Apr 01, 2005 at 02:26:28PM +0200, Marko Kuntic wrote:
 > The filesystems are mounted with acls, but no acls are defined on the=20
 > directories in question.
 
 What about ACLs on /usr/libexec?
 Best Regards
 --=20
 Rionda aka Matteo Riondato
 Disinformato per default
 G.U.F.I. Staff Member (http://www.gufi.org)
 FreeSBIE Developer (http://www.freesbie.org)
 
 --TYjWXklH5JTzT8n9
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.0 (FreeBSD)
 
 iD8DBQFCTUFA2Mp4pR7Fa+wRAqpuAJ9kpYW8cIS7pxBlNSsDOeHxXWG8YgCg2a4a
 ZQYe0H3owz9ryaM853iVX20=
 =4zd8
 -----END PGP SIGNATURE-----
 
 --TYjWXklH5JTzT8n9--

From: Matteo Riondato <rionda@gufi.org>
To: Marko Kuntic <mkuntic@mioc.hr>
Cc: bug-followup@freebsd.org
Subject: Re: conf/54170: error from weekly periodic script 330.catman
Date: Fri, 1 Apr 2005 19:33:11 +0200

 --tuFXEhzhBeitrIAu
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Fri, Apr 01, 2005 at 02:59:42PM +0200, Marko Kuntic wrote:
 > On Fri, 1 Apr 2005, Matteo Riondato wrote:
 >=20
 > >On Fri, Apr 01, 2005 at 02:26:28PM +0200, Marko Kuntic wrote:
 > >>The filesystems are mounted with acls, but no acls are defined on the
 > >>directories in question.
 > >
 > >What about ACLs on /usr/libexec?
 >=20
 > None, anywhere. All FSs are mounted with ACLs, but they're only really us=
 ed=20
 > on places in /home.
 
 You're absolutely sure, right?
 
 Please, try the attached patch (after this I really don't know what to
 do, because it seems that you're really the only one to have this
 problem..)
 
 --- catman.local.orig   Mon Mar 28 18:29:42 2005
 +++ catman.local        Fri Apr  1 19:29:33 2005
 @@ -49,7 +49,7 @@
  dirs=3D`echo $dirs | sed 's/:/ /g'`
  case X"$dirs" in X) echo "usage: $0 [options] directories ..."; exit 1;; e=
 sac
 
 -localdirs=3D`find -H $dirs -fstype local -type d -prune -print`
 +localdirs=3D`cd / && find -H $dirs -fstype local -type d -prune -print`
 
  case X"$localdirs" in
 	X)      echo "$0: no local-mounted manual directories found: $dirs"
 
 Best Regards
 --=20
 Rionda aka Matteo Riondato
 Disinformato per default
 G.U.F.I. Staff Member (http://www.gufi.org)
 FreeSBIE Developer (http://www.freesbie.org)
 
 --tuFXEhzhBeitrIAu
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.0 (FreeBSD)
 
 iD8DBQFCTYXX2Mp4pR7Fa+wRAo4eAJ0SOVC25YfLRnK0RBwbIi5BbYb0ugCg3DmW
 aqHRIRo9B307UaAIhrRP68w=
 =tuwI
 -----END PGP SIGNATURE-----
 
 --tuFXEhzhBeitrIAu--

From: Marko Kuntic <mkuntic@mioc.hr>
To: Matteo Riondato <rionda@gufi.org>
Cc: bug-followup@freebsd.org
Subject: Re: conf/54170: error from weekly periodic script 330.catman
Date: Fri, 1 Apr 2005 20:52:15 +0200 (CEST)

 On Fri, 1 Apr 2005, Matteo Riondato wrote:
 
 > You're absolutely sure, right?
 
 Absolutely.
 
 > Please, try the attached patch (after this I really don't know what to
 > do, because it seems that you're really the only one to have this
 > problem..)
 
 Believe it or not - it worked. With the patch there are no more errors. 
 However, I did start periodic weekly manually. We'll see what happens at the 
 end of the week, when cron hits it.
 
 Regards,
 Marko Kuntic

From: Matteo Riondato <rionda@gufi.org>
To: Marko Kuntic <mkuntic@mioc.hr>
Cc: bug-followup@freebsd.org
Subject: Re: conf/54170: error from weekly periodic script 330.catman
Date: Fri, 1 Apr 2005 20:57:48 +0200

 --b9dEYEwnDXkv9lSy
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Fri, Apr 01, 2005 at 08:52:15PM +0200, Marko Kuntic wrote:
 > On Fri, 1 Apr 2005, Matteo Riondato wrote:
 >=20
 > >Please, try the attached patch (after this I really don't know what to
 > >do, because it seems that you're really the only one to have this
 > >problem..)
 >=20
 > Believe it or not - it worked. With the patch there are no more errors.=
 =20
 > However, I did start periodic weekly manually. We'll see what happens at=
 =20
 > the end of the week, when cron hits it.
 
 It could have been a find bug, when find works on filesystem mounted
 with ACL, but I really don't know, and it's really strange that you're
 the only one to have this problem.
 I don't know if such a patch can be committed, someone with more power
 than me should say that :D
 Let us know if it will work at the end of the week (which
 is..mm..today :) )
 Best Regards
 --=20
 Rionda aka Matteo Riondato
 Disinformato per default
 G.U.F.I. Staff Member (http://www.gufi.org)
 FreeSBIE Developer (http://www.freesbie.org)
 
 --b9dEYEwnDXkv9lSy
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.0 (FreeBSD)
 
 iD8DBQFCTZms2Mp4pR7Fa+wRAskhAJwPJDr5oaQ+rc8PXtivz5nJ0aoAvQCcD33C
 Ti8+Aobxz2aRooGYpPRW3U8=
 =mI6s
 -----END PGP SIGNATURE-----
 
 --b9dEYEwnDXkv9lSy--

From: Marko Kuntic <mkuntic@mioc.hr>
To: Matteo Riondato <rionda@gufi.org>
Cc: bug-followup@freebsd.org
Subject: Re: conf/54170: error from weekly periodic script 330.catman
Date: Sun, 3 Apr 2005 10:28:23 +0200 (CEST)

 On Fri, 1 Apr 2005, Matteo Riondato wrote:
 
 >> However, I did start periodic weekly manually. We'll see what happens at
 >> the end of the week, when cron hits it.
 >
 > It could have been a find bug, when find works on filesystem mounted
 > with ACL, but I really don't know, and it's really strange that you're
 > the only one to have this problem.
 > I don't know if such a patch can be committed, someone with more power
 > than me should say that :D
 > Let us know if it will work at the end of the week (which
 > is..mm..today :) )
 
 It - failed. But with a different error:
 
 Reformatting manual pages:
 catman: .: Permission denied
 
 Regards,
 Marko Kuntic
>Unformatted:
