<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Permission denied on linux NFS in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/permission-denied-on-linux-nfs/m-p/3107664#M7595</link>
    <description>what is your nfs mount option, make sure you set "-o rw".  what does df or bdf show?</description>
    <pubDate>Fri, 31 Oct 2003 21:43:43 GMT</pubDate>
    <dc:creator>K.C. Chan</dc:creator>
    <dc:date>2003-10-31T21:43:43Z</dc:date>
    <item>
      <title>Permission denied on linux NFS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/permission-denied-on-linux-nfs/m-p/3107660#M7591</link>
      <description>Hi!&lt;BR /&gt;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&lt;BR /&gt; oragt01 / &amp;gt;cd /linux         &lt;BR /&gt;sh: /linux: Permission denied.&lt;BR /&gt;Why ?</description>
      <pubDate>Fri, 31 Oct 2003 14:37:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/permission-denied-on-linux-nfs/m-p/3107660#M7591</guid>
      <dc:creator>Edwin Ruiz_2</dc:creator>
      <dc:date>2003-10-31T14:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Permission denied on linux NFS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/permission-denied-on-linux-nfs/m-p/3107661#M7592</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;Check also that NFS has been restarted after export on Linux box...&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;J</description>
      <pubDate>Fri, 31 Oct 2003 14:42:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/permission-denied-on-linux-nfs/m-p/3107661#M7592</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2003-10-31T14:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Permission denied on linux NFS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/permission-denied-on-linux-nfs/m-p/3107662#M7593</link>
      <description>id command for the user on both sides.&lt;BR /&gt;&lt;BR /&gt;on Linux&lt;BR /&gt;service nfs restart &lt;BR /&gt;&lt;BR /&gt;HP&lt;BR /&gt;/sbin/init.d/nfs.server stop&lt;BR /&gt;/sbin/init.d/nfs.core stop&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/nfs.server start&lt;BR /&gt;/sbin/init.d/nfs.core start&lt;BR /&gt;&lt;BR /&gt;exportfs -av&lt;BR /&gt;&lt;BR /&gt;after making NFS changes on the HP side:&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 31 Oct 2003 15:32:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/permission-denied-on-linux-nfs/m-p/3107662#M7593</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-10-31T15:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Permission denied on linux NFS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/permission-denied-on-linux-nfs/m-p/3107663#M7594</link>
      <description>Also, just make sure the permissions actually allow you to. "ls -ld /linux".  On some systems  I have seen that the permissions of the mount point itself make  a difference too.</description>
      <pubDate>Fri, 31 Oct 2003 17:22:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/permission-denied-on-linux-nfs/m-p/3107663#M7594</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-10-31T17:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Permission denied on linux NFS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/permission-denied-on-linux-nfs/m-p/3107664#M7595</link>
      <description>what is your nfs mount option, make sure you set "-o rw".  what does df or bdf show?</description>
      <pubDate>Fri, 31 Oct 2003 21:43:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/permission-denied-on-linux-nfs/m-p/3107664#M7595</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2003-10-31T21:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Permission denied on linux NFS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/permission-denied-on-linux-nfs/m-p/3107665#M7596</link>
      <description>The above info on UIDs is correct, but if you are 'root' on oragt01, then there is another possible problem:&lt;BR /&gt; &lt;BR /&gt;The linux directory was exported with "root_squash" (which is the default).&lt;BR /&gt; &lt;BR /&gt;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.&lt;BR /&gt; &lt;BR /&gt;So, 2 possible fixes:&lt;BR /&gt; &lt;BR /&gt;. 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.&lt;BR /&gt; &lt;BR /&gt;. fix the linux-local permissions on the directory for access by (local) user "nobody.&lt;BR /&gt; &lt;BR /&gt;E.g.:&lt;BR /&gt;winky ## exportfs -v | sed 's/^/. /'&lt;BR /&gt;. /mnt/cdrom            *(ro,async,wdelay,no_root_squash)&lt;BR /&gt;. /var/tmp              *(rw,async,wdelay,root_squash)&lt;BR /&gt; &lt;BR /&gt;notice the root_squash on "/var/tmp".&lt;BR /&gt;&lt;BR /&gt;winky ## ll -d /var/tmp |  sed 's/^/. /'&lt;BR /&gt;. dr--r--r--    2 root     root         1024 Nov  3 10:27 /var/tmp&lt;BR /&gt; &lt;BR /&gt;Notice that "nobody" would not have (local) write permission on this directory.&lt;BR /&gt; &lt;BR /&gt;linux1 ## mount | grep winky | sed 's/^/. /'&lt;BR /&gt;. winky:/var/tmp on /mnt/nfs type nfs (rw,bg,intr,soft,addr=192.168.1.7)&lt;BR /&gt;&lt;BR /&gt;notice that on the remote server, the directory is imported with read-write.&lt;BR /&gt; &lt;BR /&gt;But,&lt;BR /&gt;linux1 ## id | sed 's/^/. /'                    &lt;BR /&gt;. uid=0(root) gid=0(root) groups=0(root)&lt;BR /&gt;linux1 ## touch /mnt/nfs/f2 2&amp;gt;&amp;amp;1 | sed 's/^/. /'   &lt;BR /&gt;. touch: /mnt/nfs/f2: Permission denied&lt;BR /&gt; &lt;BR /&gt;this error is because "root" is squashed to "nobody".&lt;BR /&gt;Let's fix it&lt;BR /&gt; &lt;BR /&gt;winky ## chmod 777  /var/tmp&lt;BR /&gt;linux1 ## touch /mnt/nfs/f2&lt;BR /&gt; &lt;BR /&gt;notice no error, now :)&lt;BR /&gt; &lt;BR /&gt;linux1 ## ll /mnt/nfs | sed 's/^/. /'&lt;BR /&gt;. total 2&lt;BR /&gt;. drwxrwxrwx   2 root     root         1024 Nov  3 10:43 .&lt;BR /&gt;. drwxr-xr-x   5 root     root         1024 Nov  2 09:44 ..&lt;BR /&gt;. -rw-r--r--   1 65534    65534           0 Nov  3 10:27 f1&lt;BR /&gt;. -rw-r--r--   1 65534    65534           0 Nov  3 10:43 f2&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;bv</description>
      <pubDate>Mon, 03 Nov 2003 10:48:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/permission-denied-on-linux-nfs/m-p/3107665#M7596</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2003-11-03T10:48:39Z</dc:date>
    </item>
  </channel>
</rss>

