LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-14-2024, 06:02 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,564

Rep: Reputation: 177Reputation: 177
unable to mount samba share on Windows 11


I recently upgraded to Windows 11. This is the first time since doing so I have tried to map a drive which is a samba share on a Linux host. The samba share is:
Code:
# smbclient -L localhost

Anonymous login successful

        Sharename       Type      Comment
        ---------       ----      -------
        homes           Disk      Home Directory on quadmon
The smb.conf definition for homes is:
Code:
[homes]
   comment = Home Directory on quadmon
   browseable = yes
   writable = yes
   create mask = 0660
The Windows host can ping and ssh to the Linux by hostname quadmon. When trying to map to \\quadmon\homes on Windows I get, "Windows cannot access \\quadmon\homes.". I've also tried using the IP. When I click on the browse button in the 'Map Network Drive' dialog it does not see quadmon. I do have wsdd.py running on Linux which is supposed to facilitate discovery by Windows computers.

There are no messages on the Linux /var/log files related to this problem.

Any idea what is going wrong here? Do I need something in PAM? Different settings in /etc/samba/smb.conf?

Global settings in smb.conf are:
Code:
[global]
workgroup = WORKGROUP
server string = QUADMON Samba Server
security = user
unix password sync = yes
kernel oplocks = false
log file = /var/log/samba.clients
   max log size = 50
   socket options = TCP_NODELAY 
local master = no
domain master = no
preferred master = yes
   dns proxy = no

Last edited by mfoley; 04-14-2024 at 06:04 PM.
 
Old 04-14-2024, 07:05 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,730

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
It isn't a Windows problem. I am running debian 12 samba 4.17.12 and I see a similar bug. I would expect as in the past that [homes] should automatically create a home share for all regular users regardless but if the homes share is browseable, with anonymous login you see only [homes], if you login as your regular user you see both homes and the user's share. With anonymous login I also see a nobody share which is strange. I guess I should go look at the release notes for that version and see if there is anything relevant. You should be able to manually access the user's actual home from Windows i.e

\\linux_hostname_or_IP_address\username

Windows does not allow anonymous logins anymore so you need to create a samba password for your user if it does not exist.
 
Old 04-14-2024, 11:27 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,564

Original Poster
Rep: Reputation: 177Reputation: 177
Well, something is very wrong. Your suggestion of \\host\username did not work. Same results. I removed the [homes] share and created one with my username and path to /home/mfoley. That didn't work either. I changed the samba pw with 'smbpasswd mfoley'. Nada. Still no messages in /var/log/samba.client. In fact none of my shares are working. All give the message "Windows cannot access ...".

Interestingly, on another LAN, with the Linux host also being part of a Windows Active Directory domain, I have no problem mapping drives. This problem child is not a domain members, so authentication is via normal means (smbpasswd). Surely there are people out there with a Slackware 15.0 samba server and Windows 11 clients!
 
Old 04-15-2024, 03:52 PM   #4
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,564

Original Poster
Rep: Reputation: 177Reputation: 177
OK, I'm an idiot! Firewall was blocking connection. After I enabled ports 139 and 445 on Linux, everything worked. Duh!
 
  


Reply

Tags
fails, mount, samba4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Mount samba share on Slackware: mount error(6) from mount.cifs frushiyama Slackware 11 01-22-2015 07:12 PM
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
mount windows share export to samba share -> improve network performance tuning newuser77 Linux - Server 1 07-23-2008 11:28 AM
mount NFS to mount point then share out the mount point ionic_slim Linux - Networking 2 04-20-2008 12:17 PM
show the samba share but can't mount the share badall Linux - Server 3 05-30-2007 04:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration