Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fopen: Permission denied on mandb cron
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
SwordArMor
n00b
n00b


Joined: 21 Feb 2015
Posts: 56
Location: Bretagne

PostPosted: Thu Apr 30, 2015 8:08 am    Post subject: fopen: Permission denied on mandb cron Reply with quote

Hello,

I get a permission denied on the daily cron for mandb but I don’t modified the cron and I can’t find permission error in the files.

Code:
airmure ~ # mandb --debug
ruid=0, euid=13
drop_effective_privs()
++priv_drop_count = 1
From the config file /etc/man_db.conf:

Mandatory mandir `/usr/man'.
Mandatory mandir `/usr/share/man'.
Mandatory mandir `/usr/local/share/man'.
Path `/bin' mapped to mandir `/usr/share/man'.
Path `/usr/bin' mapped to mandir `/usr/share/man'.
Path `/sbin' mapped to mandir `/usr/share/man'.
Path `/usr/sbin' mapped to mandir `/usr/share/man'.
Path `/usr/local/bin' mapped to mandir `/usr/local/man'.
Path `/usr/local/bin' mapped to mandir `/usr/local/share/man'.
Path `/usr/local/sbin' mapped to mandir `/usr/local/man'.
Path `/usr/local/sbin' mapped to mandir `/usr/local/share/man'.
Path `/usr/X11R6/bin' mapped to mandir `/usr/X11R6/man'.
Path `/usr/bin/X11' mapped to mandir `/usr/X11R6/man'.
Path `/usr/games' mapped to mandir `/usr/share/man'.
Path `/opt/bin' mapped to mandir `/opt/man'.
Path `/opt/sbin' mapped to mandir `/opt/man'.
Global mandir `/usr/man', catdir `/var/cache/man/fsstnd'.
Global mandir `/usr/share/man', catdir `/var/cache/man'.
Global mandir `/usr/local/man', catdir `/var/cache/man/oldlocal'.
Global mandir `/usr/local/share/man', catdir `/var/cache/man/local'.
Global mandir `/usr/X11R6/man', catdir `/var/cache/man/X11R6'.
Global mandir `/opt/man', catdir `/var/cache/man/opt'.
Added section `1'.
Added section `1p'.
Added section `8'.
Added section `2'.
Added section `3'.
Added section `3p'.
Added section `4'.
Added section `5'.
Added section `6'.
Added section `7'.
Added section `9'.
Added section `0p'.
Added section `tcl'.
Added section `n'.
Added section `l'.
Added section `p'.
Added section `o'.
Added section `1x'.
Added section `2x'.
Added section `3x'.
Added section `4x'.
Added section `5x'.
Added section `6x'.
Added section `7x'.
Added section `8x'.
`/usr/man'   `'   `1'
`/usr/share/man'   `'   `1'
`/usr/local/share/man'   `'   `1'
`/bin'   `/usr/share/man'   `0'
`/usr/bin'   `/usr/share/man'   `0'
`/sbin'   `/usr/share/man'   `0'
`/usr/sbin'   `/usr/share/man'   `0'
`/usr/local/bin'   `/usr/local/man'   `0'
`/usr/local/bin'   `/usr/local/share/man'   `0'
`/usr/local/sbin'   `/usr/local/man'   `0'
`/usr/local/sbin'   `/usr/local/share/man'   `0'
`/usr/X11R6/bin'   `/usr/X11R6/man'   `0'
`/usr/bin/X11'   `/usr/X11R6/man'   `0'
`/usr/games'   `/usr/share/man'   `0'
`/opt/bin'   `/opt/man'   `0'
`/opt/sbin'   `/opt/man'   `0'
`/usr/man'   `/var/cache/man/fsstnd'   `-1'
`/usr/share/man'   `/var/cache/man'   `-1'
`/usr/local/man'   `/var/cache/man/oldlocal'   `-1'
`/usr/local/share/man'   `/var/cache/man/local'   `-1'
`/usr/X11R6/man'   `/var/cache/man/X11R6'   `-1'
`/opt/man'   `/var/cache/man/opt'   `-1'
`1'   `'   `-5'
`1p'   `'   `-5'
`8'   `'   `-5'
`2'   `'   `-5'
`3'   `'   `-5'
`3p'   `'   `-5'
`4'   `'   `-5'
`5'   `'   `-5'
`6'   `'   `-5'
`7'   `'   `-5'
`9'   `'   `-5'
`0p'   `'   `-5'
`tcl'   `'   `-5'
`n'   `'   `-5'
`l'   `'   `-5'
`p'   `'   `-5'
`o'   `'   `-5'
`1x'   `'   `-5'
`2x'   `'   `-5'
`3x'   `'   `-5'
`4x'   `'   `-5'
`5x'   `'   `-5'
`6x'   `'   `-5'
`7x'   `'   `-5'
`8x'   `'   `-5'
mandb: attention : la variable $MANPATH est positionnée, /etc/man_db.conf est ignoré
manpath=/usr/man:/usr/share/man:/usr/local/man:/usr/local/share/man:/usr/X11R6/man:/opt/man
attention : /usr/man: Aucun fichier ou dossier de ce type
adding /usr/share/man to manpathlist
attention : /usr/local/man: Aucun fichier ou dossier de ce type
adding /usr/local/share/man to manpathlist
attention : /usr/X11R6/man: Aucun fichier ou dossier de ce type
attention : /opt/man: Aucun fichier ou dossier de ce type
final search path = /usr/share/man:/usr/local/share/man
--priv_drop_count = 0
regain_effective_privs()
Effacement des entrées inutiles de /usr/share/man en cours…
database /var/cache/man/index.db is read-only
Traitement des pages du manuel sous /usr/share/man…
fopen: Permission non accordée
airmure ~ # ls -lh /var/cache/man/index.db
-rw-rw-r-- 1 root man 2,4M 24 oct.   2014 /var/cache/man/index.db
airmure ~ # df -h
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
/dev/sda3          138G     38G   93G  30% /
tmpfs              799M    1,2M  798M   1% /run
dev                 10M       0   10M   0% /dev
shm                3,9G     12K  3,9G   1% /dev/shm
cgroup_root         10M       0   10M   0% /sys/fs/cgroup
/dev/sdc1          459G    172G  264G  40% /home
/dev/sda1          124M    101M   18M  86% /boot
airmure ~ # mount | grep sda3
/dev/sda3 on / type ext4 (rw,noatime,data=ordered)


Do you have an idea about this issue?
Back to top
View user's profile Send private message
YourNameInHere
n00b
n00b


Joined: 28 Mar 2007
Posts: 8

PostPosted: Mon Jun 22, 2015 1:51 pm    Post subject: Reply with quote

@SwordArMor

little bit late ... i also run into this problem.
Looks like this happens due to wrong permissions:

Code:

# chown -R man /var/cache/man
# ls -ld /var/cache/man
drwxr-sr-x 1 man root 472 Jun 22 03:10 /var/cach


fixed it for me.
think it was root root before - but i'm not sure :(

can someone check if this happens on a fresh install (my boxes are all made with custom-stage4 and crypto-root - so not sure if some of my scripts kill the permissions)?
Maybe we need to open a bug report ...

thx

YourNameInHere
Back to top
View user's profile Send private message
SwordArMor
n00b
n00b


Joined: 21 Feb 2015
Posts: 56
Location: Bretagne

PostPosted: Mon Jun 22, 2015 2:26 pm    Post subject: Reply with quote

Don’t care about the latency, it’s just a cron ;)

It was root:man here, I passed it to man:man. Let’s see tomorrow how the cron will react :p

EDIT:
I haven’t receive any email about mandb cron, so the problem is fixed for me. Thank you :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum