- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- NFS, why I can not list the contents?!
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2001 11:46 AM
тАО07-12-2001 11:46 AM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2001 12:00 PM
тАО07-12-2001 12:00 PM
Solution/sbin/init.d/nfs.server stop
There is no reason for the NFS server daemons to be running. They aren't accomplishing anything.
After you do that try doing an ls or ll again and see what happens.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2001 12:22 PM
тАО07-12-2001 12:22 PM
Re: NFS, why I can not list the contents?!
Patrick is correct there is no need for your unix box to be an NFS server.
You did not mention which NFS server package for NT that you are using. We use Omni/NFS from Xlink Technologies and it requires that you provide a mapping of uid's to NT users. This mapping is done on the NT server and could be the source of your problems.
The other thing I would do is unmount the NFS
share on the unix box and look at the permissions of the mountpoint. Change them to 777 and remount the share.
Hope this helps, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2001 12:26 PM
тАО07-12-2001 12:26 PM
Re: NFS, why I can not list the contents?!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2001 12:39 PM
тАО07-12-2001 12:39 PM
Re: NFS, why I can not list the contents?!
/sbin/init.d/nfs.server stop
killing nfsd
killing rpc.mountd
Then ll again, nothing changed.
Any more idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2001 01:10 PM
тАО07-12-2001 01:10 PM
Re: NFS, why I can not list the contents?!
how is the authentication arranged between the NT server and HP-UX? Is the directory exported for root on the NT box? Is the directory readable/writable by anyone?
Just more questions, and no solutions ;-)
cu l8r, Edgar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2001 01:16 PM
тАО07-12-2001 01:16 PM
Re: NFS, why I can not list the contents?!
umount /usr/NFS
ll -d /usr/NFS
(If permissions are anything other than drwxrwxrwx for /usr/NFS do a 'chmod 777 /usr/NFS')
mount /usr/NFS
ll -d /usr/NFS
(check permissions and owner/group on /usr/NFS again, make sure you have appropriate permissions to do what you need to do)
cd /usr/NFS
bdf .
ll
If you could send the output of the above if it still doesn't work, it may help us to better help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2001 02:00 PM
тАО07-12-2001 02:00 PM
Re: NFS, why I can not list the contents?!
# umount /usr/NFS
# mkdir /usr/NFSNT (another new mount point for same file system)
# mount mis_server:/E/NFS /usr/NFSNT
The result was exactly same with the previous one.
Here is the output following Patrick's suggestion:
# umount /usr/NFS
# ll -d /usr/NFS
drwxrwxrwx 2 root sys 96 Jul 12 12:12 /usr/NFS
# mount /usr/NFS
# ll -d /usr/NFS
d------rwx 2 root root 64 Jul 12 10:31 /usr/NFS
(Unfortunately, the permissions are not what I am looking for)
# cd /usr/NFS
# bdf .
Filesystem Kbytes used avail %used Mounted on
mis_server:/E/NFS 26627708 3217056 23410652 12% /usr/NFS
# ll
total 0
Thanks a lot for your helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2001 02:08 PM
тАО07-12-2001 02:08 PM
Re: NFS, why I can not list the contents?!
One one your ll listings is crucial:
ll -d /usr/NFS
d------rwx 2 root root 64 Jul 12 10:31 /usr/NF
Notice that the directory is owned by root by root does not have read, write, or search permission on that mounted directory. If your NT NFS server has a feature like allow root access, you need to enable it. It would appear that a non-root, non-root group user could do an ll -d /usr/NFS and would get a listing.
You have some permissions setup work on the NT side to do.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2001 10:57 AM
тАО07-13-2001 10:57 AM
Re: NFS, why I can not list the contents?!
This morning I talked to one of our senior NT adms, he checked the NFS server on NT side, and let me to go to /NFS directly instead of /E/NFS:
umount /usr/NFS
mount mis_server:/NFS /usr/NFS
It works. Obviously the bug is on the NT box.
Many thanks for your guys help. Patrick, Clay, you are very helpful, thanks a lot. You are real experts!