Thanks guys;
So far, I don't see any way to get Windows 10 to see the Ubuntu shares without enabling SMB V1.
However, I have just stumbled upon "The Official Samba How to and Reference Guide", which appears to be a very comprehensive manual for Samba V3.
I will read through the sections I need, to get a better understanding of what Samba is, and the many configuration options.
Because I jumped into the deep end of the Samba pool without really understanding what it is and how to use it, I have spent much time going in circles until I finally got things working. Reading through the book should help me a great deal.
As for my Optimum router: I do not see any wifi hotspot when I scan with my phone. I do recall that Verizon FIOS did have that feature, but so far I haven't seen it with Optimum, although I have noticed it on my phone while walking around town. It seems to be available only at public buildings such as the library and bus or train stations. I think there's a public wifi near the High School as well - for obvious reasons - but I'm not sure if it's Optimum or FIOS, as both have cables in my area.
Yes, you need to have a basic understanding of these things before committing yourself to going further.
Samba is actually pretty easy to understand and most Linux distros have baked it into their distros in such an easy to understand way because SMB is still what keeps people connected to networks be it at work at home or anywhere else. And because most people who want to get connected to shares on their network are not sysadmins or anybody with particularly technical backgrounds. In Ubuntu you can actually enable file sharing (SMB) by right-clicking the folder you want to share and click 'Local Network Share'. Ubuntu will do the configuring itself. That is if you want a simple automated way of sharing things.
I have to say that your config file looks a little bit all over the place if I'm honest. My config file for Samba looks completely different. Usually you start with a default example template that comes when you install Samba (smbd, if it's not already installed). Did you run the command
Code:
cp /etc/smb.conf /etc/smb.conf.bak
before editing anything? You should ALWAYS create a backup of the original config file in case you mess something up. That way you can run
Code:
rm -i /etc/smb.conf && mv /etc/smb.conf.bak /etc/smb.conf
to restore the original config file. And then you can do the same copy command to further copy it to your hearts content as many times as you edit the config file.
It seems to me like you have indeed jumped in at the deep end. I would suggest starting from scratch. You could have made an infinite number of changes of which you may not even know you did or how to undo them. Try this:
Code:
sudo apt-get purge samba samba-common
sudo rm -rf /etc/samba/ /etc/default/samba
sudo apt-get install samba
This will purge Samba, remove the leftover folders (if any) and then install it again. You can use && after these commands to tell bash if the last command was successful execute the next one. This way things are pretty much semi-automated to a degree. Oh and you can add
at the end of the install samba command to assume yes, which basically tells the package installer you're not one for dilly-dallying around waiting for confirmations. I wouldn't put [CODE[-y[/CODE] at the end of every command though as you might find yourself whisking through important stuff but for this scenario it's ideal.
When samba installs you can begin setting up a user;
Code:
useradd samba --shell /bin/false OR /sbin/nologin
The long-form option is to make sure your user doesn't have shell access (for increased security)
Setup the password for the user who will access samba
Set the permissions for the folder you want to share to allow the user assigned to samba to access it
Code:
chown samba:samba /your/samba/share/here
The : indicates the user AND the group which will avoid any potential inaccessibility if the group the user belongs to doesn't have access
Follow the config backup process above BEFORE editing anything in smb.conf
Add to to the end of the file in your fave text editor
Code:
[<folder name here>]
path = /home/<user_name>/<folder_name>
valid users = <user_name>
read only = no
This is of course a very basic configuration for your Samba share but it's enough to get you up and running. Make sure you add the user you want to allow access
Restart the smbd service
Code:
sudo service smbd restart
And now test the parameters set
This will check for basic errors
Now try connecting from Windows
Code:
\\IPADDRESS\folder\
You should get a prompt asking you to type in the username you setup followed by the password to access Samba from that user.
This should work. If not it's definetly got something to do with Windows and not your configuration as this is the way to setup Samba and presuming you've not changed a bunch of stuff in Ubuntu should work out of the box.
Reply back with your results