[WBEL-users] WBEL4, FAT32, and SELinux

Daniel J. Summers daniel at djs-consulting.com
Mon Jun 6 21:18:51 CDT 2005


Daniel J. Summers wrote:

> On my old machine (running WBEL3), I had a 2GB hard drive (hdb1) 
> formatted with FAT32.  On this drive, mounted at /mnt/drive_d and 
> using my user and group, I had my MySQL data, my Thunderbird files, 
> and the pages to be served by a web server.  I deleted the directory 
> /var/www/html, and instead made it a symbolic link to 
> /mnt/drive_d/wwwroot.  Everything worked swimmingly, whether the 
> machine was booted to WXP or WBEL.
>
> On this machine, whenever I try to bring httpd up, I get an error 
> telling me that "DocumentRoot must be a directory".  I've tried 
> modifying /etc/httpd/conf/httpd.conf to set the DocumentRoot to 
> /mnt/shared/wwwroot (which is the new mount point for my larger FAT32 
> partition), and I get the same error.  The reason I'm suspecting 
> SELinux is that I know it has mandatory access controls, and I'm 
> wondering if this may be preventing user "apache" from seeing 
> directories and files that are mounted with "summersd" as an owner.  
> (This didn't seem to be a problem in WBEL3.)

I seem to have found something that worked.  Yes, it was SELinux that 
was giving me fits.  By entering

/usr/sbin/setsebool -P httpd_disable_trans 1

I was able to then say "/sbin/service httpd start", and it worked.  I 
still haven't resolved my other issues (as I suspect I'll need to do 
something similar for MySQL), but I found this on a Red Hat list.

https://www.redhat.com/archives/fedora-selinux-list/2004-December/msg00109.html

-- 
*Daniel J. Summers*
E-mail - 	daniel at djs-consulting.com <mailto:daniel at djs-consulting.com>
*Web Sites:*
Business -  	http://www.djs-consulting.com <http://www.djs-consulting.com/>
Personal - 	http://www.djs-consulting.com/personal 
<http://www.djs-consulting.com/personal/>


GEEKCODE 3.12 GCS/IT d s-:+ a C++ L++ E--- W++ N++ o? K- w !O M--
V PS+ PE++ Y? !PGP t+ 5? X+ R* tv b+ DI++ D+ G- e h---- r+++ y++++


More information about the Whitebox-users mailing list