[45/54] samba: Change share template to something more safe

Message ID 20201013160812.27754-45-michael.tremer@ipfire.org
State Accepted
Commit 8936e2d21b57d96d86638208b427373bb16ac7ab
Headers
Series [01/54] samba: Migrate configuration from Samba 3.6 to 4.x |

Commit Message

Michael Tremer Oct. 13, 2020, 4:08 p.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 html/cgi-bin/samba.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/html/cgi-bin/samba.cgi b/html/cgi-bin/samba.cgi
index e58d82004..0ea3cc789 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);