Hi,
after the complete failure of setting up SAMBA using the YAST tool, which was solved here (but without samba running)
https://forums.opensuse.org/showthread.php/569263-Samba-configuration-has-blocked-my-internet-access!
I have tried it with manual editing the smb.conf file according to this manual:
https://forums.opensuse.org/content.php/199-Configure-Samba-for-Local-Lan-Workgroup
plus reading through
https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server
This time, nothing bad has happened, however I also don’t get any connection to my Windows computers and neither can I see the shared folder from my linux laptop on my Windows computer. Can someone please help me?
Some checks I found in the net, but unfortunately I couldn’t find how to react to the warnings/errors:
When I use
testparm
to test my smb.conf file, I get the error:
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed
idmap range not specified for domain '*'
ERROR: Invalid idmap range for domain *!
Server role: ROLE_DOMAIN_MEMBER
When I check nmb and smb by
su -c "service nmb status; service smb status"
I get nmb.service running, but then further down in the output:
**daemon_status: daemon 'nmbd' : No local IPv4 non-loopback interfaces available, waiting for interface **>
May 14 23:45:24 mylaptop nmbd[3075]: **[2022/05/14 23:45:24.685810, 0] ../../source3/nmbd/nmbd_subnetdb.c:252(create_subnets)**
May 14 23:45:24 mylaptop nmbd[3075]: ** NOTE: NetBIOS name resolution is not supported for Internet Protocol Version 6 (IPv6).**
May 14 23:45:41 mylaptop systemd[1]: Started Samba NMB Daemon.
May 14 23:46:04 mylaptop nmbd[3075]: **[2022/05/14 23:46:04.759844, 0] ../../source3/nmbd/nmbd_become_lmb.c:398(become_local_master_stage2)**
May 14 23:46:04 mylaptop nmbd[3075]: ** *******
May 14 23:46:04 mylaptop nmbd[3075]:
May 14 23:46:04 mylaptop nmbd[3075]: ** Samba name server MYLAPTOP is now a local master browser for workgroup WORKGROUP on subnet 192.168.178.32**
May 14 23:46:04 mylaptop nmbd[3075]:
May 14 23:46:04 mylaptop nmbd[3075]: ** *******
As far as I can tell, I have done everything as written in the above manuals, but here I attach my smb.conf file:
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
[global]
passdb backend = tdbsam
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = No
netbios name = laptopname
usershare max shares = 100
wins support = No
include = /etc/samba/dhcp.conf
security = domain
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[MyShare]
path = /home/myshare/myshare_medien
comment = MyShare
guest OK = yes
guest only = yes
read only = No
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775