Hey all. I'm trying to mount a Solaris 10 NFS share from my FreeBSD 6.2-STABLE machine and I'm having some permissions problems. Here's my /etc/dfs/dfstab file on Solaris 10. share -F nfs -o rw=spark -d "generic" /export/home/mush and the line in /etc/fstab on FreeBSD: 192.168.0.26:/export/home/mush /mnt/share nfs 0 0 I am able to mount the share but unable to access it on the FreeBSD machine. In fact I can't even cd into /mnt/share as root on FreeBSD. Changinf the dir's permissions to 0777 on Solaris does "fix" the problem but . . . it's not a solution. Thanks for any help. -- Matt
On Thu, May 31, 2007 at 11:41:00PM +0000, Matthew Herzog wrote:> Hey all. > > I'm trying to mount a Solaris 10 NFS share from my FreeBSD 6.2-STABLE > machine and I'm having some permissions problems. > > Here's my /etc/dfs/dfstab file on Solaris 10. > > share -F nfs -o rw=spark -d "generic" /export/home/mush > > and the line in /etc/fstab on FreeBSD: > > 192.168.0.26:/export/home/mush /mnt/share nfs 0 0 > > I am able to mount the share but unable to access it on the FreeBSD > machine. In fact I can't even cd into /mnt/share as root on FreeBSD. > Changinf the dir's permissions to 0777 on Solaris does "fix" the > problem but . . . it's not a solution.Isn't this usually because of a mismatch with credentials (uid/gid) between server and client? i.e. why do you think this is a FreeBSD NFS client issue? Kris
> I'm trying to mount a Solaris 10 NFS share from my FreeBSD 6.2-STABLE > machine and I'm having some permissions problems. > > Here's my /etc/dfs/dfstab file on Solaris 10. > > share -F nfs -o rw=spark -d "generic" /export/home/mush > > and the line in /etc/fstab on FreeBSD: > > 192.168.0.26:/export/home/mush /mnt/share nfs 0 0 > > I am able to mount the share but unable to access it on the FreeBSD > machine. In fact I can't even cd into /mnt/share as root on FreeBSD. > Changinf the dir's permissions to 0777 on Solaris does "fix" the > problem but . . . it's not a solution.As mentioned earlier it is probably a mismatch between uid/gid. And by default root is *not* allowed access to nfs-shares unless you specify map-root=root (freebsd-syntax) on your nfs-server, albeit this is *not* recommended as well to grant root access to nfs. -- regards Claus When lenity and cruelty play for a kingdom, the gentlest gamester is the soonest winner. Shakespeare
On 6/1/07, Claus Guttesen <kometen@gmail.com> wrote:> As mentioned earlier it is probably a mismatch between uid/gid. And by > default root is *not* allowed access to nfs-shares unless you specify > map-root=root (freebsd-syntax) on your nfs-server, albeit this is > *not* recommended as well to grant root access to nfs.Try to use NFSv3 on Solaris side. otis -- Sincerely yours, Juraj Lutter