• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3083
  • Last Modified:

cannot write to nfs mounted file system on netapp array

cannot write to nfs file system root# chown oracle:dba prodbackup

chown: prodbackup: Not owner


root# ls -al prodbackup

drwxr-xr-x 3 root root 4096 Aug 25 15:40 .
drwxr-xr-x 52 root root 1536 Aug 25 15:29 ..
drwxrwxrwx 2 root root 4096 Aug 25 15:40 .snapshot


root# chmod 777 prodbackup
chmod: WARNING: can't change prodbackup

As root I cannot create a directory on this nfs netapp file system and I want to change the owner/group
Why can't I do this as root?

0
bkreynolds48
Asked:
bkreynolds48
  • 3
  • 2
1 Solution
 
woolmilkporcCommented:
Hi,
This is called "root quashing"
Basically, if a user with ID 0 is accessing a share, this ID is converted to (usually) -2, to prevent remote root actions.
The share needs to be exported with the "no-root-quash" option.
Don't know whether this is possible with NetApp, however.

wmp
0
 
bkreynolds48Author Commented:
If it is possible on a netap how is that done?
0
 
jeremycrussellCommented:
First comment is correct.

In your "exports" file set sec=sys and root=hostname or IP of machine (if you use hostname, you'll want to probably add a host entry to the NetApp.

You can do this through GUI as well I think...

So, you end up with an entry like below.

/vol/nameofvol -sec=sys,rw,root=host

Then you can just reload your exports file using exportfs.
0
Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

 
woolmilkporcCommented:
- Connect to NetApp web-interface
   
- Modify NFS exports:

    NFS -> Manage Exports
     Select the volume in question
     Enable: Read-Write Access, Root Access, Security

That should do the trick.

0
 
woolmilkporcCommented:
For security reasons you can configure additionally (also in NFS -> Manage Exports:

Root Hosts: 1111.1111.111.0/24 (host or subnet)

0
 
bkreynolds48Author Commented:
Thanks so much - just started using netapp
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now