Mounting NFS shares with script

kressevadder

Registered
Hallo,

I connected my OS X 10.3.3 to an Suse Linux standard server.

Doing this with the dsktop tools works. Directorys are mounted, userIDs are taken fron the LDAP etc.

Mounting a dir with finder is no problem (logged in as user root) but with the shell:
Code:
sudo mount 192.168.2.10:/svr/nfs/MacApps/ /private/MacApps
mount_nfs: can't access /svr/nfs/MacApps/: Permission denied
causes an error.

Adding the mount to the NetInfo with the NFS-Manager tool works, but if I do this with the Shell it doesn't work:
Code:
nicl . -create /mounts/192.168.2.10:\\/svr\\/nfs\\/MacApps

nicl . -append /mounts/192.168.2.10:\\/svr\\/nfs\\/MacApps dir /private/MacApps

nicl . -append /mounts/192.168.2.10:\\/svr\\/nfs\\/MacApps vfstype nfs

nicl . -append /mounts/192.168.2.10:\\/svr\\/nfs\\/MacApps opts -s 
nicl . -append /mounts/192.168.2.10:\\/svr\\/nfs\\/MacApps opts -P
nicl . -append /mounts/192.168.2.10:\\/svr\\/nfs\\/MacApps opts -b



kill -1 `cat /var/run/automount.pid `

the entry made in the NetInfo Database looks exactly like the entry made by the NFS-Manager. Here is the dump:
Code:
{
  "name" = ( "mounts" );
  CHILDREN = (
    {
      "name" = ( "192.168.2.10:/home" );
      "dir" = ( "/NFSHomes" );
      "vfstype" = ( "nfs" );
      "opts" = ( "-s", "-P", "-b" );
    },
    {
      "name" = ( "192.168.2.10:/svr/nfs/MacApps" );
      "dir" = ( "/private/MacApps" );
      "vfstype" = ( "nfs" );
      "opts" = ( "-s", "-P", "-b" );
    }
  )
}
the first entry (/home) was created with NFS-Manager and works, the second one was created with my script, but does not work :confused:

Where is the difference?

Any hints for this prob?

Thank you - Manfred
 
I found the bug, after hours of hard work, anger and desperation I entered the right server-export (/srv/... not /svr/...) to my script and it worked without problems.

Call me the golden fool... ::ha::
 
Back
Top