You are not logged in.

#1 2020-09-26 04:04:40

Inotamira
Member
Registered: 2020-09-16
Posts: 10

[Solved] Samba refuses connections no matter what I do

I've been through the wiki, I've looked at countless posts that have had a similar issue and tried the solutions posted there, yes I've added the user that's meant for the credentials, yes I know the password is correct. I've deleted and recreated my smb.conf at least 3 times, and nothing I do seems to work. I can't even access the share from the computer that's sharing it anymore and I have no idea why, because it was working literally yesterday, and yes I've also tried simply restarting the machine, restarting smb and nmb dozens of times.

Here's my current smb.conf

[global]
   workgroup = WORKGROUP
   dns proxy = no
   log file = /var/log/samba/%m.log
   max log size = 1000
   client min protocol = SMB2
   server role = standalone server
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
   pam password change = yes
   map to guest = Bad Password
   usershare allow guests = yes
   name resolve order = lmhosts bcast host wins
   security = user
   guest account = nobody
   usershare path = /var/lib/samba/usershare
   usershare max shares = 100
   usershare owner only = yes
   force create mode = 0070
   force directory mode = 0070

[homes]
   comment = Home Directories
   browseable = no
   read only = yes
   create mask = 0700
   directory mask = 0700
   valid users = %S

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no

[Inos-Drive]
   comment = Inos Drive
   path = /run/media/inotamira/Inos-Drive/
   browsable = yes
   read only = no
   guest ok = no


Edit: A completely bizzare thing I've noticed, is I CAN connect to my home folder from another device, not the NAS drive.

Edit 2: I solved this in a kind of unconventional way, I simply moved the mount points into my home folder, and since I can access my home folder no problem, it doesn't really matter. It doesn't exactly resolve what the hell is going on with the original share, but screw it, it works, and I don't have to care anymore.

Last edited by Inotamira (2020-09-26 04:45:00)

Offline

#2 2020-09-26 06:44:07

seth
Member
Registered: 2012-09-03
Posts: 16,575

Re: [Solved] Samba refuses connections no matter what I do

Please always use code tags when posting file contents.
Did you check the smbd log? https://wiki.archlinux.org/index.php/Samba#Installation
Since /run/media holds dynamic mount points, there could be an issue (eg. the mount not available when smbd starts etc…)

Offline

#3 2020-09-26 14:15:54

Inotamira
Member
Registered: 2020-09-16
Posts: 10

Re: [Solved] Samba refuses connections no matter what I do

seth wrote:

Please always use code tags when posting file contents.
Did you check the smbd log? https://wiki.archlinux.org/index.php/Samba#Installation
Since /run/media holds dynamic mount points, there could be an issue (eg. the mount not available when smbd starts etc…)

I couldn't figure out how to do so here in the arch forums and didn't see where that was. I did check both smbd and nmbd, and nothing really stood out as odd or out of place. Also, I have them permanently mounted to these points via fstab. For further clarification, moving the NAS drive to the new mount point in my home folder, then sharing the drive directly there, results in the same problem, but I can at least navigate to it from my shared home directory.

Last edited by Inotamira (2020-09-26 14:44:20)

Offline

#4 2020-09-26 17:57:26

seth
Member
Registered: 2012-09-03
Posts: 16,575

Re: [Solved] Samba refuses connections no matter what I do

There's an edit button in the lower right corner of your posts and a bbcode description below the quick reply box, https://bbs.archlinux.org/help.php#bbcode

What does the log say about the share? Does it mention it at all?

Offline

Board footer

Powered by FluxBB