Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bad file descriptor

Status
Not open for further replies.

Nostradamus

Technical User
May 3, 2000
419
SE
I have a problem when trying to write to a nfs-mounted directory.
I get this error.
Can't copy file: Bad file descriptor (error 81)
What does that mean?

I'm using Openserver 5.0.5.

Sometimes I do manage to copy the file/s, but when I look into the directory, the file has zero size.

Ideas anyone?


/Sören
 
It generally means that the mount has gone sour and/or something has changed on the originating system that the nfs client system didn't know about.
try unmounting the filesystem then remounting it.

what options are you using when you mount the filesystem?

I have seen this reading files on an NFS mount of a remote cd that has been exported.
 
I mount the system using
mount -fNFS -onoexec hostname:/directory /usr/xxx
I've also tried without the non-execution part.
no luck.

I tried the opposite the other day.
Turning the sco machine into an nfs server instead of a client.
My /etc/exports looks like this...
/usr/xxx -access=hostname
I ran exportfs -av and /etc/xtab looks fine.
I've tried different settings in the /etc/exports file.

The nfs-client is a windows machine running NT Server.
I use Windows Services for Unix 3 to activate the client.

I want the windows box to be able to read and write to the nfs-share.
I want the unix-box to do the same. They should of course be able to delete each others files.

I can't get it working.
I can put files in the directory and delete the same.
The files unix put there can't be deleted by the windows users however.

I'm about to let gravity take care of this machine if it continue like this. Perhaps I should open the window and clear the area below.

/Sören
 
I've looked at hosts.equiv and tried entering the hostname... no luck.
Isn't that for R-commands and stuff?

/Sören
 
Who is the owner (unix side) of a file created with the windows machine on the NFS-share ?
Maybe a anon= option in the /etc/exports will help ?

Hope This Help
PH.
 
I've tried setting anon=0 as well as root=hostname without luck.

I use root to put files on the share.
I've used regular users as well.
haven't had any success yet.


/Sören
 
Each time you change options in /etc/exports you have to unexport (exportfs -uav) and re-export (exportfs -av).
You don't say what are the owner and permissions of a file created by a window user in the NFS-share.

Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top