How to change permission for opt dir in Solaris Zones?

Hi All
While configuring zone I run
add inherit-pkg-dir
I thing this command will inherit opt,etc,lib... directories from global zone to non global zone with read permission................

So this makes problem for me I want to edit one file opt dir which is useful for my project but when I try to edit it is throwing error
NO WRITE PERMISSION LIKE THIS

So can u pls tell me hw can I slove this problem

Please post you zone configuration. By default, /opt isn't inherited by sparse zones.

You cannot write a file belonging to a package sitting in one of the inherit-pkg-dir by design. If you need otherwise, use a whole root zone.

Use "create -b" to create the zone.

Hi My zone confgiuration

zonecfg -z test info
zonename: test
zonepath: /zones/test
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
inherit-pkg-dir:
dir: /opt
fs:
dir: /VIJ
special: /VIJ
raw not specified
type: lofs
options: []
net:
address: 10.82.123.11
physical: bge1

You explicitely added /opt as an inherit package directory and that makes that directory read-only on that zone by design.
If you still want a sparse root zone, recreate it without adding /opt. If you don't care about that zone being sparse, recreate your zone as a whole root zone (create -b).