Operating System - HP-UX
1833276 Members
2977 Online
110051 Solutions
New Discussion

unable to read from the file

 

unable to read from the file

hi,
the file manager of CDE gives a message when i try to open a file:
"unable to read from the file"
i checked the permissions,
and they're ok...i cannot read even while i am root user...
any idea?
by the way, the directory is an NFS mounted file system!

thx...
it's all a game
10 REPLIES 10

Re: unable to read from the file

an ack:
i can read the file via vi or more, etc...
it's all a game
Leif Halvarsson_2
Honored Contributor

Re: unable to read from the file

Hi,
You perhaps don't have root permissions for this filesystem on the NFS server. This is set in the /etc/exports file on the server.
Example:
/exports/opt -anon=65534,root=fem8:fem6

Re: unable to read from the file

nope,
i have all the permissions ok...
it's all a game
Leif Halvarsson_2
Honored Contributor

Re: unable to read from the file

Hi,
Can you make a copy of the file ?
Try to do this and see if you get the same behaviour. If not, delete the original file and rename the copy to the original name.
RikTytgat
Honored Contributor

Re: unable to read from the file

Hi,

Have you logged into CDE with root user? It is the user you logged in with that starts the CDE file manager, so it is that user that cannot access the file, not root.

Bye,
Rik

Re: unable to read from the file

hi,
this doesn't work...
also, i moved the file to a
local filesystem, it didn't work either,
it's so much interesting!
no file under nfs mounted filesystem works...even if i copy them to a local filesystem.. but i can esit all of them with vi...
it's all a game

Re: unable to read from the file

hi,
i am logging out and then logging in with different users...i am not trying within the same session...
it's all a game

Re: unable to read from the file

oops,
i noticed something...
i cannot read the files on the nfs server, too...

??
however, everything seems ok...
it's all a game
James Odak
Valued Contributor

Re: unable to read from the file

check the permissions of the file and directory on the server that is exporting the NFS mount not on the server mounting/importing the NFS mount


Jim
Steven E. Protter
Exalted Contributor

Re: unable to read from the file

If you can, restart both servers.

NFS may be hosed. ps -ef | grep nfsd for the daemon.

If you can't do a restart, you should try this.

/sbin/init.d/nfs.core stop
/sbin/init.d/nfs.server stop
/sbin/init.d/nfs.core start
/sbin/init.d/nfs.server start

on the server.

You might want to do the same thing for client on the client.

If other NFS connects are working, you might want to reread the prior suggestions and try exportfs -a again after checking /etc/exports

Then get more basic, make sure you have solid ping connectivity between the servers. A network address conflict could be causing issues.

P
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com