Unix/Linux Go Back    


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

HP-UX


Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 01-18-2018   -   Original Discussion by anaigini45
anaigini45's Unix or Linux Image
anaigini45 anaigini45 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 22 February 2018, 10:02 PM EST
Posts: 106
Thanks: 4
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 Unix and Linux 01-18-2018   -   Original Discussion by anaigini45
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 23 February 2018, 3:25 PM EST
Location: Devon, UK
Posts: 1,786
Thanks: 260
Thanked 466 Times in 398 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 Unix and Linux 01-18-2018   -   Original Discussion by anaigini45
anaigini45's Unix or Linux Image
anaigini45 anaigini45 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 22 February 2018, 10:02 PM EST
Posts: 106
Thanks: 4
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 Unix and Linux 01-18-2018   -   Original Discussion by anaigini45
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 23 February 2018, 3:25 PM EST
Location: Devon, UK
Posts: 1,786
Thanks: 260
Thanked 466 Times in 398 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
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 04:07 PM
NFS mounted drive showing Write protected message rakeshkumar UNIX for Dummies Questions & Answers 0 06-14-2012 07: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 02:14 PM
Not able to use NFS mounted directory as buffer for untar & unzip. suraj.bc Programming 0 04-08-2008 08:11 AM
NFS write error on host : Stale NFS file handle AirWalker83 Solaris 2 03-27-2008 04:42 AM



All times are GMT -4. The time now is 04:33 PM.