[Samba] How can Windows 2000 mount a share as a service?

Jacob A. Alifrangis jalifrangis at xialys.com
Sat Jul 10 21:08:53 GMT 2004


Only applications specifically written as services can be used as
services.

What you need to do is make a mapping in IIS to a virtual folder

	Select the web you are working on
	Right click -> Create new virtual directory
	Up comes a wizard....

	In that wizard name your new virtual directory [content] or
whatever, click next
	
The next dialog will ask for the path: \\marvin\share
	Uncheck the box below that says "Always use the authenticated
user's Credentials"
	Enter a username and password, click next
	Set the attributes:

		Read
	Clear:
		Run scripts
		Execute
		Write
		Browse

Click next
	

Now click finish.



-----Original Message-----
From: samba-bounces+jalifrangis=xialys.com at lists.samba.org
[mailto:samba-bounces+jalifrangis=xialys.com at lists.samba.org] On Behalf
Of Malcolm Baldridge
Sent: Friday, July 09, 2004 5:12 PM
To: SAMBA
Subject: [Samba] How can Windows 2000 mount a share as a service?

I've asked every M$ expert I know, trolled through M$ TechNet,
experimented
with SRVANY/INSTSRV login scripts which hard-code username/passwords to
login to a Samba 2.2.8a SMB server.  I've experiment with and without
the
"Allow service to interact with Desktop" switch turned on.

I am stuck. :(   I can find no way to mount a share as a service, so
that
IIS can serve web-pages from a shared content directed located on a
network
drive.

When I run my login script when I'm logged in as the Administrator or
another user, the script works fine.  The share's mounted and available
as
the specified drive letter specified in the script.

I'm using just the standard "net use" as follows:

net use z: \\192.168.0.1\Web mypassword /user:webuser

I've fiddled with adding a domain name to the user, to no avail. I've
experimented with using the samba server's "Netbios" name as well as DNS
name, to no avail.

The script only seems to work when SOMEONE is logged into the machine.
When
it's run as a service, no dice.  It just fails with a single digit error
code (5, I think).  The error is opaque and non-descriptive.  It's as if
SMB
mounting was specifically prohibited by the OS at some internal bowel
juncture.

This is insane.  Surely, people running web-server clusters behind load
balancers don't manually synchronise their content!  My web application
accepts user-uploaded files, so I can't use the "manual resync" method
anyway.  The upload area needs to be shared by all web-server members.

There must be a solution for this very common requirement.  I don't want
or
need a "SAN" block-device-level solution, I want a file-level solution.

If anyone can share some ideas or experise, I would be very grateful.
This
must be a solved problem somewhere.

=MB=
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba




More information about the samba mailing list