This is on a Sun Solaris 10 system.
/etc/exports doesn't exist.
When I try and mount as oracle I get the following error:
nfs mount: insufficient privileges
Main Topics
Browse All TopicsHello,
I'm having issues granting read/write access to a specific user from my NFS share.
Case1:
share -F nfs -o rw /data/oracle/restore
mount -F nfs remotesvr:/data/oracle/res
This works but I'm unable to create files or folders with my "oracle" user. Oracle is the folder owner on both servers!
Case2:
share -F nfs -o rw=oracle /data/oracle/restore - works!
mount -F nfs remotesvr:/data/oracle/res
***nfs mount: mount: /data/oracle/oradata/resto
How do I resolve this issue and allow my oracle user to have full access to the shares????
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
if the /etc/exports file does not exits then there are no exports.
Please read up on the following;
http://www.linuxdocs.org/H
the layout of the linux & sunos version are the same.
if the root account is used to mount then the root user will enter the remote system as nobody. (this is a safety precaution).
See man 5 exports for details.
No,
This is the exact reason why Sun designed NIS (kind of very very basic LDAP) so all identities in the network are the same....
you could change File ownership using find , replace the OldUid & NewUid
find /data/oracle -user OldUid -exec chown NewUid '{}' \;
BTW the same applies to group.
If the uid is used inside the database this also needs some updating.
BTW, on Solaris 10, shares are defined in /etc/dfs/dfstab, not /etc/exports. It does the same thing, but the implementation is quite different.
On Linux, you can use a trick to map *any* connecting user to the uid you want (anon flag), but that's pretty dangerous and undesirable.
Follow noci's advice (although I'd add the -h flag to chown so linked-to files can't get screwed up) to change the uid and gid on the *mounting* server, along with the relevant entries in /etc/passwd & /etc/group.
For example, the server were you've set up the shares, the 'oracle' user has a uid & gid of 1010. On the new/mounting server, user 'oracle' has a uid & gid of 1040, you need to switch over everything to uid/gid 1010:
find /data/oracle -user 1040 -exec chown -h 1010 '{}' \;
find /data/oracle -group 1040 -exec chgrp -h 1010 '{}' \;
find /tmp -user 1040 -exec chown -h 1010 '{}' \;
find /tmp -group 1040 -exec chgrp -h 1010 '{}' \;
find /var/tmp -user 1040 -exec chown -h 1010 '{}' \;
find /var/tmp -group 1040 -exec chgrp -h 1010 '{}' \;
vi /etc/passwd (change the two "1040"s in user oracle's line to "1010")
vi /etc/group (change the one occurrence of "1040" in group oracle's line to "1010")
Kill any processes user 'oracle' may be running on the new/mounting server (reboot if possible - not necessary, but if you don't know what's going on on your system, its the best thing to do).
If you change all this on the new/mounting server, you shouldn't need to make any changes on the original/sharing server to the oracle tables.
NOTE - if the uid/gid of oracle is already being used on the new server (in my example, uid/gid 1010 is already used, let's say be user "bob"), then you'll most like have to change *that* user's files and system files (in /etc) to an unused uid before you do all this. Otherwise, user "bob" might be able to access all of the oracle data.
Business Accounts
Answer for Membership
by: nociPosted on 2009-09-01 at 12:31:10ID: 25235069
check what is in /etc/exports file:
on remotesvr,
there should be an entry like
/data... yourhostname(rw)
if not then that probably is a problem (Oh and you need to do the mount as oracle user, not root).