I have a windows machine named like "computer 1", I haven't been able to get it under /etc/fstab, linux complaints about wrong syntax. I have tried: "//computer 1/myshare" /my/path/ smbfs username=myuser,password=mypass,defaults,user,auto 0 0 //computer 1/myshare /my/path/ smbfs username=myuser,password=mypass,defaults,user,auto 0 0 //computer_1/myshare /my/path/ smbfs username=myuser,password=mypass,defaults,user,auto 0 0 Anyway to get it working? Thnx in advance. P.S.: I can't change computer's name, its an external computer :(
You're going to have problems with the space in the name. There is even a MS Qdoc that states what characters should be used when naming Windows clients and a space is not one of them. -- Brian ----- Original Message ----- From: "Alberto Mesas Navarro" <alberto@sdrsl.com> To: <samba@samba.org> Sent: Thursday, March 28, 2002 5:46 AM Subject: [Samba] Name spaces in fstab> I have a windows machine named like "computer 1", I haven't been able toget> it under /etc/fstab, linux complaints about wrong syntax. > > I have tried: > > "//computer 1/myshare" /my/path/ smbfs > username=myuser,password=mypass,defaults,user,auto 0 0 > //computer 1/myshare /my/path/ smbfs > username=myuser,password=mypass,defaults,user,auto 0 0 > //computer_1/myshare /my/path/ smbfs > username=myuser,password=mypass,defaults,user,auto 0 0 > > > Anyway to get it working? > > Thnx in advance. > > P.S.: I can't change computer's name, its an external computer :( > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Try //computer\ 1/myshare. At 12:46 PM 3/28/02 +0100, Alberto Mesas Navarro wrote:>I have a windows machine named like "computer 1", I haven't been able to get >it under /etc/fstab, linux complaints about wrong syntax. > >I have tried: > >"//computer 1/myshare" /my/path/ smbfs >username=myuser,password=mypass,defaults,user,auto 0 0 >//computer 1/myshare /my/path/ smbfs >username=myuser,password=mypass,defaults,user,auto 0 0 >//computer_1/myshare /my/path/ smbfs >username=myuser,password=mypass,defaults,user,auto 0 0 > > >Anyway to get it working? > >Thnx in advance. > >P.S.: I can't change computer's name, its an external computer :( > > >-- >To unsubscribe from this list go to the following URL and read the >instructions: http://lists.samba.org/mailman/listinfo/samba-------------- Martyn Ranyard I am not a member of the samba team, and anything that I say may not be as accurate as a response from one of the team. I reply to save those more qualified time, which can more usefully be spent developing SAMBA further.
Or try the IP-Adress of the computer, if it's static: //123.456.789.012/share Christian> > Try //computer\ 1/myshare. > > At 12:46 PM 3/28/02 +0100, Alberto Mesas Navarro wrote: > >I have a windows machine named like "computer 1", I haven't been able to get > >it under /etc/fstab, linux complaints about wrong syntax. > > > >I have tried: > > > >"//computer 1/myshare" /my/path/ smbfs > >username=myuser,password=mypass,defaults,user,auto 0 0 > >//computer 1/myshare /my/path/ smbfs > >username=myuser,password=mypass,defaults,user,auto 0 0 > >//computer_1/myshare /my/path/ smbfs > >username=myuser,password=mypass,defaults,user,auto 0 0 > > > > > >Anyway to get it working? > > > >Thnx in advance. > > > >P.S.: I can't change computer's name, its an external computer :( > > > > > >-- > >To unsubscribe from this list go to the following URL and read the > >instructions: http://lists.samba.org/mailman/listinfo/samba > > -------------- > Martyn Ranyard > > I am not a member of the samba team, > and anything that I say may not be as > accurate as a response from one of the > team. I reply to save those more > qualified time, which can more usefully > be spent developing SAMBA further. > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >_(_)_ wWWWw _ @@@@ (_)@(_) vVVVv _ @@@@ (___) _(_)_ @@()@@ wWWWw (_)\ (___) _(_)_ @@()@@ Y (_)@(_) @@@@ (___) `|/ Y (_)@(_) @@@@ \|/ (_)\ / Y \| \|/ /(_) \| |/ | \ | \ |/ | / \ | / \|/ |/ \| \|/ jgs|// \\|/// \\\|//\\\|/// \|/// \\\|// \\|// \\\|// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
On Thu, 28 Mar 2002, Alberto Mesas Navarro wrote:> I have a windows machine named like "computer 1", I haven't been able to get > it under /etc/fstab, linux complaints about wrong syntax. > > I have tried: > > "//computer 1/myshare" /my/path/ smbfs > username=myuser,password=mypass,defaults,user,auto 0 0 > //computer 1/myshare /my/path/ smbfs > username=myuser,password=mypass,defaults,user,auto 0 0 > //computer_1/myshare /my/path/ smbfs > username=myuser,password=mypass,defaults,user,auto 0 0 > > > Anyway to get it working?The problem lies in the mount command, not in smbmount. mount does not accept space in the "device" part, and \ does not escape either. If the machine is NT (not win9x) then it should be possible to ignore the machine name and put the right ip in the list of options: //noname/myshare /my/path smbfs username=myuser,password=mypass,ip=1.2.3.4,defaults,user,auto 0 0 smbmount will then connect to the right ip, but with the wrong name. When that fails it will try again with the generic name "*SMBSERVER" which is accepted by more recent smb servers. /Urban