Bug 54170 - [patch] error from weekly periodic script 330.catman
Summary: [patch] error from weekly periodic script 330.catman
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 5.1-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-07 10:30 UTC by Marko Kuntic
Modified: 2018-05-21 02:10 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marko Kuntic 2003-07-07 10:30:07 UTC
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.

Fix: 

Unknown.
How-To-Repeat: Configure periodic to run the corresponding weekly duty.
Comment 1 Matteo Riondato 2005-03-31 18:04:42 UTC
Are you still having this issue? 
I really didn't manage to reproduce it.
Please, let me know.
Best Regards

-- 
Rionda aka Matteo Riondato
Disinformato per default
G.U.F.I. Staff Member (http://www.gufi.org)
FreeSBIE Developer (http://www.freesbie.org)
Comment 2 Marko Kuntic 2005-03-31 22:37:59 UTC
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
Comment 3 Matteo Riondato 2005-04-01 06:57:22 UTC
On Thu, Mar 31, 2005 at 11:37:59PM +0200, Marko Kuntic wrote:
> 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


Is your /usr NFS-mounted?
Best Regards
-- 
Rionda aka Matteo Riondato
Disinformato per default
G.U.F.I. Staff Member (http://www.gufi.org)
FreeSBIE Developer (http://www.freesbie.org)
Comment 4 Marko Kuntic 2005-04-01 09:49:43 UTC
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
Comment 5 Matteo Riondato 2005-04-01 13:01:44 UTC
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 
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
-- 
Rionda aka Matteo Riondato
Disinformato per default
G.U.F.I. Staff Member (http://www.gufi.org)
FreeSBIE Developer (http://www.freesbie.org)
Comment 6 Marko Kuntic 2005-04-01 13:26:28 UTC
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
Comment 7 Matteo Riondato 2005-04-01 13:40:32 UTC
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?
Best Regards
-- 
Rionda aka Matteo Riondato
Disinformato per default
G.U.F.I. Staff Member (http://www.gufi.org)
FreeSBIE Developer (http://www.freesbie.org)
Comment 8 Matteo Riondato 2005-04-01 18:33:11 UTC
On Fri, Apr 01, 2005 at 02:59:42PM +0200, Marko Kuntic wrote:
> On Fri, 1 Apr 2005, Matteo Riondato wrote:
> 
> >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?
> 
> None, anywhere. All FSs are mounted with ACLs, but they're only really used 
> 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=`echo $dirs | sed 's/:/ /g'`
 case X"$dirs" in X) echo "usage: $0 [options] directories ..."; exit 1;; esac

-localdirs=`find -H $dirs -fstype local -type d -prune -print`
+localdirs=`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
-- 
Rionda aka Matteo Riondato
Disinformato per default
G.U.F.I. Staff Member (http://www.gufi.org)
FreeSBIE Developer (http://www.freesbie.org)
Comment 9 Marko Kuntic 2005-04-01 19:52:15 UTC
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
Comment 10 Matteo Riondato 2005-04-01 19:57:48 UTC
On Fri, Apr 01, 2005 at 08:52:15PM +0200, Marko Kuntic wrote:
> On Fri, 1 Apr 2005, Matteo Riondato wrote:
> 
> >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.


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
-- 
Rionda aka Matteo Riondato
Disinformato per default
G.U.F.I. Staff Member (http://www.gufi.org)
FreeSBIE Developer (http://www.freesbie.org)
Comment 11 Marko Kuntic 2005-04-03 09:28:23 UTC
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
Comment 12 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:41 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 13 Alex Kozlov freebsd_committer freebsd_triage 2018-02-18 07:11:07 UTC
The catman utility was removed in FreeBSD 12.
Comment 14 Eitan Adler freebsd_committer freebsd_triage 2018-05-21 02:10:41 UTC
We've since removed catman pages entirely. See r323996 and related.