--Boundary_(ID_YZk3oWP6pHFRfS7sM7x4CA)
Content-type: TEXT/PLAIN; charset=US-ASCII
Hi to all,
my original question was : ----------------------------------------
In Solaris 2.5.X the NFS share command doesn't accept netgroups with
different access permissions on the same line.
For example :
share -o ro=netgroup1,rw=netgroup2 /export_fs
generates the following error message :
share_nfs: netgroup1: network address not known
Viceversa :
share -o ro=netgroup1,rw=list-netgroup2-elements /export_fs
is accepted, but it is not useful when list-netgroup2-elements contains
many items.
A long list could be generated with the following command (it is correctly
accepted by the system):
share -o ro=netgroup1,rw=`get_n2_elem` /export_fs
where get_n2_elem is a script file that, managing at run time the
`ypcat -k netgroup` command output, creates the list of elements in
netgroup2.
This is a good solution, but it works only if the list generated is not
longer than (about) 1000 chars.
This limitation doesn't exist if you exec share command in sh environment
instead of csh. So a working solution is the following:
SHARE -o ro=netgroup1,rw=netgroup2 /export_fs
where SHARE is a sh script that uses the same original share command syntax,
substituting netgroup2 with a run time generated list as described above.
--------------------------------------------------------------------------
About 1000 chars limit : the suggestion of using \ to break long lines
doesn't work, but we've found that this limit doesn't exist if you
exec the share command in sh environment instead of csh.
Some people asked us to send them the SHARE script : it is included below.
It seems working well. Please let's know your evaluation (if any).
\\\|///
\\ ~ ~ //
(/ @ @ /)
+-------------------------oOOo-(_)-oOOo-----------------------------+
| Beppe Coffano |
| Torino Italy | Learning is a treasure |
| voice : +39 11 6852380 | which accompanies its |
| fax : +39 11 6853088 | owner everywhere. |
| e-mail : coffano@mains.fiat.it| anonymous |
+-------------------------------------------------------------------+
--Boundary_(ID_YZk3oWP6pHFRfS7sM7x4CA)
Content-id: <Pine.SOL.3.96.970508181418.1781C@wwwat>
Content-type: TEXT/PLAIN; name=SHARE; charset=US-ASCII
Content-description:
Content-disposition: ATTACHMENT; FILENAME=SHARE
Content-transfer-encoding: BASE64
IyEvYmluL3NoIA0KIw0KIw0KIyAgTkFNRQ0KIyAgICAgU0hBUkUgLSBzaGFy
ZSBjb21tYW5kIGZvciB1c2Ugd2l0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MSA9IC1vIF0gDQogICAgICAgIHRoZW4NCiAgICAgICAgICAgICAgICBhcmdt
PWBnZXRsaXN0ICQyYA0KICAgICAgICAgICAgICAgIENNRD0iJENNRCAkMSAk
YXJnbSINCiAgICAgICAgICAgICAgICBzaGlmdA0KICAgICAgICBlbHNlDQog
ICAgICAgICAgICAgICAgQ01EPSIkQ01EICQxICINCiAgICAgICAgZmkNCiAg
ICAgICAgaWYgWyAkIyA9IDEgXQ0KICAgICAgICB0aGVuDQogICAgICAgICAg
ICAgICAgYnJlYWsNCiAgICAgICAgZWxzZQ0KICAgICAgICAgICAgICAgIHNo
aWZ0DQogICAgICAgIGZpDQpkb25lDQoNCiRDTUQNCmV4aXQgMA0K
--Boundary_(ID_YZk3oWP6pHFRfS7sM7x4CA)--