[Samba] Samba 3 dynamically enable or disable share

Jonathan Buzzard jonathan at buzzard.me.uk
Tue Apr 30 04:39:22 MDT 2013


On Mon, 2013-04-29 at 07:05 -0700, Mauricio Alvarez wrote:
> Michael,
> 
>  I really don't want to repartition--again! But yes, your idea is intresting. 
> 

As a point of note that is what LVM is for, the 20th century called and
wants partitions back.

Getting back on topic why not consider using registry based share
definitions and make use of the available parameter. And then have Samba
come up with the shares in "available = no" configuration, and when the
script that mounts the disk is successful it updates the share
definition so that it becomes "available = yes" using net conf?


JAB.

-- 
Jonathan A. Buzzard                 Email: jonathan (at) buzzard.me.uk
Fife, United Kingdom.



More information about the samba mailing list