From 073ef6325d4710542bd3379add43d99c5cb866ee Mon Sep 17 00:00:00 2001 From: Audrey <41555236+endoxia@users.noreply.github.com> Date: Sun, 20 Sep 2020 17:47:50 -0500 Subject: [PATCH 1/3] remove ssh creds from public share --- etc/samba/smb.conf | 2 +- srv/public/ad.md | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/etc/samba/smb.conf b/etc/samba/smb.conf index 64c8415..b5905fd 100644 --- a/etc/samba/smb.conf +++ b/etc/samba/smb.conf @@ -17,6 +17,6 @@ public = no [public] path = /srv/public guest ok = yes -read only = no +read only = yes writable = yes public = yes \ No newline at end of file diff --git a/srv/public/ad.md b/srv/public/ad.md index 47c9141..e917376 100644 --- a/srv/public/ad.md +++ b/srv/public/ad.md @@ -8,10 +8,4 @@ Play with friends on huge survival worlds!
**Discord Invite:** https://discord.101sec.net -What are you waiting for?! - - \ No newline at end of file +What are you waiting for?! \ No newline at end of file From 1a31732b73406938652012703247850bee55ec13 Mon Sep 17 00:00:00 2001 From: Audrey <41555236+endoxia@users.noreply.github.com> Date: Sun, 20 Sep 2020 17:51:36 -0500 Subject: [PATCH 2/3] secure smb.conf --- etc/samba/smb.conf | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/etc/samba/smb.conf b/etc/samba/smb.conf index b5905fd..12bb008 100644 --- a/etc/samba/smb.conf +++ b/etc/samba/smb.conf @@ -1,5 +1,4 @@ [global] -guest account = root map to guest = bad user workgroup = WORKGROUP server string = file-server-01 @@ -7,16 +6,17 @@ security = user create mask = 4777 directory mask = 4777 -[important] -path = /home/paul -valid users = paul -read only = yes -writable = no -public = no - [public] path = /srv/public guest ok = yes read only = yes -writable = yes -public = yes \ No newline at end of file +writable = no +public = yes + +[private] +path = /srv/private +guest ok = no +read only = no +writeable = yes +public = no +valid users = @secret \ No newline at end of file From b2dad695fa71b9f10fc44b16b5d6b760383311af Mon Sep 17 00:00:00 2001 From: Audrey <41555236+endoxia@users.noreply.github.com> Date: Sun, 20 Sep 2020 17:53:12 -0500 Subject: [PATCH 3/3] update smb.conf --- etc/samba/smb.conf | 1 - 1 file changed, 1 deletion(-) diff --git a/etc/samba/smb.conf b/etc/samba/smb.conf index 12bb008..22db4d6 100644 --- a/etc/samba/smb.conf +++ b/etc/samba/smb.conf @@ -1,5 +1,4 @@ [global] -map to guest = bad user workgroup = WORKGROUP server string = file-server-01 security = user