[Samba] Help to migrate from Centos 6 3.6.23-51.el6 to Debian 12 12 4.17.12-Debian

Rowland Penny rpenny at samba.org
Thu Feb 6 16:13:17 UTC 2025


On Thu, 6 Feb 2025 16:44:53 +0100
Lorenzo Fiorini via samba <samba at lists.samba.org> wrote:

> Hi everyone, and thanks for Samba.
> 
> I've spent several hours trying to migrate a simple Samba
> configuration from an old CentOS 6 box to a new Debian 12 box, using
> various online resources (including nearly all the AI chatbots I
> could find).
> 
> Here's the old CentOS 6 configuration (from |testparm|):
> 
> |[global] server string = ..... security = SHARE log file = 
> /var/log/samba/log.%m max log size = 50 name resolve order = bcast 
> lmhosts host wins client signing = required idmap config * : backend
> = tdb cups options = raw oplocks = No level2 oplocks = No [homes]
> comment = Home Directories read only = No browseable = No [printers]
> comment = All Printers path = /var/spool/samba printable = Yes print
> ok = Yes browseable = No [server] path = /var/server/ read only = No
> create mask = 0777 directory mask = 0777 guest ok = Yes |

After I unpicked that, it became clear that your version of Samba on
Centos 6 is that old, it still had 'security = share', this no longer
exists

Try this smb.conf:

|[global]
 server string = .....
 security = USER
 log file = /var/log/samba/log.%m 
 max log size = 50 
 client signing = required 
 cups options = raw 
 oplocks = No 
 level2 oplocks = No
 # without the following line guest shares don't work
 map to guest = bad user

[server]
 path = /var/server/ 
 read only = No 
 create mask = 0777 
 directory mask = 0777 
 guest ok = Yes

Rowland



More information about the samba mailing list