help needed accessing a password protected samba shares

Q&A's, tips, howto's

help needed accessing a password protected samba shares

Postby CaveGuy » Wed Oct 01, 2014 7:54 pm

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

Re: help needed accessing a password protected samba shares

Postby CaveGuy » Thu Oct 02, 2014 4:46 pm

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.
CaveGuy
 
Posts: 112
Joined: Sun Oct 13, 2002 3:00 pm
Location: Columbus Ohio


Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 3 guests

cron