Re: apache woes forbidden strange

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dan wrote:
Hi guys.

I am creating a yum repo using apache and have copied all the rpm files into
a dir and everything seems to go fine.

However when try to access the file
http://localhost/yum/Fedora/Core/4/...8.6-15.i386.rpm<http://localhost/yum/Fedora/Core/4/base/perl-5.8.6-15.i386.rpm>
i always get an access denied error.

all the other files in the directory access filne, and i have given all
permissions to that particular file in an attempt to get apache working.

Is there anything i have missed or is this a known apache bug and will just
have to live with it?

The apache log has entries
[Sun Feb 12 14:10:04 2006] [error] [client 127.0.0.1] (13)Permission denied:
access to /yum/Fedora/Core/4/base/perl-5.8.6-15.i386.rpm denied

the file permissions are set at
-rwsrwxrwt 1 geekbox root 11766129 Feb 12 12:51 perl-5.8.6-15.i386.rpm
Bloody hell!
chown root.root
chmod 644
Better
chown -R 0.0 /yum
find /yum -type d -exec chmod 755 {} \;
find /yum -type f -exec chmod 644 {} \;

You could also check for selinux messages.

You really do _not_ want it world-writable. Nor are set-gid or set-uid or sticky appropriate. Nor executable.


--

Cheers
John

-- spambait
1aaaaaaa@xxxxxxxxxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxxxxxxxxx
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/

do not reply off-list


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux