+ Post New Thread
Results 1 to 4 of 4
*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 ...
  1. #1
    ADMaster's Avatar
    Join Date
    May 2012
    Posts
    326
    Thank Post
    5
    Thanked 33 Times in 28 Posts
    Rep Power
    23

    Question 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,

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    How are you mounting the NFS shares?
    Are you using LDAP or NIS to keep guid/uids in sync?
    Is there a firewall involved?

  3. #3
    ADMaster's Avatar
    Join Date
    May 2012
    Posts
    326
    Thank Post
    5
    Thanked 33 Times in 28 Posts
    Rep Power
    23
    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.

  4. #4

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    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:
+ Post New Thread

Similar Threads

  1. NFS Permissions Fun
    By gibbo_ap in forum Windows Server 2008
    Replies: 0
    Last Post: 18th March 2009, 02:37 PM
  2. Transfer User Area's - Permissions Issues ??
    By mac_shinobi in forum Wireless Networks
    Replies: 24
    Last Post: 21st May 2008, 12:36 PM
  3. Security Permissions Missing
    By jonny_valentine in forum Windows
    Replies: 11
    Last Post: 29th November 2005, 03:39 PM
  4. Permissions not working
    By mark in forum Windows
    Replies: 5
    Last Post: 19th October 2005, 12:21 PM
  5. Keep them permissions!
    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
  •