Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

NFS, why I can not list the contents?!

Victor_5
Trusted Contributor

NFS, why I can not list the contents?!

I met a very strange problem.

Background:
I set up a NFS through SAM a couple of monthes ago, the file system located in NT server, which name is mis_server, the directory on NT is /E/NFS, here is the bdf said:
mis_server:/E/NFS 26627708 3195264 23432444 12% /usr/NFS

The original problem is:
When I try to change some files permission, it failed.
For example:
chmod 777 filename
chmod: can't change filename: Not owner

I knew the reason why I can not do it is that the UNIX box only is a client in this case, so I did the following step:
1. umount /usr/NFS
2. exportfs -va
3. in /etc/rc.config.d/nfsconf
changed "PCNFS_SERVER=0" to "1"
4. /sbin/init.d/nfs.client stop
5. /sbin/init.d/nfs.server stop
6. /sbin/init.d/nfs.client start
7. /sbin/init.d/nfs.server start

After that, I can see /usr/NFS through bdf or mount -v, however, one more question happened.

I can not list the contents of /usr/NFS

cd /usr/NFS
ll
It says "Total 0"

However, if I go to the sub-directory, it is OK although I still can not change the permission. For example:
cd /usr/NFS/flash
ll
It says:
total 110
----rwxrwx 1 nobody 4294967295 81 Jul 12 14:24 cgflash.txt
----rwxrwx 1 nobody 4294967295 90015 Jul 12 14:24 fsdet.txt
...

I really confused, anybody has clue?
3 REPLIES
John Bolene
Honored Contributor

Re: NFS, why I can not list the contents?!

Do you have 777 on the directory?
Users have to be able to read, write, and execute to list and modify files.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Satish Y
Trusted Contributor

Re: NFS, why I can not list the contents?!

It seems you need to provide read/write(rw) permissions to client. for that edit ur /etc/exports file and change access permission to either rw or root(be careful for this permission as client can do anything on this directory).

Hope this solves your problem

Cheers...
Satish.
Difference between good and the best is only a little effort
Satish Y
Trusted Contributor

Re: NFS, why I can not list the contents?!

Sorry, I forgot to mention,
u need to run exportfs -a on server and stop/start NFS server and client.

Cheers...
Satish.
Difference between good and the best is only a little effort