]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit - html/cgi-bin/samba.cgi
samba.cgi: Fixes bug#13193 - disables smb1 unix extensions in smb.conf
authorAdolf Belka <adolf.belka@ipfire.org>
Wed, 26 Jul 2023 21:03:59 +0000 (23:03 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 7 Aug 2023 09:21:52 +0000 (09:21 +0000)
commitcee7ddb66c22bfdd7a0dce18617f64b34d7794e7
treedd9c437ef212e9f7ceceb2c3eb217505374106b0
parente9c5d591e59cb07f4cc983c4423f14ed4f0d4178
samba.cgi: Fixes bug#13193 - disables smb1 unix extensions in smb.conf

- Around three years ago the samba wui page was simplified and several parts were removed
   including the ability to set either wide links or unix extensions to be enabled
- When the above was done wide links = yes was defined in the samba.cgi code
- unix extenstions was not defined and therefore took the default value which was/is yes
- unix extensions is now called smb1 unix extensions and has the same default value of yes
- With both wide links = yes and smb1 unix extensions = yes means that when there is a
  wide symlink (one that goes outside the share directory tree) then wide links is disabled
  because smb1 unix extensions is enabled. This is even though the smb1 protocol is disabled
  by default.
- This patch sets smb1 unix extensions = no in the configuration.
- This has been tested in my vm testbed and confirmed that the error message is no longer
   shown and that any wide links are able to be accessed from the share mounted on a client

Fixes: Bug#13193
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/samba.cgi