Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Specify the domain in SMB login strings Network
My default Workgroup in the Windows domain does not equal my login Workgroup. I found that you can specify Workgroup (along with user ID) in the SMB connect to string. For example:
 smb://WORKGROUP;machine.somewhere.com/Share
This works to specify WORKGROUP for login. This can be expanded to:
 smb://WORKGROUP;User@machine.somewhere.com/Share
I hope this helps! It has taken me a very long time to find this. With this, and Add to Keychain, I can now connect without entering the password! Before, since the WORKGROUP was wrong, it prompted me for password.
    •    
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[30,924 views]  

Specify the domain in SMB login strings | 10 comments | Create New Account
Click here to return to the 'Specify the domain in SMB login strings' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Specify the domain in SMB login strings
Authored by: TomorrowPlusX on Dec 10, '03 10:59:53AM

perhaps somebody can help me here with a related issue:

I have a number of servers at work each with shares by the same name ( wwwroot ), so I can't mount them all to the desktop simultaneously.

Does anybody know of an SMB command to give them custom names, instead of the share name only, like "wwwroot on machineXYZ"



[ Reply to This | # ]
Specify the domain in SMB login strings
Authored by: TvE on Dec 10, '03 12:25:28PM

I am pretty sure that you can specify that in a samba.conf file - where ever that file os - look @ samba.org or google



[ Reply to This | # ]
Specify the domain in SMB login strings
Authored by: mayodreams on Dec 11, '03 10:24:57AM

If you are on a local network, you need to change one little thing.

smb://WORKGROUP;user:password@ip_address/Share

I tried using the aforementioned format to no avail, but this one works. Trying to specify a machine name and IP was giving me the error.



[ Reply to This | # ]
Specify the domain in SMB login strings
Authored by: osxpounder on Dec 10, '03 12:28:24PM

Oh, yes! You did help! I've been beating my brains out today trying to figure out how to connect to a PC that my Jag system could see fine, but Panther could only see, not connect to. It kept giving me "error -50", whatever the heck that means, and your tip helped me get past this & get logged into my stinky old PC. Thanks loads!!!!

---
--
osxpounder



[ Reply to This | # ]
Specify the domain in SMB login strings
Authored by: markuswarren on Dec 10, '03 12:43:45PM

just thought I would expand the URL a bit more to add:

smb://WORKGROUP;User:Password@machine.somewhere.com/Share/

And this works for AFP url's too, though you'd exclude the WORKGROUP item.

I use this format a lot, and if you get this added to the keychain, it's really cool. Of course leaving off the password item does make it more secure if you happen to add it to the favorites list in connect to.



[ Reply to This | # ]
Location files
Authored by: pøbel on Dec 11, '03 05:04:39AM
And this also works with location files. Select the URL and drag it to the desktop. You now have a clickable location file that you can put in the Dock for easy access. I've been looking for a way to make this work with smb, but haven't figured out the bit about the workgroup.

Thanks :-)

[ Reply to This | # ]

Specify the domain in SMB login strings
Authored by: teflon on Dec 11, '03 09:18:08AM

is this a mis-type?

the format is actually:

smb://WORKGROUP/machine.somewhere.com/Share



[ Reply to This | # ]
Specify the domain in SMB login strings
Authored by: jesboat on Dec 11, '03 09:32:50AM

Don't quote me on this, but I think that it's that way one Linux and this way on Mac OS X and the *BSD

---
--
With no walls or fences on the 'net, who needs Windows or Gates?



[ Reply to This | # ]
Specify the domain in SMB login strings
Authored by: opudeldix on Dec 23, '03 01:25:41AM
Specify the domain in SMB login strings
Authored by: vampyre on Jan 30, '04 05:24:30AM

Hi all,

I have used the smb login strings to much success except recently, when my company installed some firewall setup and I'm no longer 'given permission' to some folders, i.e., I'll get a syserr and fail to log in using the SMB login strings. It is not true as I can still log on to those same folders in WinXP.

It is strange as some other folders are not affected, although on a different domain. I notice those which I can't access are having the 'shortcut' icons when I do a Browse Network. Of cause when I double click on them in Browse Network, they disappear in my Finder Network window with the message that they can't be opened cuz original item cannot be found. Is this (shortcut) the reason? That they are actually links only and SMB doesn't 'work' here?

I'll appreciate if someone can shed some light as I really need to access those folders. I'm even willing to switch back to Jaguar if I have to.

Cheers,
Danny



[ Reply to This | # ]