HP-UX

HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Unable to write to NFS mounted directory

👤 Login to reply

    #1  
Old 01-18-2018
anaigini45 anaigini45 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 15 May 2018, 4:11 AM EDT
Posts: 115
Thanks: 7
Thanked 0 Times in 0 Posts
Unable to write to NFS mounted directory

Hi,

I have exported a few nfs mounts from one server to the nfs clients.
This is my nfs server dfstab :

Code:
# cat /etc/dfs/dfstab
#       place share(1M) commands here for automatic execution
#       on entering init state 3.
#
#       share [-F fstype] [ -o options] [-d "<text>"] <pathname>
#       .e.g,
#       share  -F nfs  -o rw=engineering  -d "home dirs"  /home
share -F nfs -o rw=root -d "UMSCRIPTS" /UM_SCRIPTS
share -F nfs -o rw=l17cmsp01,rw=l17cmsp02,rw=l17cmsp03,rw=l17bip01,rw=l17bip02,rw=root,rw=bscs -d "bscswork_bi" /bscswork_bi
share -F nfs -o rw=l17cmsp01,rw=l17cmsp02,rw=l17cmsp03,rw=l17bip01,rw=l17bip02,rw=root,rw=bscs -d "bscswork" /bscswork

#

However, in the client, for eg, l17cmsp01, I am not able to write to the directory /bscswork_bi. It is already properly added to /etc/fstab.

The error is :
Code:
bscscx01.l17cmsp0> (/bscswork_bi/WORK/UMOBILE)
$ touch abc
touch: abc cannot create

How do I correct/edit this error?
Sponsored Links
    #2  
Old 01-18-2018
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 21 July 2018, 4:11 PM EDT
Location: Devon, UK
Posts: 1,924
Thanks: 291
Thanked 514 Times in 433 Posts
Check the access rights of the share directory on the host.

Check which user owns it.

Perhaps even, temporarily, set those rights to 777 to see if that fixes it and/or temporarily allow root access.

If it doesn't, we can look for some other reason.
Sponsored Links
    #3  
Old 01-18-2018
anaigini45 anaigini45 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 15 May 2018, 4:11 AM EDT
Posts: 115
Thanks: 7
Thanked 0 Times in 0 Posts
I changed the settings in /etc/dfs/dfstab of the nfs server to :

Code:
share -F nfs -o async,anon=65534 -d "bscswork_bi" /bscswork_bi

And now, I can write to that directory on the client(As user bscscx01). I also added the 'root' option as you suggested, however, I don't see any significant difference in the file created :

Code:
share -F nfs -o async,anon=65534,root=l17cmsp01 -d "bscswork_bi" /bscswork_bi

Before adding the root option on the server(above), I created a file in that directory (on the client) as user 'root', and the permission of the file was "65534:sys". After adding the root option, the permission was also the same.

How does the 'root' option in the command above help?
    #4  
Old 01-18-2018
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 21 July 2018, 4:11 PM EDT
Location: Devon, UK
Posts: 1,924
Thanks: 291
Thanked 514 Times in 433 Posts
The rw,root=l17cmsp01 should mean that when client 'l17cmsp01' connects they get 'root' rights on the volume thereby by-passing normal security. When I have a problem such as you described (unable to write), it's one of the things I (temporarily) try to prove that it is, indeed, some kind of access rights issue. If that doesn't allow me to write, then I look for a problem elsewhere.
Sponsored Links
👤 Login to reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unable to write to a mounted NFS share Rossdba UNIX for Dummies Questions & Answers 4 09-15-2014 03:07 PM
NFS mounted drive showing Write protected message rakeshkumar UNIX for Dummies Questions & Answers 0 06-14-2012 06:45 AM
NFS export need to be able to write to directory but not list Cranie UNIX for Advanced & Expert Users 1 05-18-2010 01:14 PM
Not able to use NFS mounted directory as buffer for untar & unzip. suraj.bc Programming 0 04-08-2008 07:11 AM
NFS write error on host : Stale NFS file handle AirWalker83 Solaris 2 03-27-2008 03:42 AM



All times are GMT -4. The time now is 05:02 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?