I have not opened the shared directory for a while, so I do not know exactly when it stopped working. Samba is set up to log for specific machines:
- Code: Select all
# --------------------------- Logging Options -----------------------------
#
# log file = specify where log files are written to and how they are split.
#
# max log size = specify the maximum size log files are allowed to reach. Log
# files are rotated when they reach the size specified with "max log size".
#
# log files split per-machine:
log file = /var/log/samba/log.%m
# maximum size of 50KB per log file, then rotate:
max log size = 50
The most recent log file for my client machine is from April 25.
I am trying to connect from my Mint system and from an Android tablet. Both fail, so I think the problem is on the Mageia 7 server side.
The smbd is running.
- Code: Select all
# systemctl status smb
● smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2019-05-17 13:19:07 EDT; 58min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Main PID: 15187 (smbd)
Status: "smbd: ready to serve connections..."
Memory: 8.8M
CGroup: /system.slice/smb.service
├─15187 /usr/sbin/smbd --foreground --no-process-group
├─15189 /usr/sbin/smbd --foreground --no-process-group
├─15190 /usr/sbin/smbd --foreground --no-process-group
└─15214 /usr/sbin/smbd --foreground --no-process-group
May 17 13:19:07 localhost systemd[1]: Starting Samba SMB Daemon...
May 17 13:19:07 localhost smbd[15187]: [2019/05/17 13:19:07.811351, 0] ../../lib/util/become_daemon.c:136(daemon>
May 17 13:19:07 localhost systemd[1]: Started Samba SMB Daemon.
May 17 13:19:07 localhost smbd[15187]: daemon_ready: daemon 'smbd' finished starting up and ready to serve conn>
The shared folder permissions are wide open, 0777.
- Code: Select all
$ ls -ld SysInfo/
drwxrwxrwx 53 poobah poobah 4096 May 17 07:39 SysInfo//
The Samba permissions on the folder are wide open:
- Code: Select all
[SysInfo]
path = /home/poobah/SysInfo
valid users = poobah
available = yes
read only = no
browseable = yes
public = yes
writable = yes
create mask = 0777
directory mask = 0777
The firewall on the Mageia 7 system is turned off.
- Code: Select all
# systemctl status iptables
● iptables.service - iptables Firewall for IPv4
Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled; vendor preset: disabled)
Active: inactive (dead)
I can ping the Mageia 7 system from the client. I can ssh log into the Mageia 7 system from the client. The Mageia 7 system can access the internet via its wifi connection. So the network connection is good.
Testparm reports no problems with the config file.
- Code: Select all
[root@localhost samba]# testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
log file = /var/log/samba/log.%m
max log size = 50
security = USER
server string = Samba Server Version %v
workgroup = MYGROUP
idmap config * : backend = tdb
cups options = raw
[homes]
browseable = No
comment = Home Directories
read only = No
[printers]
browseable = No
comment = All Printers
path = /var/spool/samba
printable = Yes
[SysInfo]
create mask = 0777
directory mask = 0777
guest ok = Yes
path = /home/poobah/SysInfo
read only = No
valid users = poobah root
What else can I look at to find out why the smbd is not answering the request?
Thanks,
Banjo
(_)=='=~