This sounds more like a problem with the script than with Samba.
Whenever I've written a script that automatically mounts an NT share
(script runs on a Linux box connecting to an actual NT machine so
opposite of what you're asking about.. same difference in the end
probably ;) I pass the username and password in the mount command. That
way the script could in theory mount a share as any valid NT user (who
has permission on the share of course).
That's the best I can think of and I might be completely wrong...
It also sounds like the script inherits the properties of the NT user it
runs as, so there's no need to pass user/pw in the command line. (pure
guessing, never had to script such a thing from the NT side, thank God!)
Fintan Ryan wrote:
>> Hi Folks,
>> I got the following question this morning from a friend of mine, but I'm
> a bit clueless as far as Samba is concerned, so any suggestions would be
> appreciated. If you want to reply to the person who sent it to me
> directly mail me offlist and I'll send you his address.
> Not sure if this is your area of expertise, or if you know
> anyone who could help out, but I have a little Samba problem that I'm
> trying to fix for the guys over here. Basically the background is
> this: We have an NT box running SAP (I know, I know...) and one of the
> guys has written a script that will generate an output file and write it
> to a UNC path (ie any other shared NT directory). We want to be able to
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!