*nix Thread, NFS permissions in Technical; Hello all,
I am setting up a load balanced apache cluster,
I have an Iomega StorCenter px4-300r with NFS shares ...
-
22nd May 2012, 03:48 PM #1
NFS permissions
Hello all,
I am setting up a load balanced apache cluster,
I have an Iomega StorCenter px4-300r with NFS shares setup for shared storage between the nodes.
This is my first time really using NFS for something public facing. Sure I used it with FOG and other apps, but the defaults were fine for internal stuff.
I do have NFS access restricted to the IP’s of the nodes.
However my problem is I can’t seem to set permissions, once the nfs share is mounted any user has full read / write access.
How can I set individual file / folder permissions on an NFS share, the entire web root should not be writable by all.
I have read a number of tutorials regarding apache load balancing and shared storage but none of them mentioned permissions.
Also is there a better method for shared storage?
Thanks,
-
-
IDG Tech News
-
22nd May 2012, 04:04 PM #2 How are you mounting the NFS shares?
Are you using LDAP or NIS to keep guid/uids in sync?
Is there a firewall involved?
-
-
22nd May 2012, 06:43 PM #3 The Iomega is connected to AD for the windows shares, not sure if I can make that work for NFS or not, but the only user I need to set permissions for is www-data, and as far as I know it has always been UID 33, or perhaps that’s the group.
I’ve done some testing and I can change the permission of files but I cannot change the owner.
Here is some output
Code:
root@web01:/mnt/www/test# ls -l
total 4
-r--r--r-- 1 99 users 6 May 22 2012 test.html
root@web01:/mnt/www/test# chown www-data:www-data test.html
chown: changing ownership of `test.html': Operation not permitted
root@web01:/mnt/www/test# chmod u+w test.html
root@web01:/mnt/www/test# ls -l
total 4
-rw-r--r-- 1 99 users 6 May 22 2012 test.html
root@web01:/mnt/www/test#
A quick search for UID 99 says it is a special MAC user ID but, not sure it that’s the case here or not because as myself root, and www-data it still shows 99 as the owner.
I use fstab to mount the NFS
Code:
10.x.x.x:/nfs/www /mnt/www nfs
This is all internal so no firewalls.
I will continue to test, thanks for your help.
-
-
22nd May 2012, 11:09 PM #4 Check /etc/users on both hosts to see what they think uid 99 is supposed to be. The fact that you have numeric uid's showing in your ls output means the system you are running ls on doesn't know what uid 99 is supposed to mean.
-
SHARE: 
Similar Threads
-
By gibbo_ap in forum Windows Server 2008
Replies: 0
Last Post: 18th March 2009, 02:37 PM
-
By mac_shinobi in forum Wireless Networks
Replies: 24
Last Post: 21st May 2008, 12:36 PM
-
By jonny_valentine in forum Windows
Replies: 11
Last Post: 29th November 2005, 03:39 PM
-
Replies: 5
Last Post: 19th October 2005, 12:21 PM
-
By woody in forum Windows
Replies: 5
Last Post: 2nd August 2005, 11:15 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules