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

2004-07-10 Thread Jacob A. Alifrangis
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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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


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


[Samba] Wishlist for v4.0 Integration / Setup of samba.

2004-07-05 Thread Jacob A. Alifrangis
Is there maybe a way to consolidate (At the developer level) all of the tools and 
methods into one concise list.
 
samba is not really tightly integrated with the OS, Is there maybe a way to 
re-organise the way samba works? maybe to make it completely emulate the way it works 
on the windows command line?
 
 
for example make everything integrated into the net command.
 
net use (file system mounting)
net passwd
net start,stop,restart [service] would trigger the /etc/rc.d/[service] script.
net print [cups-samba]
 
so on and so forth.
 
there is an easier way.
 
We should also maybe invest some time into making a better (wizard) routine for 
configuring samba, joining it to the domain, bringing it up as an ads/pdc/bdc machine.
 
There should also be a way to configure ldap and samba to work together, this manual 
config-shit is useless.
 
A good method might be to detect the current network setup and make the appropriate 
changes and settings.
 
There should also be a net share command to quickly export trees from the commandline.
 
the tool should work on the commandline first, then X. not all servers have an X 
server running.
 
Well, hope I could help and bring a little insight into the group.
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Samba Problems with Authentication against a 2K3 ADS Server

2004-06-29 Thread Jacob A. Alifrangis
Ok, here's the problem now..

 

I have Two unix boxes and Four Windows Servers here.

 

The two unix boxes marvin and muse are running rhes 3 and suse 9.1
stock.

 

Marvin uses the smbpasswd file to authenticate; I just have to sync the
passwords manually.

I am trying to setup muse using winbind and samba 3.0.2a

 

The problem is that the XP machines on the network don't want to talk to
muse, I get an Access Denied message of sorts preceeded by a logon
request dialog.

 

The samba/log.smbd gives this explanation:

 

[2004/06/28 23:40:56, 0] auth/auth_util.c:make_server_info_info3(1120)

  make_server_info_info3: pdb_init_sam failed!

 

Very useful; nothing on google is useful either..

 

Here's my smb.conf:

# Global parameters
[global]
workgroup = BRAINDONORS
realm = BRAINDONORS.NET
server string = Music / CDImage Server
security = ADS
auth methods = winbind
local master = No
wins server = zaphod.braindonors.net
ldap suffix = dc=braindonors,dc=net
ldap ssl = no
idmap uid = 1-2
idmap gid = 1-2
winbind enable local accounts = No
 
[music-mp3]
comment = MP3 Format Music Files
path = /music/mp3
read only = No
 
[music-mp3-singles]
comment = Singles and One tracks
path = /music/singles/mp3
veto files = /.AppleDouble/.bin/.AppleDesktop/Network Trash
Folder/._*

 

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


[Samba] KERNEL CIFS Memory Leak

2004-06-28 Thread Jacob A. Alifrangis
Samba Version: Version 3.0.2a-SUSE

Kernel Version: Linux version 2.6.4-52-default ([EMAIL PROTECTED]) (gcc
version 3.3.3 (SuSE Linux)) #1 Wed Apr 7 02:08:30 UTC 2004

 

Suse 9.1

 

When I mount a share locally and begin copying files The system Begins
to use a lot of memory, there is 512 MB of ram in the machine and after
copying about 10GB of files, the machine just stalls.

 

I am trying to move 225 GB of files.

 

Here is the Procedure:

 

mount //guide/music /mnt/tmp -t cifs -o username=

cp -av /mnt/tmp/Albums/* /music/mp3

 

This works for about three to ten minutes, and the memory usage goes to
2GB fills up the swap file and chokes; Anybody got any ideas?

 

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


[Samba] smbmount and windows 2003

2004-06-26 Thread Jacob A. Alifrangis
Here's my setup:

 

MARVIN: Linux / Redhat ES 3

ZAPHOD: Windows 2003 STD Edition; Active Directory Server.

 

 

 

[EMAIL PROTECTED] jalifrangis]# smbmount //zaphod/public /public

cli_negprot: SMB signing is mandatory and we have disabled it.

18980: protocol negotiation failed

SMB connection failed

[EMAIL PROTECTED] jalifrangis]#

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