Page 1 of 1

help needed accessing a password protected samba shares

Posted: Wed Oct 01, 2014 7:54 pm
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.

Re: help needed accessing a password protected samba shares

Posted: Thu Oct 02, 2014 4:46 pm
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.