Visit The New, Modern Unix Linux Community

Unable to write to NFS mounted directory

Thread Tools Search this Thread
Operating Systems HP-UX Unable to write to NFS mounted directory
# 1  
Unable to write to NFS mounted directory


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

# 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 :
bscscx01.l17cmsp0> (/bscswork_bi/WORK/UMOBILE)
$ touch abc
touch: abc cannot create

How do I correct/edit this error?
# 2  
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.
# 3  
I changed the settings in /etc/dfs/dfstab of the nfs server to :

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 :

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  
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.

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #203
Difficulty: Medium
Perl is not an interpreted language.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

NFS write error on host xyz: Stale NFS file handle - Solaris 10

Oct 13 12:19:15 xyz nfs: NFS write error on host xyz: Stale NFS file handle. Oct 13 12:19:15 xyz nfs: (file handle: 68000000 1bc5492e 20000000 377c5e 1ce9395c 720a6203 40000000 bdfb0400) Oct 13 12:19:15 xyz nfs: NFS write error on host zyz: Stale NFS file handle. Oct 13 12:19:15 xyz nfs: ... (5 Replies)
Discussion started by: psychocandy
5 Replies

2. How to Post in the The UNIX and Linux Forums

NFS mounted and unmounted shell script

Hi, I making a script to check nfs mount and unmount options. After various findings, i didn't get any solution for that. Can you please help me in making the script. 1) I have used, if grep -qs '/var/JETSHARE' /proc/mounts; then echo "It's mounted." else echo "It's not mounted. ... (2 Replies)
Discussion started by: Santosh101
2 Replies

3. UNIX for Dummies Questions & Answers

Unable to write to a mounted NFS share

Hi All, I created a nfs share in the server(Solaris 10) with the following command and also updated the dfstab file share -F nfs -o rw=server_name2,anon=0 /to_share And then in the client(solaris 10) added the following command to mount the share mount -F nfs server_name1:/to_share... (4 Replies)
Discussion started by: Rossdba
4 Replies

4. UNIX for Dummies Questions & Answers

NFS mounted drive showing Write protected message

Hi We have two servers name A and B . I have a folder "Share" on A was NFS mounted to "B" server. I have set the ACL permissions using setfacl , so that both (One user from Server A and another user from Server B) users can read and write to the directory. Both users can create the... (0 Replies)
Discussion started by: rakeshkumar
0 Replies

5. Solaris

NFS mounted files

If I am not a system admin. How can I tell where a particular mounted file is mounted from. (12 Replies)
Discussion started by: Harleyrci
12 Replies

6. UNIX for Advanced & Expert Users

NFS export need to be able to write to directory but not list

My issue is I want an NFS share where I can write to the directory, but not list any of the files in there. (doesn't matter if someone knows the name can open the file). Have an NFS export for example: drwxrwxrw- 2 cranes staff 256 18 May 12:48 cranes The export will only... (1 Reply)
Discussion started by: Cranie
1 Replies

7. Programming

Not able to use NFS mounted directory as buffer for untar & unzip.

Hi, For a new requirement, we are trying to use NFS mounted directory as the buffer (TMP_DIR) for untar. Target OS- VxWorks Host OS - Windows Embedded. mounted a directory in wondows onto VxWorks. During untar process of GNU we come across utime, for chaning the time stamp of the... (0 Replies)
Discussion started by: suraj.bc
0 Replies

8. Solaris

NFS write error on host : Stale NFS file handle

:confused:Hi all When i see in the /var/adm/messages, i saw the following error unix: NFS write error on host : Stale NFS file handle. unix: (file handle: 45ca415 3e7 a0000 2c7f6 3ebfc25f a0000 2 3e49) It is using sunOS 5.7. Is anybody know what is this error? Is is related to any network... (2 Replies)
Discussion started by: AirWalker83
2 Replies

9. Shell Programming and Scripting

Testing if nfs filesystem is mounted

Hello, I have a backup script that backs up my system to a nfs mounted file system. The mount point on my local system is /backup. I want my script to check whether the nfs file system is mounted on /backup before actually backing anything up. Even if the nfs file system was NOT mounted,... (2 Replies)
Discussion started by: xadamz23
2 Replies

10. UNIX for Dummies Questions & Answers

How can I tell if a filesystem is NFS mounted?

I would like to know if there is a command or set of commands that I can run to verify that there are no 'extraneous' nfs mounted filesystems on our server. I didn't see anything in doing a search on NFS. We think that we may have some filesystems that are still nfs mounted when the link should... (3 Replies)
Discussion started by: giannicello
3 Replies

Featured Tech Videos