Regards managers,
Original Problem:
>
> When trying to change file attributes on a automounted filesystem I get
> 'permission denied'. When I do the same thing specifying the full path
> it's OK. Look at the below session to get a grip on what's going on. The
> hosts in question are two ASE 1.5 cluster hosts running 4.0E PK1 and
> they are both trusting each other via proper export rights and .rhosts.
> Anyone able to shed a light on this ? (Note that the key in NIS map
> auto.home is /h)
>
> # uname -a
> OSF1 host1 V4.0 1091 alpha
> # chown -R /h/user1/tmp/72
> chown: /h/user1/tmp/72: Permission denied
> chown: /h/user1/tmp/72: Permission denied
> # rsh ase_service2 'chown -R user1 /h/user1/tmp/72'
> chown: /h/user1/tmp/72: Permission denied
> chown: /h/user1/tmp/72: Permission denied
> # ypmatch -k user1 auto.home
> user1: ase_service2:/home/ase_service2/dr1/ded/&
> # rsh ase_service2 chown -R user1 /home/ase_service2/dr1/ded/user1/tmp/72
> # chown -R user2 /home/ase_service2/dr1/ded/user1/tmp/72
> # chown -R user1 /home/ase_service2/dr1/ded/user1/tmp/72
>
Solution: RTFM and check carefully all export rights before complaining.
The filesystem root was NFS mounted with root privileges. However, the
automounter directory, which was mounted atop on the filesystem root (on
top of the root privileged mounted filesystem, that is) did not have
sufficient privileges. As stated in the manpages for 'exports':
Desired export options must be explicitly specified for each exported
resource: file system or directory. If a file system and
subdirectories
within it are exported, the options associated with the file system
are not
``inherited.'' You do not need to export an entire file system to
allow
clients to mount subdirectories within it.
So end of story is that I have to fix the export rights for the
subdirectories as well.
Thanks to Pascal Van Bever <Pascal.VanBever_at_compaq.com> for pointing me
in the right direction.
--
******************************************************************
* Knut Hellebų | DAMN GOOD COFFEE !! *
* Norsk Hydro asa | (and hot too) *
* Phone: +47 55 996870, Fax: +47 55 996495 | *
* Cellular Phone: +47 93005151 | *
* E-mail: Knut.Hellebo_at_nho.hydro.com | Dale Cooper, FBI *
******************************************************************
Received on Tue Feb 08 2000 - 14:29:55 NZDT