I have a network with one Windows 10 PC on it as well as my openSUSE box. Before the upgrade I could access the Win10 box, now only my PC shows on the network.
Modifying smb.conf as suggested in “Configure Samba for a Workgroup in the local LAN” makes no difference, probably because the smb service is not running. nmb is running.
● smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2019-10-29 17:19:50 AEDT; 36s ago
Process: 1009 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=255)
Process: 999 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
Main PID: 1009 (code=exited, status=255)
Oct 29 17:19:50 linux-86az.suse systemd[1]: Starting Samba SMB Daemon...
Oct 29 17:19:50 linux-86az.suse smbd[1009]: [2019/10/29 17:19:50.951507, 0] ../source3/auth/auth_util.c:1382(make_new_session_info_guest)
Oct 29 17:19:50 linux-86az.suse smbd[1009]: create_local_token failed: NT_STATUS_NO_MEMORY
Oct 29 17:19:50 linux-86az.suse smbd[1009]: [2019/10/29 17:19:50.979561, 0] ../source3/smbd/server.c:2000(main)
Oct 29 17:19:50 linux-86az.suse smbd[1009]: ERROR: failed to setup guest info.
Oct 29 17:19:50 linux-86az.suse systemd[1]: smb.service: Main process exited, code=exited, status=255/n/a
Oct 29 17:19:50 linux-86az.suse systemd[1]: Failed to start Samba SMB Daemon.
Oct 29 17:19:50 linux-86az.suse systemd[1]: smb.service: Unit entered failed state.
Oct 29 17:19:50 linux-86az.suse systemd[1]: smb.service: Failed with result 'exit-code'.
:~> smbclient -d3 -L \\127.0.0.1
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
Can't find include file /etc/samba/dhcp.conf
WARNING: The "idmap gid" option is deprecated
WARNING: The "idmap uid" option is deprecated
directory_create_or_exist_strict: invalid ownership on directory /var/lib/samba/lock/msg.lock
cmdline_messaging_context: Unable to initialize messaging context.
Unable to initialize messaging context
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
Can't find include file /etc/samba/dhcp.conf
WARNING: The "idmap gid" option is deprecated
WARNING: The "idmap uid" option is deprecated
added interface eth0 ip=2001:44b8:41d1:b900:15d2:9f1e:9e6a:482a bcast= netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=2001:44b8:41d1:b900:c599:5528:8389:ddb0 bcast= netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.178.23 bcast=192.168.178.255 netmask=255.255.255.0
Client started (version 4.9.5-git.187.71edee57d5alp151.2.6.1-SUSE-oS15.0-x86_64).
Connecting to 127.0.0.1 at port 445
Connecting to 127.0.0.1 at port 139
do_connect: Connection to 127.0.0.1 failed (Error NT_STATUS_CONNECTION_REFUSED)
:~> testparm
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Can't find include file /etc/samba/dhcp.conf
WARNING: The "idmap gid" option is deprecated
WARNING: The "idmap uid" option is deprecated
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Can't find include file /etc/samba/dhcp.conf
WARNING: The "idmap gid" option is deprecated
WARNING: The "idmap uid" option is deprecated
Processing section "[homes]"
Processing section "[profiles]"
Processing section "[users]"
Processing section "[groups]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_DOMAIN_MEMBER
Press enter to see a dump of your service definitions
# Global parameters
[global]
idmap gid = 10000-20000
idmap uid = 10000-20000
logon drive = P:
logon home = \\%L\%U\.9xprofile
logon path = \\%L\profiles\.msprofile
map to guest = Bad User
name resolve order = bcast host lmhosts wins
netbios name = ANDYBOX
os level = 65
preferred master = Yes
printcap name = cups
security = DOMAIN
server string = ""
usershare allow guests = Yes
usershare max shares = 100
idmap config * : range = 10000-20000
idmap config * : backend = tdb
cups options = raw
include = /etc/samba/dhcp.conf
[homes]
browseable = No
comment = Home Directories
inherit acls = Yes
read only = No
valid users = %S %D%w%S
[profiles]
comment = Network Profiles Service
create mask = 0600
directory mask = 0700
path = %H
read only = No
[users]
comment = All users
inherit acls = Yes
path = /home
read only = No
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
inherit acls = Yes
path = /home/groups
read only = No
[printers]
browseable = No
comment = All Printers
create mask = 0600
path = /var/tmp
printable = Yes
[print$]
comment = Printer Drivers
create mask = 0664
directory mask = 0775
force group = ntadmin
path = /var/lib/samba/drivers
write list = @ntadmin root
Research comes up with a bug involving winbind running when smb tries to start, but that is supposedly fixed, and winbind is not running.
Advice, please.
got smb running, but according to the YaST Samba Server function Samba is “partly active”, and localhost:901 will not connect. The previous thread was actually me with the same problem, and the solution was the same and worked that time. Maybe a reboot will help.
Yes that is SWAT (Samba Web Administration Tool). Never used it, and in any case it has been deprecated/removed for a long time now (due to security issues).
I now have more problems, Kate won’t work, and my Dolphin instances did not restore.
I’m not clear on what is not working with respect to Kate or Dolphin. Are you saying that you can’t view the windows shares from Dolphin? Did you have Dolphin places shortcuts (and it is these that are not working)?
Kate and Dolphin are separate issues. When I booted up today the two Dolphin instances I keep going, each with multiple tabs, did not restore. The Kate instance I keep didn’t come up either, files would not open with Kate, but would with Kwrite, the menu Kate didn’t work, but Kate does from the command line. At one point I got “KDEInit could not launch ‘/usr/bin/kate’”. As I rely heavily on maintaining Kate and Dolphin instances from session to session these will have to take priority.
I’m not sure what you’re trying to describe here? Do you mean the Windows machine doesn’t see (or can’t access) openSUSE shares or the other way around (assuming both are advertising shares)?
The Win10 machine is not visible from Linux on the network. Only my Linux box is there. Before the upgrade the Win10 box was visible and shares were accessible from Linux. The firewall is inactive, and was previously.
Initially the smb service would not start. Changing smb.conf security to USER allowed it to start. Now I can see my own box on the network, but that is all. When upgrading TO 15.0 I had the same problem, but the “security = USER” fix solved it. Not this time.
I am wondering if two upgrades have garbled something, and a re-install of samba might fix it.
As the firewall had been inactive before the upgrade, and I gather is supposed to be inactive by default, I was inclined to trust YaST. But I did eventually begin to wonder.