Rowland Penny
2025-Feb-06 16:13 UTC
[Samba] Help to migrate from Centos 6 3.6.23-51.el6 to Debian 12 12 4.17.12-Debian
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
Lorenzo Fiorini
2025-Feb-06 16:32 UTC
[Samba] Help to migrate from Centos 6 3.6.23-51.el6 to Debian 12 12 4.17.12-Debian
On 06/02/2025 17:13, Rowland Penny via samba wrote:> [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 = YesThank you Rowland for your fast reply but we still don't get the anonymous access. With systemctl status smb I get this: Feb 06 17:22:38 pcserv16 systemd[1]: smbd.service: Deactivated successfully. Feb 06 17:22:38 pcserv16 systemd[1]: Stopped smbd.service - Samba SMB Daemon. Feb 06 17:22:38 pcserv16 systemd[1]: Starting smbd.service - Samba SMB Daemon... Feb 06 17:22:38 pcserv16 smbd[31728]: [2025/02/06 17:22:38.570578, 0] ../../source3/smbd/server.c:1741(main) (red color) Feb 06 17:22:38 pcserv16 smbd[31728]: smbd version 4.17.12-Debian started. Is it expected?
Possibly Parallel Threads
- Help to migrate from Centos 6 3.6.23-51.el6 to Debian 12 12 4.17.12-Debian
- Help to migrate from Centos 6 3.6.23-51.el6 to Debian 12 12 4.17.12-Debian
- Help to migrate from Centos 6 3.6.23-51.el6 to Debian 12 12 4.17.12-Debian
- Help to migrate from Centos 6 3.6.23-51.el6 to Debian 12 12 4.17.12-Debian
- Help to migrate from Centos 6 3.6.23-51.el6 to Debian 12 12 4.17.12-Debian