- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Permission denied on linux NFS
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
Forums
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
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
тАО10-31-2003 06:37 AM
тАО10-31-2003 06:37 AM
Permission denied on linux NFS
I have one linux's file system mounted on a HP-UX server like NFS file system, but.. if i want to change into this file system i get th folowing message
oragt01 / >cd /linux
sh: /linux: Permission denied.
Why ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2003 06:42 AM
тАО10-31-2003 06:42 AM
Re: Permission denied on linux NFS
Make sure your UID is the same on both ends, particularly user number on Linux box must be the same as on the other end.
Check also that NFS has been restarted after export on Linux box...
hth
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2003 07:32 AM
тАО10-31-2003 07:32 AM
Re: Permission denied on linux NFS
on Linux
service nfs restart
HP
/sbin/init.d/nfs.server stop
/sbin/init.d/nfs.core stop
/sbin/init.d/nfs.server start
/sbin/init.d/nfs.core start
exportfs -av
after making NFS changes on the HP side:
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2003 09:22 AM
тАО10-31-2003 09:22 AM
Re: Permission denied on linux NFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2003 01:43 PM
тАО10-31-2003 01:43 PM
Re: Permission denied on linux NFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2003 02:48 AM
тАО11-03-2003 02:48 AM
Re: Permission denied on linux NFS
The linux directory was exported with "root_squash" (which is the default).
In this case, the remote root user id is "squashed" to the user "nobody" on the linux server. Then, the user "nobody" must have the appropriate permissions (local to the linux server) to the exported directory.
So, 2 possible fixes:
. you must export the directory in way to let remote root have access. This is accomplished with the "no_root_squash" in the /etc/exports file.
. fix the linux-local permissions on the directory for access by (local) user "nobody.
E.g.:
winky ## exportfs -v | sed 's/^/. /'
. /mnt/cdrom *(ro,async,wdelay,no_root_squash)
. /var/tmp *(rw,async,wdelay,root_squash)
notice the root_squash on "/var/tmp".
winky ## ll -d /var/tmp | sed 's/^/. /'
. dr--r--r-- 2 root root 1024 Nov 3 10:27 /var/tmp
Notice that "nobody" would not have (local) write permission on this directory.
linux1 ## mount | grep winky | sed 's/^/. /'
. winky:/var/tmp on /mnt/nfs type nfs (rw,bg,intr,soft,addr=192.168.1.7)
notice that on the remote server, the directory is imported with read-write.
But,
linux1 ## id | sed 's/^/. /'
. uid=0(root) gid=0(root) groups=0(root)
linux1 ## touch /mnt/nfs/f2 2>&1 | sed 's/^/. /'
. touch: /mnt/nfs/f2: Permission denied
this error is because "root" is squashed to "nobody".
Let's fix it
winky ## chmod 777 /var/tmp
linux1 ## touch /mnt/nfs/f2
notice no error, now :)
linux1 ## ll /mnt/nfs | sed 's/^/. /'
. total 2
. drwxrwxrwx 2 root root 1024 Nov 3 10:43 .
. drwxr-xr-x 5 root root 1024 Nov 2 09:44 ..
. -rw-r--r-- 1 65534 65534 0 Nov 3 10:27 f1
. -rw-r--r-- 1 65534 65534 0 Nov 3 10:43 f2
bv