From: Michael Tremer Date: Tue, 13 Oct 2020 14:57:23 +0000 (+0100) Subject: samba: Change share template to something more safe X-Git-Tag: v2.25-core152~7^2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8936e2d21b57d96d86638208b427373bb16ac7ab;p=ipfire-2.x.git samba: Change share template to something more safe Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/samba.cgi b/html/cgi-bin/samba.cgi index e58d820049..0ea3cc789c 100644 --- a/html/cgi-bin/samba.cgi +++ b/html/cgi-bin/samba.cgi @@ -43,7 +43,7 @@ my @userline = (); my $userfile = "${General::swroot}/samba/private/smbpasswd"; my %selected= () ; -my $defaultoption= "[Share]\npath = /var/ipfire/samba/share1\ncomment = Share - Public Access\nbrowseable = yes\nwriteable = yes\ncreate mask = 0777\ndirectory mask = 0777\npublic = yes\nforce user = samba"; +my $defaultoption= "[My Share]\npath = \ncomment = Share - Public Access\nbrowseable = yes\nwriteable = yes\ncreate mask = 0644\ndirectory mask = 0755\npublic = yes\nforce user = samba"; my %shares = (); &General::readhash("${General::swroot}/ethernet/settings", \%netsettings);