Troubles with NFS Share being Accessible via Apache and the Web
I have two Linux systems. On one I have a few NFS exports and on the other I'm mounting those NFS exports. All exports are configured the same way and mounted the same way. The issue I have is that on one of them (yes, ONLY ONE) the owner of the directory changes after it has been mounted. For example, I crated a directory called Z-Car_Stuff and it's owned by root (this is located in my Apache directory structure as the files will be served up to the web); after I mount the NFS share the owner of the Z-Car_Stuff directory changes to another user on that system. WHY!? How do I fix this so that it does not change?
Here are the lines from the fstab: Code:
warehouse2:/mp3 /mp3s nfs rsize=8192,wsize=8192,timeo=14 0 0 Code:
[root@guardian allan_and_rosanne]# ll Code:
[root@guardian allan_and_rosanne]# ll Code:
[root@warehouse etc]# cat exports |
The user ID of the owner on the server corresponds with a different username on the client. Change one or the other, but note this might effect other ownerships elsewhere.
|
Output of an ls -n command before mounting:
Code:
[root@guardian allan_and_rosanne]# ls -n Code:
[root@guardian allan_and_rosanne]# ls -n On the NFS server the UID and GID are the same for both users (root and apape), in fact all UID and GID values are in sync between the two systems. Further, here is what groups apape is a member of: Code:
[root@guardian allan_and_rosanne]# su apape Code:
[root@guardian allan_and_rosanne]# id apache On the NFS server the info on the two exports are as follows: Code:
drwxr-xr-x 467 apape apape 20480 Jun 12 20:47 mp3 Code:
drwxr-xr-x 467 500 500 20480 Jun 12 20:47 mp3 Code:
drwxr-xr-x 149 apape apape 4096 Sep 11 2006 Z-Stuff Code:
drwxr-xr-x 149 500 500 4096 Sep 11 2006 Z-Stuff Is there something else that I'm missing here? |
I finally figured this out!!! I was an Apache config issue all along...I had to add the following lines to the appropriate VirtualHost on my system and all is good!
Code:
<Directory /www/pape/allan_and_rosanne/Z-Car_Stuff> |
All times are GMT -5. The time now is 04:32 AM. |