Had samba working fine on Ubuntu 16.04. Could view a list of shares and was able to access them from any of my various workstations and OS's. Upgraded to 18.04, now when I connect to the Ubuntu server from my Mac, I only see my home folder and none of my other shares. I've only tried viewing on my Mac, so maybe other OS's will see them. Still need to fix this on my Mac though. If I click on "Go" in finder I can type the server name and share I want access to and am able to browse that share so they do exist and are accessible.
Funny thing is, I don't have my home folder configured in my
/etc/samba/smb.conf file as I don't use or save anything in my home folder.
I've tried my googlefu, but it's not working for me so not finding anything even close to being relevant to this issue. I don't know where the config for my home folder is coming from and why nothing in my
smb.conf file is visible.
How do I restore the functionality I had with Samba prior to upgrading to 18.04? What changed that would cause this between versions?
Added requested info:
name@host:/etc/samba$ testparm -s Load smb config files from /etc/samba/smb.conf rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) Processing section "[Data]" Loaded services file OK. Server role: ROLE_STANDALONE # Global parameters [global] dns proxy = No log file = /var/log/samba/log.%m max log size = 1000 panic action = /usr/share/samba/panic-action %d security = USER server string = %h server (Samba, Mythbuntu) workgroup = MSHOME idmap config * : backend = tdb [Data] comment = Data Share create mask = 0644 path = /share/data read only = No name@host:/etc/samba$ name@host:/etc/samba$net usershare info --long name@host:/etc/samba$ Nothing is output from that command. Tried with sudo, no difference. user@host:/etc/samba$ cat smb.conf [global] workgroup = MSHOME server string = %h server (Samba, Mythbuntu) log file = /var/log/samba/log.%m max log size = 1000 # syslog = 0 panic action = /usr/share/samba/panic-action %d dns proxy = no security = user [Data] comment = Data Share path = /share/data browseable = yes public = no writable = yes create mask = 0644 directory mask = 0755 user@host:/etc/samba$
Update: I rebooted my machine to Windows 10 and was able to access my shares as I normally have, using the same password as before I upgraded the server. Rebooted back to Mac and realized I'm using a different password to access the server. Same username, but different password. I tried the same password as I did in Windows, but it doesn't work on the Mac. Mac is running High Sierra with the latest version of that OS.
A bit of clarity, I'm using a different password for Samba than I use to log in to Ubuntu. The old password that works with Windows is the samba password. This password worked fine on the Mac before the upgrade. Now, the Mac will not accept this password no matter how I format the username. It does accept the password I use on my account. Hoping that sheds some light on what might be going on. Windows 10, btw, does not accept the password on my account, only the samba password.
Update 2: I've deleted the original output from testparm, changed the contents of my smb.file to a real share that has a real path that I'm willing to share. This change made no difference to what my Mac shows me and I can access it directly. I just don't see it when looking at my Ubuntu server after logging in where all shares used to be shown. I still see my home folder which is not in my smb.conf file. Mac is behaving like it is accessing a different config than Windows since my password is different and the list of shares shown is different. Windows does not show my home folder at all, I only see it on my Mac. Another thing I've noticed that I think is new asI haven't noticed this option before upgrading, Mac now shows me a separate item for the server that allows me to easily see my home x session via VNC.
Update 3: Still trying to figure out why Mac doesn't list the network shares like it used to. Thought this was something with Samba. Tried running smbutil on the Mac, it is able to list all available samba shares and the list matches what is in the smb.conf file. Then I stopped the samba service on the Ubuntu server. I can still log in via Finder and Finder still shows and allows me to connect to my "Home Directory". I have not been able to find anything about what is providing this service in Ubuntu, but it's not Samba. The advertising is probably Bonjour, but I've found nothing about how to configure this. This is probably specific to Mac and there's no documentation that I can find about how this is done.