SOLUTION: It's not just the file permissions that are important, but the permissions on the directories above it in the filesystem hierarchy. In this case, the kolab user didn't have permission to access certain directories above the directory and files in question.
This was producing the error.
Thank you for anyone who took the time to read this post, but didn't know the answer. In the future, hopefully someone will find it and not repeat the same mistake.
I'm getting a permission denied error on an attempted read of a file with permissions 777.
Because the file is already marked 777, I'm at a loss as to how to resolve the permissions issue.
It is preventing the installation of Kolab
under Fedora 8.
The Kolab installation script is run as root, but later on continues the install as a new user it created (kolab). Because of this the installation files should be world readable (this is a known issue with the installer), and they are. Despite this, I am still getting the following error:
/kolab/bin/openpkg build -kKBuZ -r "/tmp/install-kolab.15685.24252.4801.31519" -p "amd64-fedora8-kolab" -D openldap::with_pth=no -D sasl::with_ldap -D sasl::with_login -D sasl::with_ntlm -D postfix::with_sasl -D postfix::with_ssl -D postfix::with_ldap -D imapd::with_kolab_nocaps
openpkg-tools openldap postfix kolabd kolab-filter kolab-freebusy kolab-webadmin fbview-kronolith horde-kolab-client | sh
openpkg:build:FATAL: cannot open '/tmp/install-kolab.15685.24252.4801.31519/00INDEX.rdf' (Permission denied)
"Permission Denied". The file is world readable though!
[root@Wittgenstein Kolab]# ls -l /tmp/install-kolab.15685.24252.4801.31519/00INDEX.rdf
lrwxrwxrwx 1 root root 54 2008-09-03 11:08 /tmp/install-kolab.15685.24252.4801.31519/00INDEX.rdf -> /home/jguilbault/reference/downloads/Kolab/00INDEX.rdf
[root@Wittgenstein Kolab]# ls -l /home/jguilbault/reference/downloads/Kolab/00INDEX.rdf
-rwxrwxrwx 1 jguilbault jguilbault 295935 2008-09-02 12:01 /home/jguilbault/reference/downloads/Kolab/00INDEX.rdf
THINGS I'VE CHECKED:
1. SELinux is in permissive mode.
2. The Kolab user exists in /etc/passwd:
[root@Wittgenstein ~]# cat /etc/passwd | grep kolab
kolab:x:19414:19414:/kolab OpenPKG (management):/kolab:/kolab/lib/openpkg/bash
kolab-r:x:19415:19415:/kolab OpenPKG (restricted):/kolab:/kolab/lib/openpkg/bash
kolab-n:x:19416:19416:/kolab OpenPKG (non-privileged):/kolab:/kolab/lib/openpkg/bash
3. The Kolab user exists in /etc/group:
4. Frankly, I don't know what else to do. As far as I know a file with permissions 777 should be world readable & writeable? What am I doing wrong?
Thank you for your time, and I greatly appreciate any help anyone can offer.