man-db permission denied

This forum is only for reproducible bugs with csf and lfd (i.e. not iptables problems, lack of understanding how to use a feature, etc). Posts must be accompanied with full technical details of the problem and how it can be recreated. Any posts not adhering to this, or not considered bugs, will be moved to the General Discussion (csf) forum.
Post Reply
tommyk
Junior Member
Posts: 8
Joined: 21 Oct 2010, 23:54

man-db permission denied

Post by tommyk »

After the update yesterday I get this on my debian box, only file in man1 is csf.1;

Cron <root@server> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
/etc/cron.daily/man-db:
/usr/bin/mandb: can't search directory /usr/local/share/man/man1/: Permission denied

I haven't changed any permissions on any var directories, at least not on purpose.
lpa
Junior Member
Posts: 7
Joined: 29 Jun 2013, 11:30

Permissions problem after CSF/LFD update

Post by lpa »

Yesterday I got a message that CSF/LFD was updated on my 2 servers.

This morning from both servers I got another message:

Code: Select all

/etc/cron.daily/man-db:
/usr/bin/mandb: can't search directory /usr/local/share/man/man1/: Permission denied
I checked directory

Code: Select all

/usr/local/share/man/man1/
and found 1 file inside of it: csf.1 and permission of this directory is:

Code: Select all

drw---S--
- instead of

Code: Select all

drwxr-sr-x
Why this uodate changed the permissions?
robfantini
Junior Member
Posts: 2
Joined: 18 Sep 2012, 22:47

Re: man-db permission denied

Post by robfantini »

we had same issue, using Debian Wheezy

here is ls -l d before fixing:

Code: Select all

# ls -ld /usr/local/share/man/man1
drw---S--- 2 root staff 4096 Jun 29 04:36 /usr/local/share/man/man1
ps - I checked and thre eis a lready a bug reported.
robfantini
Junior Member
Posts: 2
Joined: 18 Sep 2012, 22:47

Re: man-db permission denied

Post by robfantini »

Also another system did not have the issue.

/usr/local/share/man/man1 had other files besides csf.1 .

for the system witht the error, csf.1 is the only file in /usr/local/share/man/man1 .

so it looks like the issue is with mkdir .
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: man-db permission denied

Post by ForumAdmin »

We'll have a fix for this in the next release.For now the following should fix it:

Code: Select all

chmod 755 /usr/local/man/
chmod 755 /usr/local/man/man1/
chmod 644 /usr/local/man/man1/csf.1
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: man-db permission denied

Post by ForumAdmin »

This should now be fixed in csf v6.21:
http://blog.configserver.com/?p=1840
Post Reply