No smb1 on the client and Windows can't browse for netbios names ( which it doesn't need to do if the other machines are Windows ).I am new to Ubuntu and still learning so please bear with me. It disables smb1 not only on it's server side but on it's client side. ** And if your Windows machine is Win10 you have a further complication. Anything that bypasses the netbios mechanism is a good thing. Your router should be able to set this up for you so that at least the Ubuntu machine always has the same ip address. ** Static ip addresses are your friend here. and eventually there won't be any in Win10 either so don't try to access this Linux machine through the HomeGroup. ** Remember there is no such thing as a HomeGroup in Linux. This whole netbios mechanism is a primitive mess and when you restart nmbd a whole process starts between all the hosts on your network which gets resolved in 10 minutes or so. Then go and make yourself a nice pot of tea. Save the file then restart samba in this order: sudo service smbd restart If your host name is already 15 characters or less you can omit that line - but keep the name resolve order line. The netbios name doesn't have to be "ubuntuserv" but it does have to be 15 characters or less in length. Name resolve order = bcast host lmhosts wins For example if you are not a member of the sambashare group you will get an error message telling you that you do not have permissions to create a usershare.ĮDIT: As far as the Windows machines being able to "discover" or see the Ubuntu machine and since this is a home network I would suggest the following:Įdit /etc/samba/smb.conf and right under the "workgropup = WORKGROUP" line add these two: netbios name = ubuntuserv Usershare errors are remarkably specific. Save the file then restart smbd: sudo service smbd restartĪnd finally run this command to see if there are any errors: testparm -sĪs for your error message when using usershare ( Local Network Share ) is there a line after the one you posted because what you posted is a statement of fact not an error. Then copy over the default: sudo cp -a /usr/share/samba/smb.conf /etc/samba/ Make a copy of your current smb.conf: sudo mv /etc/samba/smb.conf /etc/samba/ If you don't have it there is a copy of it which you can copy to the correct location. My recommendation is to restore your original smb.conf if you have it. Configuring a Samba server has changed a bit over the years especially since Ubuntu 11.10.įor one: security = share will disable the samba server service ( smbd ) from running so that will not work today. It is best to tell people what version of Ubuntu you are using when you ask a question. I do believe I found the HowTo you referenced: Not sure how that ties into all the rest of this. The default name seems to just be WORKGROUP (prior to this I had been using Homegroups among all Windows). I also noticed the name of the workgroup from the other (Windows) computers doesn't automatically show up on Ubuntu. Is this tutorial outdated and this file no longer works with these commands? WARNING: Ignoring invalid value 'share' for parameter 'security' Path =/mnt/storage2/ #(Path to the shared folder or mount-point of harddrive)Īfter filling out the fields as they said, I got the same errors as before in addition to one saying 'Unknown parameter encountered: "netbios" #(Set this to the name you want the shared folder to have)Ĭomment = entire shared drive #(Comments about the shared folder) Netbios = HOME #(Set this to your Windows workgroup) Workgroup = HOME #(Set this to your Windows workgroup) Which I attempted to do, and it said to have the following in there: I then saw a tutorial online on creating a home media server with Ubuntu, and the steps said to create a smb config file (gedit /etc/samba/smb.conf). Rlimit_max:increasingrlimit_max(1024) to minimum Windows limit (16384) Says 'Samba's testparm returned error1: Load smb config files from /etc/samba/smb.conf When I right click a folder and click 'Local Network Share', and check 'Share this folder' as well as 'Allow others to create and delete files in this folder' I get errors Is this the simplest way to enable file sharing to other computers in your home network, if they run Windows instead of Ubuntu?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |