Malcolm Baldridge
2004-Mar-26 21:54 UTC
[Samba] Automount from Windows w/o logging in first?
I am trying to do something which should seem very straightforward, not to mention, not unusual for load-balanced web servers, namely: providing a faceless/login-less mounting of SMB shares from NT4 and Win2K servers. Yes, I accept that I will need to stash a plaintext login key in some script or registry key. The security impacts are acceptable. I have the latest Samba 2.2.x server, and a bunch of NT4 (soon to be Windows 2000 Server) web-servers from which I'd like to serve IISROOT directories residing on a samba share. I've tried NTResKit srvany.exe'ing a "net use" command and lots of other hacks to wire in a "service" which provides a complete "net use W: \\server\WEB\ webpassword /user:weblogin" sort of thing. No dice. Soo.... how DO you automatically mount shares without having to login at the console, so that IIS/Cold-Fusion can serve content out of the Samba share? Thanks! M.B.
On Fri, 2004-03-26 at 14:53, Malcolm Baldridge wrote:> I am trying to do something which should seem very straightforward, > not to mention, not unusual for load-balanced web servers, namely: > providing a faceless/login-less mounting of SMB shares from NT4 and > Win2K servers. > > Yes, I accept that I will need to stash a plaintext login key in some > script or registry key. The security impacts are acceptable. > > I have the latest Samba 2.2.x server, and a bunch of NT4 (soon to be > Windows 2000 Server) web-servers from which I'd like to serve IISROOT > directories residing on a samba share. > > I've tried NTResKit srvany.exe'ing a "net use" command and lots of > other hacks to wire in a "service" which provides a complete "net use > W: \\server\WEB\ webpassword /user:weblogin" sort of thing. No dice. > > Soo.... how DO you automatically mount shares without having to login > at the console, so that IIS/Cold-Fusion can serve content out of the > Samba share?---- why not use dfs? Craig
On Fri, 2004-03-26 at 19:45, Malcolm Baldridge wrote:> > why not use dfs? > > I know nothing about it, really. The main file repository must be a unix > system because I have automated revision control and backup regimes for > that, but not for Windows. > > Some givens: > > 1) File servers are not Windows machines. > 2) File clients are Windows NT4 and 2000 Server machines, some of which run > under vmWare, some of which run natively on the hardware. I'm shifting away > from natively-run Windows systems altogether due to support hassles. >--- let's stay on the list. DFS is windows version of nfs exports/mounts Samba 3 supports dfs. I don't think 2.2.x does. Microsoft offers Services for Unix for free - you can mount nfs shares on Windows. Windows share mounts in user space don't work because someone has to log in to Windows machine - it's something that has to run as a service as you have discovered. The systems running vmware should have no problem whatsoever mounting the shares from UNIX repositories via nfs. In my mind it's either nfs mounts or dfs or you have to 're-think' your options (i.e. rsync files on each windows server from 'master') Craig
Possibly Parallel Threads
- Lots of automount help for Linux clients, but how about FROM Windows?
- [Bug 3481] New: PAM_TEXT_INFO messages are shown twice if they are the last conversation
- Solving problems with read.fwf(), perl under WinNT (was: Re: Using metric scaling)
- How can Windows 2000 mount a share as a service?
- Samba as a PDC / Windows NT 4 SP6a as a BDC