[Samba] Strange performance issue with Dreamweaver and Samba

2004-10-02 Thread samba
Hi folks.  When using Dreamweaver MX 2004 on a Win2k machine talking to 
a Samba machine I have a strange problem.

For every key stroke or mouse event within the Dreamweaver window I see 
a flurry of SMB packets

Mostly
SMB Packet: SMBsesssetupX (REQUEST)
SMB Packet: SMBsesssetupX (REPLY)
Flags=0x0
Length=71   or Length=175
This obviously causes significant performance issues.
anythoughts would be greatly appreciated
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Filesystem Locking or lack of locking issues

2004-10-02 Thread Tory M Blue
Good Day,

I'm running into some issues and wondered if there are a few of you that can
assist. Or please let me know if this is better off in a Java forum (but
figure the Samba crew knows a bit more about filesystems then the java team
:)

Information prior to question/concern:

Samba Ver: Version 3.0.6
OS: Linux sc8-a7-lri4.rsc01.net 2.4.20-30.9smp #1 SMP Wed Feb 4 20:36:46 EST
2004 i686 i686 i386 GNU/Linux
Java: j2sdk1.4.2_03

Using smbmount only. Accessing a Network Appliance share (NAS) from multiple
Linux boxes. Running into issues with file locking. We are doing this as we
migrate away from MS and to Linux, however we need Case insenseitivity in
the short term (will end up going longer then I like), but thus the need for
some type of SMB/CIFS Filesystem.

We are using "java.nio.channels.FileLock"

We are seeing locks not honored and also lots of  java.io.IOException:
Resource deadlock avoided. We see this in both NFS and SMB FS mounts.
Locking is just not working correctly

Oct  2 16:29:20 sc8-a7-lri4 kernel: smb_readpage_sync: launch/AllServers.xml
open failed, error=-2 Oct  2 16:29:55 sc8-a7-lri4 kernel: smb_open:
Clickthrough-4.status/AllServers.xml open failed, result=-2 Oct  2 16:29:55
sc8-a7-lri4 kernel: smb_open: Clickthrough-4.status/AllServers.xml open
failed, result=-2 Oct  2 16:29:55 sc8-a7-lri4 kernel: smb_readpage_sync:
Clickthrough-4.status/AllServers.xml open failed, error=-2 Oct  2 16:29:56
sc8-a7-lri4 kernel: smb_open: Clickthrough-4.status/AllServers.xml open
failed, result=-2 Oct  2 16:29:56 sc8-a7-lri4 kernel: smb_open:
Clickthrough-4.status/AllServers.xml open failed, result=-2 Oct  2 16:29:56
sc8-a7-lri4 kernel: smb_readpage_sync: Clickthrough-4.status/AllServers.xml
open failed, error=-2 Oct  2 16:29:56 sc8-a7-lri4 kernel: smb_open:
Clickthrough-4.status/AllServers.xml open failed, result=-2 Oct  2 16:29:56
sc8-a7-lri4 kernel: smb_open: Clickthrough-4.status/AllServers.xml open
failed, result=-2 Oct  2 16:29:56 sc8-a7-lri4 kernel: smb_readpage_sync:
Clickthrough-4.status/AllServers.xml open failed, error=-2

Everything works fine on the local FS, it's just failing over a NFS and SMB
share. But again the SMB/CIFS share is critical and I'll be forced to
continue down the windows path, if we can't figure this out.

Thanks for any insight you can provide

Tory M Blue
[EMAIL PROTECTED]

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


[Samba] Printing seems to be entirely broken

2004-10-02 Thread stouset
Here's the problem: clients that already have a Windows machine with the
printer installed (through Samba, several months ago) can print just fine.
However, any client trying to add, view, or do anything with a printer
*now* always receive a message stating "Access is denied."

When I double-click on the printer to add: "Could not connect to the
printer. Access is denied."

If I right-click on a printer under "Printers", and click on properties:
"Printer properties cannot be displayed. Access is denied."

If I try to view the print queue, I see in the title bar: "Access is
denied, unable to connect."

No matter what I do, I seem unable to do anything with printers,
regardless of privileges. Syslog entries, even at max logging, show
nothing out of the ordinary. This leads me to belive that it's file
permissions, but those have all been checked. Here are the relevant
sections of smb.conf.

/etc/samba/smb.conf:

workgroup = ikobo
domain master = true
local master = true
domain logons = true
preferred master = true
os level = 65

load printers = yes
printing = cups
printcap name = cups
max print jobs = 100
lpq cache time = 20
use client driver = yes
printer admin = @wheel
show add printer wizard = yes

[printers]
comment = All Printers
printable = yes
path = /var/spool/samba
browseable = no
writable = no

[print$]
comment = Printer Drivers
path = /var/local/samba/drivers
browseable = yes
read only = yes
write list = @wheel


Here are permissions on a few relevant directories:

hank:/var/cache/samba/printing# ls -la
drwxr-xr-x  2 root root  4096 Oct  2 15:32 .
drwxr-xr-x  3 root root  4096 Oct  2 15:32 ..
-rw---  1 root root 24576 Oct  2 15:31 LaserJet_1300n.tdb
-rw---  1 root root 24576 Oct  2 15:31 ML-1710.tdb
-rw---  1 root root 24576 Oct  2 15:31 printers.tdb

hank:/var/spool/samba# ls -la
drwxrwsr-x  2 root users 4096 Oct  2 15:12 .
drwxr-xr-x  6 root root  4096 May 17 10:14 ..

hank:/var/local/samba/drivers# ls -la
drwxrwxr-x  4 root wheel 4096 May 19 09:39 .
drwxr-xr-x  6 root root  4096 Oct  2 15:11 ..
drwxrwxr-x  3 root wheel 4096 Oct  2 15:11 W32X86
drwxrwxr-x  3 root wheel 4096 May 19 09:39 WIN40

Does anyone know why I am having these problems? Nothing I do seems to work.


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


Re: [Samba] Re: can't join a domain

2004-10-02 Thread John H Terpstra
On Saturday 02 October 2004 11:05, Igor Belyi wrote:
> John H Terpstra wrote:
> > On Friday 01 October 2004 02:13, Thorsten Scherf wrote:
> >>when trying to put a samba3 server into a domain (samba3 pdc) I always
> >>get the following error messages:
> >>
> >>[EMAIL PROTECTED] samba]# net join -d 2 -U smbadmin RHEL -S
> >>server1.example.com
> >
> > smbadmin must have uid 0.
>
> ..or be listed as one of "admin users" in smb.conf

Correct. Sorry, I keep overlookingthat one. My bad!

- John T.
-- 
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

Author:
The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
Samba-3 by Example, ISBN: 0131472216
Hardening Linux, ISBN: 0072254971
OpenLDAP by Example, ISBN: 0131488732
Other books in production.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Logging

2004-10-02 Thread John H Terpstra
On Saturday 02 October 2004 11:06, Terry wrote:
> is it possible to get samba to output html type logs for smbd and nmbd

No, but you can use the samba utility debug2html to produce html. Beware, few 
packagers see fit to compile and package this too - but we do provide one. :)

 - John T.
-- 
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

Author:
The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
Samba-3 by Example, ISBN: 0131472216
Hardening Linux, ISBN: 0072254971
OpenLDAP by Example, ISBN: 0131488732
Other books in production.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Domain Trust Logins

2004-10-02 Thread Umberto Zanatta
I've made a network like you; it's working very well.

samba trusts a w2k domain.

did it viceversa?
did you run winbindd?

it sounds like not...


Il giorno ven, 01-10-2004 alle 16:02 +0100, Lee Baker ha scritto:

> Config:
> Samba 3 trusts a win2003 domain.
> XP workstations joined to Samba PDC domain.
>  
> When a user in the 2003 domain tries to login using an XP workstation
> and choosing the 2003 domain in the "log onto" box this fails unless the
> user also has a Linux user account.
>  
> Is there a way around this?  Is this just the way it works?
>  
> Thanks 
> Lee Baker
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Logging

2004-10-02 Thread Terry
is it possible to get samba to output html type logs for smbd and nmbd
Regards Terry
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Re: can't join a domain

2004-10-02 Thread Igor Belyi
John H Terpstra wrote:
On Friday 01 October 2004 02:13, Thorsten Scherf wrote:
when trying to put a samba3 server into a domain (samba3 pdc) I always
get the following error messages:
[EMAIL PROTECTED] samba]# net join -d 2 -U smbadmin RHEL -S
server1.example.com

smbadmin must have uid 0.
..or be listed as one of "admin users" in smb.conf
Igor
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Samba 3.0, Windows 2k/XP and usrmgr.exe

2004-10-02 Thread James Niven
Regarding this problem,

I have solved the mystery by adding:

admin users = root @domadm

in the [global] section of my smb.conf.  Domain admins can now happily add,
modify and delete users through user manager.

As usual with these things - a 10 second solution to a problem that has
bemused me for hours!!

James Niven


> James Niven schrieb:
> > Hi there
> >
> > I've just finished setting my first Samba PDC for 120ish users
> and so far so
> > good, although its only been live for 2 days!!
> >
> > One problem I've come across (actually I had loads but the HOW-TO, Samba
> > archive and google solved most of them) is with usrmgr.  There is one XP
> > client that I have installed the NT 4 Server Tools software on for the
> > school IT coordinator (note the phrase 'coordinator', not
> exactly a guru or
> > sysadmin) to use to tidy up user names, passwords etc.  We are
> both set up
> > as Domain Admins and have our primary LINUX GID set to 0 (root)
> but neither
> > of us can log in and use the USRMGR.EXE program, it will connect but we
> > can't view, add or delete etc.
> >
> > If I log onto the XP box as root it all works fine, users can be added,
> > deleted, amended etc and of course I could get her to do this or use the
> > server console, su as root and use pdbedit (Yeah, Right!).  I've been
> > pulling my already unsubstantial hair out over this all evening
> and had I
> > invested in the Google IPO I'd be a very rich man by now.  I've
> spent the
> > evening checking net groupmap list, the unix user list, trying
> to get usrmgr
> > to allow me to tell it who has permissions to add users to the
> domain (comes
> > up with an error about local admins not being able to log in locally),
> > adding domain admins to the local admin group, removing users from the
> > domain admin group and adding them again and generally smoking a lot of
> > cigarettes.
> >
> > So, could someone confirm that usrmgr can only be used fully when logged
> > into a 2k/XP machine as root and that there is no functionality for the
> > domain admin group to do this?
> >
> > On the brightside I successfully migrated from a smbpasswd
> backend to tdbsam
> > tonight so life isn't all that bad!!
> >
> > Many Thanks
> >
> > James Niven
> >
> > ps  its my first time so I'm sorry if this has been covered ad nauseam
> > already.
> >

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


[Samba] Su requerimiento. [uid]7d344c0a3cfcfa26a4f9ba09c893a12e[/uid]

2004-10-02 Thread soporte
Estimada señora / Estimado señor,

Muchas gacias por su mensaje e interés en Vivendi Universal Games. Estamos trabajando 
lo más rápido posible en una solución a su pregunta.

Gracias por su atención,

Su equipo de soporte técnico
Vivendi Universal Games.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] mounting smb shares

2004-10-02 Thread Kevin Waterson
Hi all, new to samba yadda yadda..

I think I am going in the wrong direction here. 
I am setting up an smb server to store photos. These are publicly
available in read only except to the group 'staff'. Yes, I read the
How To. ;)

So in my smb.conf I have this...
[photodir]
   comment = Public Photos
   path = /home/photo
   public = yes
   read only = yes
   write list = @staff


I have added the user 'photo' to the system with the home dir of /home/photo
I have used smbpasswd -a photo and given the user a smb password.
I can list using smbclient -L 192.168.0.6 and I get this...

I can mount the drive from a client like this..
Anonymous login successful

Sharename  Type  Comment
-    ---
photodir   Disk  Public Photos
IPC$   IPC   IPC Service (PHOTO SERVER)
ADMIN$ IPC   IPC Service (PHOTO SERVER)
Anonymous login successful

Server   Comment
----
SAMBAPHOTO SERVER

WorkgroupMaster
----
WILDCHERRY   SAMBA

When I do this I am prompted for a password, and simply hit enter and it displays.
Is this a good thing or a bad thing?

I can then mount the share using 
mount -t smbfs //192.168.0.6/photo /home/samba/ -o username=photo
and ls shows all the files on the remote smb server i the photo directory.
But, the files therein are not read only, I can delete files from there simply
by doing rm filename.txt
This is bad. I need this to be read only. Where did I go wrong?

Kind regards
Kevin

-
"Democracy is two wolves and a lamb voting on what to have for lunch. 
Liberty is a well-armed lamb contesting the vote."
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Full Name from User Manager to /etc/passwd

2004-10-02 Thread Suba Gergely

Hi all, 

I use samba 3 with WindowsXP clients. I'd like to add a new user with 
User Manager (usrmgr.exe) from the client, but how can I solve, that 
this procedure takes the Full Name (what I set in usrmgr) to the 
linux /etc/passwd file. (the linux can store a full name in /etc/passwd, 
but how can the usrmgr take it to /etc/passwd automatically)
I tried to search, what should I write to the "add user script" line to do 
this, but I couldn't find.

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


[Samba] Re: Multiple Controllers to auth against

2004-10-02 Thread Joe Cooper
I ran into this problem as well, and found that if I joined each server 
in turn (using "net ads join -S windc1", "net ads join windc2", etc.), 
the failover would happen.  Otherwise I got errors from wbinfo -t, and 
nothing else worked.  It took me a week or two to figure this one out, 
since I assumed "joining the domain" meant I was joining the domain, 
rather than joining to a specific domain controller.

However, even with failover working, I've found it too slow to use.  It 
seems like every few responses have to failover, which takes 20-25 
seconds each.  I've bumped the "winbind cache time" to ten minutes, so 
wbinfo results are cached aggressively, but ntlm_auth does not appear to 
respect or support this variable.  I though ntlm_auth queried winbindd, 
and so would answer with whatever winbind provided, but that doesn't 
seem to happen here.

I've filed bug number 1866 about this slow failover and no caching issue:
https://bugzilla.samba.org/show_bug.cgi?id=1866
"Jeff Heckart" wrote:
I am currently using samba along side of squid to do ntlm
authentication.  I have a primary, and secondary NT4.0 controllers, and
have listed in smb.conf as such:
password server: server1 server2
 
I expected that when server1 went down, server2 would be queried next.
This was not the case for me.  I actually had server1 go down, and samba
continued to attempt and fail against server1.
 
How should this be setup?
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba