fedora39免密访问samba设置

个人备忘


firewall-cmd --get-active-zones
sudo firewall-cmd --permanent --zone=FedoraWorkstation --add-service=samba
sudo firewall-cmd --reload
sudo semanage fcontext --add --type "samba_share_t" "/home/share(/.*)?"
sudo restorecon -R /home/share
diff --git a/smb.conf b/smb.conf
index b0ebcc6..0ffe64e 100644
--- a/smb.conf
+++ b/smb.conf
@@ -10,6 +10,7 @@
 [global]
 	workgroup = SAMBA
 	security = user
+	map to guest = Bad User
 
 
 	passdb backend = tdbsam
@@ -43,3 +44,12 @@
 	force group = @printadmin
 	create mask = 0664
 	directory mask = 0775
+
+[share]
+	comment= Public Stuff
+	path = /home/share
+	public = yes
+	browseable = yes
+	writable = yes
+	create mask = 0664
+	force user = finn

参考文档

posted @ 2024-04-01 17:18  rdwr  阅读(18)  评论(0编辑  收藏  举报