Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

samba connection fails 2

Status
Not open for further replies.

richardko

Programmer
Jun 20, 2006
127
US
Hi,
I am trying to mount a windows machine on samba network but having issues. When I type this:
mount -t smbfs -o username=username,password=password //WORKGROUP/192.168.0.77 /mnt/win

I get the error:

7831: Connection to WORKGROUP failed
SMB connection failed

Also when I type this I get the message:
smbclient -U ups -L //WORKGROUP/192.168.0.74
Connection to WORKGROUP failed

Any idea?
Thanks
 
Don't use 'Workgroup'. It is quite meaningless & not required (even in Windows). Just use machine name (or IP as you have).
 
Hi smah,
Could you give me an example of how to do this? I tried:
mount -t smbfs -o username=username,password=password 192.168.0.77 /mnt/win

mount -t smbfs -o username=ups,password=ups //192.168.0.77 /mnt/win

mount -t smbfs -o username=ups,password=ups //WORKGROUP/192.168.0.77 /mnt/win


mount -t smbfs -o username=username,password=password,ip=192.168.0.77 //WORKGROUP /mnt/win


but non of them work
 
You may try this:
mount -t smbfs -o username=ups,password=ups [!]'[/!]//192.168.0.77[!]/C$'[/!] /mnt/win

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
After looking a little closer, you seem to be missing the actual Windows share name also. For discussion, let's say the Windows machine is named server and has an available shared folder named share. The Windows user named name with password pwd has the required permissions on the Windows machine.

Therfore, to mount this share in the linux filesystem as /mnt/win, you'd use the command:

mount -t smbfs -o username=name,password=pwd //server/share /mnt/temp
 
Ok, PHV has done better than me. He has used the administrative share !C$ and used the correct variable names that you used earlier. I didn't even use the same names that I specified at the beginning of my post [nosmiley]
 
Hi,
Thank you for all the help. After creating the user, this is what worked for me:

mount -t smbfs -o username=test,password=test '//192.168.0.77/C' /mnt/win


Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top