[Samba] Looking for a script to add/remove multiple shares from smb.conf

Joel Hammer Joel at HammersHome.com
Mon Jul 29 18:30:03 GMT 2002

This sounds like the sort of thing a sedoholic would find fun. 
Why not post an example of what you want to do.
I subscribe to the sed mailing list. I'll be happy to pass it along.
On Mon, Jul 29, 2002 at 07:35:03PM -0500, drew.arthur at mail.sprint.com wrote:
> Has anyone ever written a script to remove individual shares from the 
> smb.conf file? I am trying to put together a script that will add & 
> remove multiple shares at once by giving a <sharelist as input to the 
> script. 
> Adding shares is easy because I can just append the shares to the 
> smb.conf file, but removing individual share entries within the smb.conf 
> file without messing up the syntax of the file is the tricky part. Any 
> insights would be appreciated.  
> Thanks, 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba

More information about the samba mailing list