autofs group problem linux-solaris
I had a network with Solaris machines. These Solaris machines, automount other machines in /net with auto.master and auto.misc.
These machines are inside a NIS group called mygroup.
Recently I installed some linux (redhat9) machines. I installed autofs 4.1.3 and i tryed to automount the Solaris boxes with the script auto.net.
It seemed to run ok, but i can only access to the exported directories that have the permissions of rw for all. In my Solaris workstations, the export permissions are set to @mygroup(rw) and from linux i cant access. If i set the permissions to (rw) I can access to the machine.
How can I connect to Solaris exported directories without switching off the group restriction?
Tx in advance.
p
PD: if i run mount from shell, i can mount exported directories whith permisions set to @mygroup(rw). Maybe is something wrong in the script auto.net or something to upgrade.
-------------------- this is the auto.net maybe it helps-----------------------------
root>>more /etc/auto.net
#!/bin/sh
# $Id: auto.net,v 1.5 2003/09/29 08:22:35 raven Exp $
# Look at what a host is exporting to determine what we can mount.
# This is very simple, but it appears to work surprisingly well
key="$1"
# add "nosymlink" here if you want to suppress symlinking local filesystems
# add "nonstrict" to make it OK for some filesystems to not mount
opts="-fstype=nfs,hard,intr,nodev,nosuid"
# Showmount comes in a number of names and varieties. "showmount" is
# typically an older version which accepts the '--no-headers' flag
# but ignores it. "kshowmount" is the newer version installed with knfsd,
# which both accepts and acts on the '--no-headers' flag.
#SHOWMOUNT="kshowmount --no-headers -e $key"
#SHOWMOUNT="showmount -e $key | tail +2"
# Newer distributions get this right
SHOWMOUNT="/usr/sbin/showmount --no-headers -e $key"
$SHOWMOUNT | sort +0 | \
awk -v key="$key" -v opts="$opts" -- '
BEGIN { ORS=""; first=1 }
{ if (first) { print opts; first=0 }; print " \\\n\t" $1, key ":" $1 }
END { if (!first) print "\n"; else exit 1 }
'
|