You are not logged in.

#26 2019-06-09 06:24:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,509

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

Look into the servers smb log, (not the system journal about broken service invocation) but I guess a symlink link to / along the "follow symlinks = yes" policy is just enough to pull the breaks.

Offline

#27 2019-06-09 06:42:20

dkd6
Member
Registered: 2019-06-08
Posts: 22

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

All logs under /var/log/samba are empty except smb.log and nmb.log which show no errors.
Is there a different log directory?

Last edited by dkd6 (2019-06-09 06:42:33)

Offline

#28 2019-06-09 06:45:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,509

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

Raise the log level. Remove the symlink (and restart smb) - it should absofuckinglutely not be there.

Offline

#29 2019-06-09 07:14:07

dkd6
Member
Registered: 2019-06-08
Posts: 22

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

To what should I change my log level? this is the current output:

kernel.printk = 1       4       1       4

As for the symlink, I cant remove it:

rm: refusing to remove '.' or '..' directory: skipping '../'

Offline

#30 2019-06-09 08:27:39

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

Symlinks look like this "lrwxrwxrwx"
I'd suggest post the damn thing with all filenames "ls -lah /Red-Vol"

Offline

#31 2019-06-09 09:09:09

dkd6
Member
Registered: 2019-06-08
Posts: 22

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

In that case, no symlinks. These are all directories:

ls -lah /Red-Vol/
total 20K
drwxrwxr-x  1 shmick shmick   94 Jun  9 12:05  .
drwxr-xr-x 22 root   root   4.0K Jun  8 12:15  ..
drwx------  1 shmick shmick   46 Jun  9 12:05  .Trash-1000
drwxr-xr-x  1 shmick shmick  144 Jun  3 18:41  Backups
drwxr-xr-x  1 shmick shmick   16 Jun  3 19:01  Torrents
drwxr-xr-x  1 shmick shmick    0 Jun  9 10:14 'Virutal Machines'
drwxr-xr-x  1 shmick shmick  212 Jun  9 12:05  btrfs

I don't think that is the issue, though - these are all inside 'Red-Vol'. I can't access 'Red-Vol' itself.

Offline

#32 2019-06-09 09:22:52

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

Put "log level = 3" in [global] and restart smb, nmb.  Try again to access the share and paste the new logs here

Offline

#33 2019-06-09 09:37:01

dkd6
Member
Registered: 2019-06-08
Posts: 22

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

Here is the new smbd.log:

[2019/06/09 12:33:10.127397,  3] ../../source3/param/loadparm.c:3872(lp_load_ex)
  lp_load_ex: refreshing parameters
[2019/06/09 12:33:10.127423,  3] ../../source3/param/loadparm.c:550(init_globals)
  Initialising global parameters
[2019/06/09 12:33:10.127461,  3] ../../source3/param/loadparm.c:2786(lp_do_section)
  Processing section "[global]"
[2019/06/09 12:33:10.127510,  2] ../../source3/param/loadparm.c:2803(lp_do_section)
  Processing section "[homes]"
[2019/06/09 12:33:10.127534,  2] ../../source3/param/loadparm.c:2803(lp_do_section)
  Processing section "[printers]"
[2019/06/09 12:33:10.127571,  2] ../../source3/param/loadparm.c:2803(lp_do_section)
  Processing section "[Red-Vol]"
[2019/06/09 12:33:10.127613,  3] ../../source3/param/loadparm.c:1621(lp_add_ipc)
  adding IPC service
[2019/06/09 12:33:10.127836,  2] ../../source3/lib/interface.c:345(add_interface)
  added interface lxdbr0 ip=fd42:2c4a:f24e:32f2::1 bcast= netmask=ffff:ffff:ffff:ffff::
[2019/06/09 12:33:10.127851,  2] ../../source3/lib/interface.c:345(add_interface)
  added interface enp24s0 ip=192.168.1.66 bcast=192.168.1.255 netmask=255.255.255.0
[2019/06/09 12:33:10.127858,  2] ../../source3/lib/interface.c:345(add_interface)
  added interface virbr0 ip=192.168.122.1 bcast=192.168.122.255 netmask=255.255.255.0
[2019/06/09 12:33:10.127864,  2] ../../source3/lib/interface.c:345(add_interface)
  added interface lxdbr0 ip=10.44.2.1 bcast=10.44.2.255 netmask=255.255.255.0
[2019/06/09 12:33:10.127875,  3] ../../source3/smbd/server.c:1851(main)
  loaded services
[2019/06/09 12:33:10.127912,  1] ../../source3/profile/profile_dummy.c:30(set_profile_level)
  INFO: Profiling support unavailable in this build.
[2019/06/09 12:33:10.127922,  3] ../../source3/smbd/server.c:1871(main)
  Standard input is not a socket, assuming -D option
[2019/06/09 12:33:10.127928,  3] ../../source3/smbd/server.c:1883(main)
  Becoming a daemon.
[2019/06/09 12:33:10.128119,  2] ../../source3/passdb/pdb_interface.c:161(make_pdb_method_name)
  No builtin backend found, trying to load plugin
[2019/06/09 12:33:10.132004,  3] ../../lib/util/modules.c:167(load_module_absolute_path)
  load_module_absolute_path: Module '/usr/lib/samba/pdb/tdbsam.so' loaded
[2019/06/09 12:33:10.135053,  3] ../../source3/lib/util_procid.c:54(pid_to_procid)
  pid_to_procid: messaging_dgm_get_unique failed: No such file or directory
[2019/06/09 12:33:10.138462,  3] ../../source3/auth/token_util.c:681(finalize_local_nt_token)
  Failed to fetch domain sid for WORKGROUP
[2019/06/09 12:33:10.139228,  3] ../../source3/rpc_server/svcctl/srv_svcctl_reg.c:565(svcctl_init_winreg)
  Initialise the svcctl registry keys if needed.
[2019/06/09 12:33:10.140105,  3] ../../source3/rpc_server/eventlog/srv_eventlog_reg.c:59(eventlog_init_winreg)
  Initialise the eventlog registry keys if needed.
[2019/06/09 12:33:10.140282,  0] ../../lib/util/become_daemon.c:136(daemon_ready)
  daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
[2019/06/09 12:33:10.140406,  3] ../../source3/printing/queue_process.c:328(start_background_queue)
  start_background_queue: Starting background LPQ thread
[2019/06/09 12:33:10.141380,  3] ../../source3/printing/pcap.c:140(pcap_cache_reload)
  reloading printcap cache
[2019/06/09 12:33:10.142204,  3] ../../source3/printing/pcap.c:194(pcap_cache_reload)
[2019/06/09 12:33:10.142634,  3] ../../source3/printing/print_cups.c:158(cups_connect)
[2019/06/09 12:33:10.142253,  1] ../../source3/printing/printer_list.c:234(printer_list_get_last_refresh)
  reload status: ok
  Unable to connect to CUPS server localhost:631 - Bad file descriptor
  Failed to fetch record!
[2019/06/09 12:33:10.154064,  2] ../../source3/smbd/server.c:1415(smbd_parent_loop)
  waiting for connections
[2019/06/09 12:33:10.154087,  3] ../../source3/printing/print_cups.c:536(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2019/06/09 12:33:10.154569,  2] ../../lib/util/tevent_debug.c:66(samba_tevent_debug)
  samba_tevent: EPOLL_CTL_DEL EBADF for fde[0x56063fb031e0] mpx_fde[(nil)] fd[14] - disabling
[2019/06/09 12:33:22.529360,  3] ../../lib/util/access.c:365(allow_access)
  Allowed connection from 192.168.1.66 (192.168.1.66)
[2019/06/09 12:33:22.531382,  3] ../../lib/util/access.c:365(allow_access)
  Allowed connection from 192.168.1.66 (192.168.1.66)
[2019/06/09 12:33:22.562419,  3] ../../lib/util/access.c:365(allow_access)
  Allowed connection from 192.168.1.66 (192.168.1.66)
[2019/06/09 12:33:22.579506,  3] ../../lib/util/access.c:365(allow_access)
  Allowed connection from 192.168.1.66 (192.168.1.66)
[2019/06/09 12:33:22.592226,  3] ../../lib/util/access.c:365(allow_access)
  Allowed connection from 192.168.1.66 (192.168.1.66)
[2019/06/09 12:33:24.057896,  3] ../../lib/util/access.c:365(allow_access)
  Allowed connection from 192.168.1.66 (192.168.1.66)
[2019/06/09 12:33:24.059041,  3] ../../lib/util/access.c:365(allow_access)
  Allowed connection from 192.168.1.66 (192.168.1.66)
[2019/06/09 12:33:27.993163,  3] ../../lib/util/access.c:365(allow_access)
  Allowed connection from 192.168.1.66 (192.168.1.66)
[2019/06/09 12:33:32.769135,  3] ../../lib/util/access.c:365(allow_access)
  Allowed connection from 192.168.1.66 (192.168.1.66)
[2019/06/09 12:34:13.829580,  3] ../../lib/util/access.c:365(allow_access)
  Allowed connection from 192.168.1.66 (192.168.1.66)

and nmbd.log:

[2019/06/09 12:32:27.978429,  0] ../../source3/libsmb/nmblib.c:917(send_udp)
  Packet send failed to 192.168.1.255(138) ERRNO=Invalid argument
[2019/06/09 12:32:27.978637,  0] ../../source3/libsmb/nmblib.c:917(send_udp)
  Packet send failed to 192.168.1.255(137) ERRNO=Network is unreachable
[2019/06/09 12:32:27.978661,  0] ../../source3/nmbd/nmbd_packets.c:180(send_netbios_packet)
  send_netbios_packet: send_packet() to IP 192.168.1.255 port 137 failed
[2019/06/09 12:32:27.978680,  0] ../../source3/nmbd/nmbd_namequery.c:245(query_name)
  query_name: Failed to send packet trying to query name WORKGROUP<1d>
[2019/06/09 12:33:11.574152,  0] ../../source3/nmbd/nmbd.c:59(terminate)
  Got SIGTERM: going down...
[2019/06/09 12:33:11.625334,  3] ../../source3/nmbd/nmbd.c:951(main)
  standard input is not a socket, assuming -D option
[2019/06/09 12:33:11.625341,  3] ../../source3/nmbd/nmbd.c:956(main)
  Becoming a daemon.
[2019/06/09 12:33:11.625514,  3] ../../source3/nmbd/nmbd.c:1032(main)
  Opening sockets 137
[2019/06/09 12:33:11.625546,  3] ../../source3/nmbd/nmbd.c:764(open_sockets)
  open_sockets: Broadcast sockets opened.
[2019/06/09 12:33:11.628440,  2] ../../source3/lib/interface.c:345(add_interface)
  added interface lxdbr0 ip=fd42:2c4a:f24e:32f2::1 bcast= netmask=ffff:ffff:ffff:ffff::
[2019/06/09 12:33:11.628466,  2] ../../source3/lib/interface.c:345(add_interface)
  added interface enp24s0 ip=192.168.1.66 bcast=192.168.1.255 netmask=255.255.255.0
[2019/06/09 12:33:11.628473,  2] ../../source3/lib/interface.c:345(add_interface)
  added interface virbr0 ip=192.168.122.1 bcast=192.168.122.255 netmask=255.255.255.0
[2019/06/09 12:33:11.628484,  2] ../../source3/lib/interface.c:345(add_interface)
  added interface lxdbr0 ip=10.44.2.1 bcast=10.44.2.255 netmask=255.255.255.0
[2019/06/09 12:33:11.628521,  2] ../../source3/nmbd/nmbd_subnetdb.c:180(make_subnet)
  making subnet name:10.44.2.1 Broadcast address:10.44.2.255 Subnet mask:255.255.255.0
[2019/06/09 12:33:11.628545,  2] ../../source3/nmbd/nmbd_subnetdb.c:180(make_subnet)
  making subnet name:192.168.122.1 Broadcast address:192.168.122.255 Subnet mask:255.255.255.0
[2019/06/09 12:33:11.628568,  2] ../../source3/nmbd/nmbd_subnetdb.c:180(make_subnet)
  making subnet name:192.168.1.66 Broadcast address:192.168.1.255 Subnet mask:255.255.255.0
[2019/06/09 12:33:11.628574,  2] ../../source3/nmbd/nmbd_subnetdb.c:300(create_subnets)
  create_subnets: ignoring non IPv4 interface.
[2019/06/09 12:33:11.628578,  2] ../../source3/nmbd/nmbd_subnetdb.c:180(make_subnet)
  making subnet name:UNICAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0
[2019/06/09 12:33:11.628584,  2] ../../source3/nmbd/nmbd_subnetdb.c:180(make_subnet)
  making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0
[2019/06/09 12:33:11.628597,  2] ../../source3/nmbd/nmbd_lmhosts.c:43(load_lmhosts_file)
  load_lmhosts_file: Can't open lmhosts file /etc/samba/lmhosts. Error was No such file or directory
[2019/06/09 12:33:11.628603,  3] ../../source3/nmbd/nmbd.c:1053(main)
  Loaded hosts file /etc/samba/lmhosts
[2019/06/09 12:33:11.628613,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name *<00> with first IP 192.168.1.66 ttl=0 nb_flags= 0 to subnet 192.168.1.66
[2019/06/09 12:33:11.628623,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name *<20> with first IP 192.168.1.66 ttl=0 nb_flags= 0 to subnet 192.168.1.66
[2019/06/09 12:33:11.628629,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP 192.168.1.66 ttl=0 nb_flags= 0 to subnet 192.168.1.66
[2019/06/09 12:33:11.628635,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 192.168.1.66 ttl=0 nb_flags= 0 to subnet 192.168.1.66
[2019/06/09 12:33:11.628708,  3] ../../source3/nmbd/nmbd_serverlistdb.c:134(create_server_on_workgroup)
  create_server_on_workgroup: Created server entry BIT-FRIGGER of type 40819a03 (Samba 4.10.4) on workgroup WORKGROUP.
[2019/06/09 12:33:11.628716,  3] ../../source3/nmbd/nmbd_workgroupdb.c:259(initiate_myworkgroup_startup)
  initiate_myworkgroup_startup: Added server name entry BIT-FRIGGER on subnet 192.168.1.66
[2019/06/09 12:33:11.628725,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name *<00> with first IP 192.168.122.1 ttl=0 nb_flags= 0 to subnet 192.168.122.1
[2019/06/09 12:33:11.628731,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name *<20> with first IP 192.168.122.1 ttl=0 nb_flags= 0 to subnet 192.168.122.1
[2019/06/09 12:33:11.628737,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP 192.168.122.1 ttl=0 nb_flags= 0 to subnet 192.168.122.1
[2019/06/09 12:33:11.628743,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 192.168.122.1 ttl=0 nb_flags= 0 to subnet 192.168.122.1
[2019/06/09 12:33:11.628780,  3] ../../source3/nmbd/nmbd_serverlistdb.c:134(create_server_on_workgroup)
  create_server_on_workgroup: Created server entry BIT-FRIGGER of type 40819a03 (Samba 4.10.4) on workgroup WORKGROUP.
[2019/06/09 12:33:11.628787,  3] ../../source3/nmbd/nmbd_workgroupdb.c:259(initiate_myworkgroup_startup)
  initiate_myworkgroup_startup: Added server name entry BIT-FRIGGER on subnet 192.168.122.1
[2019/06/09 12:33:11.628793,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name *<00> with first IP 10.44.2.1 ttl=0 nb_flags= 0 to subnet 10.44.2.1
[2019/06/09 12:33:11.628801,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name *<20> with first IP 10.44.2.1 ttl=0 nb_flags= 0 to subnet 10.44.2.1
[2019/06/09 12:33:11.628807,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP 10.44.2.1 ttl=0 nb_flags= 0 to subnet 10.44.2.1
[2019/06/09 12:33:11.628813,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 10.44.2.1 ttl=0 nb_flags= 0 to subnet 10.44.2.1
[2019/06/09 12:33:11.628848,  3] ../../source3/nmbd/nmbd_serverlistdb.c:134(create_server_on_workgroup)
  create_server_on_workgroup: Created server entry BIT-FRIGGER of type 40819a03 (Samba 4.10.4) on workgroup WORKGROUP.
[2019/06/09 12:33:11.628855,  3] ../../source3/nmbd/nmbd_workgroupdb.c:259(initiate_myworkgroup_startup)
  initiate_myworkgroup_startup: Added server name entry BIT-FRIGGER on subnet 10.44.2.1
[2019/06/09 12:33:11.628861,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name *<00> with first IP 192.168.1.66 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2019/06/09 12:33:11.628867,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name *<20> with first IP 192.168.1.66 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2019/06/09 12:33:11.628872,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP 192.168.1.66 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2019/06/09 12:33:11.628878,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 192.168.1.66 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2019/06/09 12:33:11.628885,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name BIT-FRIGGER<20> with first IP 192.168.1.66 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2019/06/09 12:33:11.628895,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name BIT-FRIGGER<03> with first IP 192.168.1.66 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2019/06/09 12:33:11.628902,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name BIT-FRIGGER<00> with first IP 192.168.1.66 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2019/06/09 12:33:11.628910,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name WORKGROUP<00> with first IP 192.168.1.66 ttl=0 nb_flags=80 to subnet UNICAST_SUBNET
[2019/06/09 12:33:11.628917,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name WORKGROUP<1e> with first IP 192.168.1.66 ttl=0 nb_flags=80 to subnet UNICAST_SUBNET
[2019/06/09 12:33:11.628924,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name *<00> with first IP 192.168.1.66 ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_SUBNET
[2019/06/09 12:33:11.628929,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name *<20> with first IP 192.168.1.66 ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_SUBNET
[2019/06/09 12:33:11.628935,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP 192.168.1.66 ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_SUBNET
[2019/06/09 12:33:11.628940,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 192.168.1.66 ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_SUBNET
[2019/06/09 12:33:11.628995,  0] ../../lib/util/become_daemon.c:136(daemon_ready)
  daemon_ready: daemon 'nmbd' finished starting up and ready to serve connections
[2019/06/09 12:33:11.629051,  3] ../../source3/nmbd/nmbd_sendannounce.c:212(send_host_announcement)
  send_host_announcement: type 819a03 for host BIT-FRIGGER on subnet 192.168.1.66 for workgroup WORKGROUP
[2019/06/09 12:33:11.629073,  3] ../../source3/nmbd/nmbd_sendannounce.c:212(send_host_announcement)
  send_host_announcement: type 819a03 for host BIT-FRIGGER on subnet 192.168.122.1 for workgroup WORKGROUP
[2019/06/09 12:33:11.629087,  3] ../../source3/nmbd/nmbd_sendannounce.c:212(send_host_announcement)
  send_host_announcement: type 819a03 for host BIT-FRIGGER on subnet 10.44.2.1 for workgroup WORKGROUP
[2019/06/09 12:33:11.732235,  3] ../../source3/nmbd/nmbd_elections.c:79(check_for_master_browser_success)
  check_for_master_browser_success: Local master browser for workgroup WORKGROUP exists at IP 192.168.1.18 (just checking).
[2019/06/09 12:33:15.738602,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name BIT-FRIGGER<20> with first IP 192.168.1.66 ttl=0 nb_flags= 0 to subnet 192.168.1.66
[2019/06/09 12:33:15.738656,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name BIT-FRIGGER<03> with first IP 192.168.1.66 ttl=0 nb_flags= 0 to subnet 192.168.1.66
[2019/06/09 12:33:15.738673,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name BIT-FRIGGER<00> with first IP 192.168.1.66 ttl=0 nb_flags= 0 to subnet 192.168.1.66
[2019/06/09 12:33:15.738688,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name WORKGROUP<00> with first IP 192.168.1.66 ttl=0 nb_flags=80 to subnet 192.168.1.66
[2019/06/09 12:33:15.738702,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name WORKGROUP<1e> with first IP 192.168.1.66 ttl=0 nb_flags=80 to subnet 192.168.1.66
[2019/06/09 12:33:15.738716,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name BIT-FRIGGER<20> with first IP 192.168.122.1 ttl=0 nb_flags= 0 to subnet 192.168.122.1
[2019/06/09 12:33:15.738730,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name BIT-FRIGGER<03> with first IP 192.168.122.1 ttl=0 nb_flags= 0 to subnet 192.168.122.1
[2019/06/09 12:33:15.738743,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name BIT-FRIGGER<00> with first IP 192.168.122.1 ttl=0 nb_flags= 0 to subnet 192.168.122.1
[2019/06/09 12:33:15.738757,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name WORKGROUP<00> with first IP 192.168.122.1 ttl=0 nb_flags=80 to subnet 192.168.122.1
[2019/06/09 12:33:15.738770,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name WORKGROUP<1e> with first IP 192.168.122.1 ttl=0 nb_flags=80 to subnet 192.168.122.1
[2019/06/09 12:33:15.738783,  2] ../../source3/nmbd/nmbd_elections.c:111(check_for_master_browser_fail)
  check_for_master_browser_fail: Forcing election on workgroup WORKGROUP subnet 192.168.122.1
[2019/06/09 12:33:15.738797,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name BIT-FRIGGER<20> with first IP 10.44.2.1 ttl=0 nb_flags= 0 to subnet 10.44.2.1
[2019/06/09 12:33:15.738811,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name BIT-FRIGGER<03> with first IP 10.44.2.1 ttl=0 nb_flags= 0 to subnet 10.44.2.1
[2019/06/09 12:33:15.738825,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name BIT-FRIGGER<00> with first IP 10.44.2.1 ttl=0 nb_flags= 0 to subnet 10.44.2.1
[2019/06/09 12:33:15.738838,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name WORKGROUP<00> with first IP 10.44.2.1 ttl=0 nb_flags=80 to subnet 10.44.2.1
[2019/06/09 12:33:15.738864,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name WORKGROUP<1e> with first IP 10.44.2.1 ttl=0 nb_flags=80 to subnet 10.44.2.1
[2019/06/09 12:33:15.738878,  2] ../../source3/nmbd/nmbd_elections.c:111(check_for_master_browser_fail)
  check_for_master_browser_fail: Forcing election on workgroup WORKGROUP subnet 10.44.2.1
[2019/06/09 12:33:15.738891,  3] ../../source3/nmbd/nmbd_elections.c:361(check_elections)
  check_elections: >>> Starting election for workgroup WORKGROUP on subnet 192.168.122.1 <<<
[2019/06/09 12:33:15.738901,  3] ../../source3/nmbd/nmbd_elections.c:361(check_elections)
  check_elections: >>> Starting election for workgroup WORKGROUP on subnet 10.44.2.1 <<<
[2019/06/09 12:33:17.741541,  3] ../../source3/nmbd/nmbd_serverlistdb.c:411(write_browse_list)
  write_browse_list: Wrote browse list into file /var/cache/samba/browse.dat
[2019/06/09 12:33:18.743044,  2] ../../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
  send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.122.1
[2019/06/09 12:33:18.743143,  2] ../../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
  send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 10.44.2.1
[2019/06/09 12:33:20.745358,  2] ../../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
  send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.122.1
[2019/06/09 12:33:20.745453,  2] ../../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
  send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 10.44.2.1
[2019/06/09 12:33:22.748519,  2] ../../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
  send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.122.1
[2019/06/09 12:33:22.748622,  2] ../../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
  send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 10.44.2.1
[2019/06/09 12:33:24.749947,  2] ../../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
  send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.122.1
[2019/06/09 12:33:24.750048,  2] ../../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
  send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 10.44.2.1
[2019/06/09 12:33:26.752673,  2] ../../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
  send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.122.1
[2019/06/09 12:33:26.752774,  2] ../../source3/nmbd/nmbd_elections.c:201(run_elections)
  run_elections: >>> Won election for workgroup WORKGROUP on subnet 192.168.122.1 <<<
[2019/06/09 12:33:26.752789,  2] ../../source3/nmbd/nmbd_become_lmb.c:538(become_local_master_browser)
  become_local_master_browser: Starting to become a master browser for workgroup WORKGROUP on subnet 192.168.122.1
[2019/06/09 12:33:26.752798,  3] ../../source3/nmbd/nmbd_become_lmb.c:540(become_local_master_browser)
  become_local_master_browser: first stage - attempt to register ^1^2__MSBROWSE__^2^1
[2019/06/09 12:33:26.752824,  2] ../../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
  send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 10.44.2.1
[2019/06/09 12:33:26.752843,  2] ../../source3/nmbd/nmbd_elections.c:201(run_elections)
  run_elections: >>> Won election for workgroup WORKGROUP on subnet 10.44.2.1 <<<
[2019/06/09 12:33:26.752853,  2] ../../source3/nmbd/nmbd_become_lmb.c:538(become_local_master_browser)
  become_local_master_browser: Starting to become a master browser for workgroup WORKGROUP on subnet 10.44.2.1
[2019/06/09 12:33:26.752861,  3] ../../source3/nmbd/nmbd_become_lmb.c:540(become_local_master_browser)
  become_local_master_browser: first stage - attempt to register ^1^2__MSBROWSE__^2^1
[2019/06/09 12:33:27.754131,  3] ../../source3/nmbd/nmbd_serverlistdb.c:411(write_browse_list)
  write_browse_list: Wrote browse list into file /var/cache/samba/browse.dat
[2019/06/09 12:33:31.758988,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name __MSBROWSE__<01> with first IP 192.168.122.1 ttl=0 nb_flags=80 to subnet 192.168.122.1
[2019/06/09 12:33:31.759041,  3] ../../source3/nmbd/nmbd_become_lmb.c:453(become_local_master_stage1)
  become_local_master_stage1: go to stage 2: register the WORKGROUP<1d> name.
[2019/06/09 12:33:31.759056,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name __MSBROWSE__<01> with first IP 192.168.122.1 ttl=0 nb_flags=80 to subnet UNICAST_SUBNET
[2019/06/09 12:33:31.759115,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name __MSBROWSE__<01> with first IP 10.44.2.1 ttl=0 nb_flags=80 to subnet 10.44.2.1
[2019/06/09 12:33:31.759130,  3] ../../source3/nmbd/nmbd_become_lmb.c:453(become_local_master_stage1)
  become_local_master_stage1: go to stage 2: register the WORKGROUP<1d> name.
[2019/06/09 12:33:36.764746,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name WORKGROUP<1d> with first IP 192.168.122.1 ttl=0 nb_flags= 0 to subnet 192.168.122.1
[2019/06/09 12:33:36.764795,  3] ../../source3/nmbd/nmbd_become_lmb.c:354(become_local_master_stage2)
  become_local_master_stage2: registered as master browser for workgroup WORKGROUP on subnet 192.168.122.1
[2019/06/09 12:33:36.764804,  3] ../../source3/nmbd/nmbd_sendannounce.c:70(broadcast_announce_request)
  broadcast_announce_request: sending announce request for workgroup WORKGROUP to subnet 192.168.122.1
[2019/06/09 12:33:36.764854,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name WORKGROUP<1d> with first IP 192.168.122.1 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2019/06/09 12:33:36.764865,  0] ../../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
  *****
  
  Samba name server BIT-FRIGGER is now a local master browser for workgroup WORKGROUP on subnet 192.168.122.1
  
  *****
[2019/06/09 12:33:36.764935,  3] ../../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
  add_name_to_subnet: Added netbios name WORKGROUP<1d> with first IP 10.44.2.1 ttl=0 nb_flags= 0 to subnet 10.44.2.1
[2019/06/09 12:33:36.764946,  3] ../../source3/nmbd/nmbd_become_lmb.c:354(become_local_master_stage2)
  become_local_master_stage2: registered as master browser for workgroup WORKGROUP on subnet 10.44.2.1
[2019/06/09 12:33:36.764953,  3] ../../source3/nmbd/nmbd_sendannounce.c:70(broadcast_announce_request)
  broadcast_announce_request: sending announce request for workgroup WORKGROUP to subnet 10.44.2.1
[2019/06/09 12:33:36.764976,  0] ../../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
  *****
  
  Samba name server BIT-FRIGGER is now a local master browser for workgroup WORKGROUP on subnet 10.44.2.1
  
  *****
[2019/06/09 12:33:41.436637,  3] ../../source3/nmbd/nmbd_sendannounce.c:170(send_local_master_announcement)
  send_local_master_announcement: type 849a03 for name BIT-FRIGGER on subnet 192.168.122.1 for workgroup WORKGROUP
[2019/06/09 12:33:41.436736,  3] ../../source3/nmbd/nmbd_sendannounce.c:189(send_workgroup_announcement)
  send_workgroup_announcement: on subnet 192.168.122.1 for workgroup WORKGROUP
[2019/06/09 12:33:41.436761,  3] ../../source3/nmbd/nmbd_sendannounce.c:170(send_local_master_announcement)
  send_local_master_announcement: type 849a03 for name BIT-FRIGGER on subnet 10.44.2.1 for workgroup WORKGROUP
[2019/06/09 12:33:41.436785,  3] ../../source3/nmbd/nmbd_sendannounce.c:189(send_workgroup_announcement)
  send_workgroup_announcement: on subnet 10.44.2.1 for workgroup WORKGROUP
[2019/06/09 12:33:41.436930,  3] ../../source3/nmbd/nmbd_serverlistdb.c:411(write_browse_list)
  write_browse_list: Wrote browse list into file /var/cache/samba/browse.dat
[2019/06/09 12:33:46.859995,  3] ../../source3/nmbd/nmbd_incomingrequests.c:459(process_name_query_request)
  process_name_query_request: Name query from 192.168.1.6 on subnet 192.168.1.66 for name WPAD<00>
[2019/06/09 12:33:46.860116,  3] ../../source3/nmbd/nmbd_incomingrequests.c:459(process_name_query_request)
  process_name_query_request: Name query from 192.168.1.6 on subnet 192.168.1.66 for name WPAD<00>
[2019/06/09 12:33:47.610812,  3] ../../source3/nmbd/nmbd_incomingrequests.c:459(process_name_query_request)
  process_name_query_request: Name query from 192.168.1.6 on subnet 192.168.1.66 for name WPAD<00>
[2019/06/09 12:33:47.610922,  3] ../../source3/nmbd/nmbd_incomingrequests.c:459(process_name_query_request)
  process_name_query_request: Name query from 192.168.1.6 on subnet 192.168.1.66 for name WPAD<00>
[2019/06/09 12:33:48.385335,  3] ../../source3/nmbd/nmbd_incomingrequests.c:459(process_name_query_request)
  process_name_query_request: Name query from 192.168.1.6 on subnet 192.168.1.66 for name WPAD<00>
[2019/06/09 12:33:48.385443,  3] ../../source3/nmbd/nmbd_incomingrequests.c:459(process_name_query_request)
  process_name_query_request: Name query from 192.168.1.6 on subnet 192.168.1.66 for name WPAD<00>
[2019/06/09 12:34:24.783043,  3] ../../source3/nmbd/nmbd_sendannounce.c:212(send_host_announcement)
  send_host_announcement: type 819a03 for host BIT-FRIGGER on subnet 192.168.1.66 for workgroup WORKGROUP

Offline

#34 2019-06-09 11:35:26

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

sudo smbpasswd -a shmick

And then try to login as shmick

Offline

#35 2019-06-09 11:56:05

dkd6
Member
Registered: 2019-06-08
Posts: 22

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

I've tried this before, but trying again now it shows new output:

Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
No builtin backend found, trying to load plugin
load_module_absolute_path: Module '/usr/lib/samba/pdb/tdbsam.so' loaded
New SMB password:
Retype new SMB password:
Forcing Primary Group to 'Domain Users' for shmick

It still isn't working though.

Offline

#36 2019-06-09 12:02:28

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

try log level = 10, you'll probably need to use a pastebin service to post the logs

Last edited by ugjka (2019-06-09 12:02:37)

Offline

#37 2019-06-09 13:03:35

dkd6
Member
Registered: 2019-06-08
Posts: 22

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

Hi,
I've just tried recreating the share on a live Arch enviroment, and a Clear Linux environment, and the error persists. Whatever the error is, it's within the drive.
Any idea on what it could be? I'm quite clueless...

Offline

#38 2019-06-09 14:14:35

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

I would try getting rid of  ".Trash-1000" folder

And also what is that btrfs folder?

Offline

#39 2019-06-09 14:20:48

dkd6
Member
Registered: 2019-06-08
Posts: 22

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

I've tried getting rid of the Trash-1000. It reappears after being deleted almost immediately.
The btrfs folder is a simple file backup.
I'll try creating a copy on ZFS or XFS and see if the problem persists.
No idea what else can cause this...

Offline

#40 2019-06-09 15:04:02

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

A stab in the dark...
remove these from your conf

        dns proxy = No
        unix extensions = No
        wide links = Yes

Edit: as a sanity check can you mount your share manually? https://wiki.archlinux.org/index.php/sa … l_mounting

Last edited by ugjka (2019-06-09 16:41:22)

Offline

#41 2019-06-09 18:28:58

dkd6
Member
Registered: 2019-06-08
Posts: 22

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

Same result.
Mounting the share manually also throws an 'access denied':

ls: reading directory '/mnt/': Permission denied

Offline

#42 2019-06-09 18:30:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,509

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

stat /mnt

Offline

#43 2019-06-09 18:59:19

dkd6
Member
Registered: 2019-06-08
Posts: 22

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

Here's the output:

  Size: 94              Blocks: 32         IO Block: 4096   directory
Device: 32h/50d Inode: 256         Links: 1
Access: (0775/drwxrwxr-x)  Uid: ( 1000/  shmick)   Gid: ( 1000/  shmick)
Access: 2019-06-09 15:55:54.960646506 +0300
Modify: 2019-06-09 12:05:36.141313887 +0300
Change: 2019-06-09 12:05:36.141313887 +0300
 Birth: 2019-06-03 17:12:59.000000000 +0300

Offline

#44 2019-06-09 19:24:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,509

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

Do you have the level 10 log?

So, it fails on various server OS and also sharing from other FS.
Is there a firewall in the network?

Offline

#45 2019-06-10 14:17:25

quasd
Member
Registered: 2019-06-10
Posts: 1

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

Have you enabled apparmor?

I just had this same problem and the cause was, me enabling apparmor for snaps. Fix was this

edit + it does show up in syslog

Jun 10 23:08:34 ryzen audit[20470]: AVC apparmor="DENIED" operation="open" profile="smbd" name="/run/media/a/Y/" pid=20470 comm="smbd" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Jun 10 23:08:34 ryzen kernel: audit: type=1400 audit(1560175714.703:16781): apparmor="DENIED" operation="open" profile="smbd" name="/run/media/a/X/" pid=20470 comm="smbd" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000

Last edited by quasd (2019-06-10 14:25:18)

Offline

#46 2019-06-10 14:30:21

dkd6
Member
Registered: 2019-06-08
Posts: 22

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

That was it! the share is working again.
I enabled apparmor when first installing (about a year back) and forgot it's even there.
Thank you all for taking the time to help!

Offline

#47 2019-06-10 14:36:20

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

Oh damn should have asked for journal logs *facepalm*

Offline

#48 2019-06-10 14:40:05

dkd6
Member
Registered: 2019-06-08
Posts: 22

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

To think I've spent a week with this over such a simple fix...
That's how you learn, I guess...

Offline

#49 2019-06-10 15:51:24

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: SMB share suddenly denies access - need help troubleshooting [SOLVED]

Mark the thread as [Solved] please

Offline

Board footer

Powered by FluxBB