help needed accessing a password protected samba shares

Q&A's, tips, howto's
Locked
CaveGuy
Posts: 112
Joined: Sun Oct 13, 2002 3:00 pm
Location: Columbus Ohio
Contact:

help needed accessing a password protected samba shares

Post by CaveGuy »

I need help accessing a password protected samba share from windows.

If I log in to the share with my username/password from explorer before starting newlisp

(directory "//server/share") works just fine
as does (open "//server/share/file ....

but when windows decides to reboot, I loose the share and things go south....

I have tried "username:password@//server/share..."
along with a bunch of other wild guesses, none have worked :(

Please any help will be appreciated, getting paged at night is getting old.
Bob the Caveguy aka Lord High Fixer.

CaveGuy
Posts: 112
Joined: Sun Oct 13, 2002 3:00 pm
Location: Columbus Ohio
Contact:

Re: help needed accessing a password protected samba shares

Post by CaveGuy »

solved my problem on windows side with:

(define (login-share sharepath username password)
(exec (string "net use " sharepath " /user:" username " " password)))

for the UNIX equivalent ... I expect I will use smbclient to do the same sort of thing.
Bob the Caveguy aka Lord High Fixer.

Locked