Hi I have many shares on my Samba 4 file server and I would like to restrict a long list of files to most of these shares. Is it possible to specify the prohibited files in the global section of smb.conf and apply them to most shares, except for a few? Regards, M?rcio Bacci
On Tue, Jun 16, 2020 at 02:16:49AM -0300, Marcio Demetrio Bacci via samba wrote:> Hi > > I have many shares on my Samba 4 file server and I would like to restrict a > long list of files to most of these shares. > > Is it possible to specify the prohibited files in the global section of > smb.conf and apply them to most shares, except for a few?Sure. Set a [global] veto files list, then overide it in the specific share definitions you don't want them.
Great, thanks! Em Ter, 16 de jun de 2020 14:23, Jeremy Allison <jra at samba.org> escreveu:> On Tue, Jun 16, 2020 at 02:16:49AM -0300, Marcio Demetrio Bacci via samba > wrote: > > Hi > > > > I have many shares on my Samba 4 file server and I would like to > restrict a > > long list of files to most of these shares. > > > > Is it possible to specify the prohibited files in the global section of > > smb.conf and apply them to most shares, except for a few? > > Sure. Set a [global] veto files list, then overide it in > the specific share definitions you don't want them. >