On Wednesday 18 July 2007, Marco Calviani wrote: > Hi, > i have a problem with NFS. A partition mounted on machine gentoo1 > is correctly exported and mounted in gentoo2 (that is, it is possible > to read and write on it). However whenever i try to execute a program > from gentoo2 that it is stored on the exports of gentoo1, i get the > "Permission denied" error. What can be the cause of this? > > This is my /etc/exports located on gentoo1. > > /pippo0 gentoo1(sync,no_subtree_check,rw) > /pippo1 gentoo1(sync,no_subtree_check,rw) > > and this is the gentoo2 /etc/fstab relevant part: > > gentoo1:/pippo0 /pippo0 nfs rw,user,auto 0 > 0 gentoo1:/pippo1 /pippo1 nfs rw,user,auto 0 > 0
I find the usual cause of this is either: - trying to run programs as root, in which case the nfs server will squash the gentoo2 request from root to user nobody (uid 65533 or such). Solution is no_root_squash option in /etc/exports, usual warnings about running as untrusted root apply - mismatched uids between the two machines. You may well have a user joe on both machines but that doesn't mean they have the same uid. You'll need to have some kind of centralised user management system in place for this (such as NIS), or dream up some scheme using groups, or manually sync the /etc/passwd files on both machines alan -- Optimists say the glass is half full, Pessimists say the glass is half empty, Developers say wtf is the glass twice as big as it needs to be? Alan McKinnon alan at linuxholdings dot co dot za +27 82, double three seven, one nine three five -- [EMAIL PROTECTED] mailing list