Ka block vecenie files in samba share work?

0 like 0 dislike
6 views
Good day, tell me how to make a ban on entering any file names and extensions except for certain extensions? changing looks like, but all the files and hidden extensions are enabled cannot be paid in reserve
[global] guest ok = yes guest account = nobody security = share unix charset = utf8 dos charset = cp1251 display charset = cp1251 log level = 0 vfs:2 max log size = 0 syslog = 0 socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192 read size = 32768 read raw = no read prediction = true write raw = yes wide links = no oplocks = yes max xmit = 65535 dead time = 15 getwd cache = yes lpq cache = 30 level2 oplocks = true [rezerv] comment = rezerv path = /home/obmen guest ok = yes writable = yes public = yes browseable = yes create mask = 0777 force create mode = 0777 directory mask = 0777 force directory mode = 0777 force user = nobody force group = nobody kernel oplocks = yes level2 oplocks = no veto oplock files = /*.odt/*.doc/*.docx/*.xls/*.xlsx/*.png/*.gif/*.jpeg/*.jpg/*.ods/*.csv/*.pdf/*.xml/ veto files = /*.a*/*.A*/*.b*/*.B*/*.c*/*.C*/*.D*/*.d*/*.E*/*.e*/*.F*/*.f*/*.G*/*.g*/*.H*/*.h*/*.I*/*.i*/*.J*/*.j*/*.K*/*.k*/*.L*/*.l*/*.N*/*.n*/*.O*/*.P*/*.p*/*.Q*/*.q*/*.R*/*.r*/*.S*/*.s*/*.T*/*.t*/*.U*/*.u*/*.Y*/*.y*/*.V*/*.v*/*.X*/*.$
by | 6 views

1 Answer

0 like 0 dislike
Nkonyana seachem you use veto oplock files - it doesn't work as you describe.
Try veto files = /!*.docx/
In theory, this design would prohibit all files except docx. If this design doesn't work through Samba configuration to achieve the desired result.

A workaround script in the crown, removing unauthorized files.
by

Related questions

0 like 0 dislike
5 answers
0 like 0 dislike
5 answers
asked May 21, 2019 by tmman
0 like 0 dislike
3 answers
asked Mar 22, 2019 by ilgub
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
33,605 users