Re: [Samba] Usershare parameters

2006-09-04 Thread Jeremy Allison
On Mon, Sep 04, 2006 at 10:53:25PM -0400, Cybionet wrote:
> Greeting,
> 
>  I set usershare max shares to 10, and then with an user (and with 
> different user)  I add 15 shares definition . When I use the net 
> usershare list -l , I see all the 15 usershares and can access to these 
> shares with a Windows client. A difference with your example in the 
> documentation, I use ACL(EA) to authorize a group of user to add share 
> definitions.

Ok, please log a bug at bugzilla.samba.org and I'll investiate
(and fix) this.

>  I have read the majority of documentation about usershare, and in the 
> one in the smb.conf, I can read 'All other share parameters not 
> specified in the user defined share definition are copied from this 
> named share.' Then how it is work?

Bit busy right now, I'll follow up on this later this week.

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


Re: [Samba] Usershare parameters

2006-09-04 Thread Cybionet

Greeting,

 I set usershare max shares to 10, and then with an user (and with 
different user)  I add 15 shares definition . When I use the net 
usershare list -l , I see all the 15 usershares and can access to these 
shares with a Windows client. A difference with your example in the 
documentation, I use ACL(EA) to authorize a group of user to add share 
definitions.


 I have read the majority of documentation about usershare, and in the 
one in the smb.conf, I can read 'All other share parameters not 
specified in the user defined share definition are copied from this 
named share.' Then how it is work?


usershare template share
 Names a pre-existing share used as a template for  
creating  new
 usershares. All other share parameters not specified in 
the user

 defined share definition are copied from this named share.

Thank you for your help. The usershare is a great parameter and like to 
understand how to use it perfectly.


Robert


This isn't what the template syntax is for. Look at the
man page for smb.conf for details. For usershare
max shares try setting "10" and see if this limits
it correctly. I'll test this out in the 3.0.23c code
and fix it if there's a bug.

Thanks,

Jeremy.

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


Re: [Samba] 'username = @group' not working correctly

2006-09-04 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rene,

> I am running a Samba file server (Version 3.0.22) with 'security =
> share'. Here is one of my share definitions:
> 
> [archive]
> path = /var/smb/archive
> writeable = Yes
> username = @staff
> valid users = @staff
> 
> First question: In the manpage for smb.conf, it is mentioned that
> '+group' expands to the Unix group named 'group'. But that does not work
> for me. Using the '@group' syntax works. Is this an error in the
> documentation?

That makes no sense unless you are using NIS netgroups.

> However, my actual problem is this:
> 
> I need the 'username = @group' mechanism because some of 
> my clients do not supply a correct username. The
> problem is that it does not seem to work for most
> user accounts. It does work for exactly two users.

I'd suggest moving to security = user unless you can
explain exactly why you need security = share.  Security = share
is just not well suited for cases where you want to
provide authorization based on username/password pairs.






jerry
=
Samba--- http://www.samba.org
Centeris ---  http://www.centeris.com
"What man is a man who does not make the world better?"  --Balian
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE/MOkIR7qMdg1EfYRAm5WAJ9mljhK1uS8sqUkBZ6E+B10wgUaqACff2tn
j6yNGi+IMnf4hQObUX8S83U=
=U1lc
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Failed to setup guest info

2006-09-04 Thread Dean Crawford
I've been trying for the past week to get Samba and LDAP to work 
together as a PDC on my Gentoo box and allow some XP boxes to get in.


I've read and followed the how-to's (emerged and unmergred more then a 
few times)


My LDAP accounts all seem to work when I do the ssh test into them.

Changing the domain in XP fails with the "network path not found error" 
even after all the registry tweaks. While tring to work through this 
issue I discoved that smbd is not starting correctly.


Code:
thebird # tail /var/log/samba/log.smbd
[2006/08/24 20:28:01, 3] smbd/uid.c:push_conn_ctx(345)
 push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2006/08/24 20:28:01, 3] smbd/sec_ctx.c:set_sec_ctx(241)
 setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2006/08/24 20:28:01, 3] smbd/sec_ctx.c:pop_sec_ctx(339)
 pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2006/08/24 20:28:01, 3] passdb/lookup_sid.c:fetch_sid_from_gid_cache(979)
 fetch sid from gid cache 65534 -> S-1-22-2-65534
[2006/08/24 20:28:01, 0] smbd/server.c:main(960)
 ERROR: failed to setup guest info.


I'm thinking that the failed to setup guest info needs to be the first 
thing fixed. I thought I had disabled guest accounts in my smb.conf so 
don't understand why it fails.


I have samba-3.0.23a installed. Here is my smb.conf. I don't have 
networked printers so I commented out all the printer calls.


Code:
#=== Global Settings 
=

[global]

# 1. Server Naming Options:
  workgroup = CRAWFORD_HOUSE
  netbios name = TheBird
  server string = LDAP PDC on Samba Server %v

# 2. Printing Options:
;   printcap name = cups
;   load printers = yes
;   printing = cups
;   printer admin = @adm
;   printer admin = @"Domain Admins"

# 3. Logging Options:
  time server = yes
  log file = /var/log/samba/log.%m
  max log size = 50
  log level = 3

# 4. Security and Domain Membership Options:
  hosts allow = 192.168.1. 192.168.6. 127.0.0.1
#  guest account = smbguest
#  map to guest = bad user
  security = user
;  password level = 8
;  username level = 8
 encrypt passwords = yes
;  unix password sync = Yes
 pam password change = yes
;  username map = /etc/samba/smbusers

# 5. Browser Control and Networking Options:
  socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
  interfaces = lo eth0
  bind interfaces only = yes
;  interfaces = 192.168.12.2/24 192.168.13.2/24
  local master = yes
  os level = 65
  domain master = yes
;  preferred master = yes

# 6. Domain Control Options:
  domain logons = yes
;  logon script = %m.bat
;  logon script = %U.bat
  logon path = \\%L\profiles\%U
  logon drive = Z:
  logon home = \\%L\%U
  add user script = /usr/sbin/smbldap-useradd -m "%u"

# Scripts for LDAP backend (assumes nss_ldap is in use on the domain 
controller.

  add user script = /usr/sbin/smbldap-useradd -m "%u"
  delete user script = /usr/sbin/userdel -r "%u"
  add machine script = /usr/sbin/smbldap-useradd -w "%u"
  add group script = /usr/sbin/smbldap-groupadd -p "%g"
  delete group script = /usr/sbin/groupdel "%g"
  add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
  delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
  set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"

# Domain groups:
# Domain groups are now configured by using the 'net groupmap' tool

# Samba Password Database configuration:
# Enable SSL by using an ldaps url, or enable tls with 'ldap ssl' below.
  passdb backend = ldapsam:ldap://127.0.0.1
  ldap delete dn = Yes
;  idmap uid = 1-2
;  idmap gid = 1-2

# LDAP configuration for Domain Controlling:
  ldap admin dn = cn=Manager,dc=CRAWFORD_HOUSE,dc=NET
  ldap ssl = no

# start_tls should run on 389, but samba defaults incorrectly to 636
;  ldap port = 389
  ldap suffix = dc=CRAWFORD_HOUSE,dc=NET
;  ldap server = ldap.mydomain.com

# Seperate suffixes are available for machines, users, groups, and idmap, if
  ldap machine suffix = ou=Hosts
  ldap user suffix = ou=People
  ldap group suffix = ou=Group
  ldap idmap suffix = ou=Idmap

# 7. Name Resolution Options:
# Windows Internet Name Serving Support Section:
  wins support = yes
  name resolve order = wins lmhosts host bcast

# WINS Proxy - Tells Samba to answer name resolution queries on
;   wins proxy = yes

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
  dns proxy = no

# 8. File Naming Options:
;   preserve case = no
;   short preserve case = no
# Default case is normally upper case for all DOS files
;   default case = lower
# Be very careful with case sensitivity - it can break things!
;   case sensitive = no

# Share Definitions 
==

[homes]
  comment = Home Directories
  path = /home/%U
  browseable = no
  valid users = %S
  read only = no
  create mask = 0664
  directory mask = 0775

# Un-comment the following and create the netlogon directory for Domain 
Logons

[netlogon]
  comment = Network Logon Se

Re: [Samba] ftp 8x faster than samba

2006-09-04 Thread Dragan Krnic

Rober Adkins wrote:

Blaine Armsterd wrote:

Robert Adkins wrote:

Again, I suggest that you test like things with like things, test
a Windows server's file sharing and then Samba file sharing. Test FTP
on a Windows server and then FTP on a Linux server and do this on a
controlled network where only the workstation and the server are
connected via one hub that has no other network connected to it. That
way you can more clearly determine which is faster.


I tested the samve server and the same file over the same connection.
There's 2 boxes on the switch here at my house. There's no more
testing necessary. I can transfer the 723Mb file in 24 seconds using
FTP. There's no reason for Samba to take over 2 minutes.

Samba and FTP both have vastly differing overheads that affect the
transfer of files. Samba (and Windows Server's Filesharing) will never
equal FTP in performance. Neither will even come close. FTP is an
entirely different protocol that is extremely loose and insecure.


As a matter of fact, In a properly set up network there should be
no significant difference in speed between FTP and Samba WHEN
transfering large files. For tests I usually open a DOS window,
change to a share and just time the copy command in both
directions with "timethis.exe", like this:

  C:\> W:
  W:\> dir  aBigFile
  31.08.2006 00:11 184.751.471 aBigFile

  W:\> timethis  copy  aBigFile  C:\Temp
  1 File(s) copied. Elapsed Time : 00:00:16.877

  W:\> timethis  copy  C:\Temp\aBigFile
  1 File(s) copied. Elapsed Time : 00:00:16.573

which means about 11 megabytes in either direction. FTP won't give
you any better speed over a 100 Mbps link from PC to switch. Even If
you connect to a gigabit switch through a proper gigabit NIC and a
good cable the limit will be the speed of client's disks. A single
disk can't give you more than about 50-60 meggabytes per second
with either FTP or Samba.

Robert Adkins wrote:

For example, if you are using ReiserFS, then you would see a marked
increase in reading/writing and subsequently file sharing for
relatively small files in, I believe, the sub-32kb range as ReiserFS
is tuned for sharing many small files very quickly. However, ReiserFS
(At least the last version I was using) wasn't great for serving large
files, like the 700MB test file you are using.


Reiserfs 3.6 serves big files via Samba just as fine as small files.
In all my tests the bounds are the throughput rate of the network
and the ability of the client's mass storage to absorb and emit data,
not the Samba software or the file system used.

So to come to the point, if someone says his FTP transfers run 8x
faster than Samba, then he/she actually means to say that his/her Samba
server provides only 1/8th of the available power. This usually means
that that person's network is not configured properly. Unfortunately,
saying "ftp 8x faster than samba" is insufficient diagnostic to be able
to pinpoint the problem. Even the addition in quoted mail that there
are a server a client and a switch between them just scratches the
surface. There's a lot more details we don't know about the setup.

My guess is that there is a problem in name resolution. Blaine, do you
get same transfer times when using IP-adress and unqualified name?
I mean if your server's name is "samba" and its IP-address is let's say
"192.168.1.1", do you get the same speed/slowness when you use

  \\192.168.1.1\yourShare

as when you use

  \\samba\yourShare

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


[Samba] 'username = @group' not working correctly

2006-09-04 Thread Rene Fleschenberg
Hello

I am running a Samba file server (Version 3.0.22) with 'security =
share'. Here is one of my share definitions:

[archive]
path = /var/smb/archive
writeable = Yes
username = @staff
valid users = @staff

First question: In the manpage for smb.conf, it is mentioned that
'+group' expands to the Unix group named 'group'. But that does not work
for me. Using the '@group' syntax works. Is this an error in the
documentation?

However, my actual problem is this:

I need the 'username = @group' mechanism because some of my clients do
not supply a correct username. The problem is that it does not seem to
work for most user accounts. It does work for exactly two users.

After experimenting and looking at the debug logs, I concluded that
Samba only checks the supplied password against the first two users who
are listed as members of the group 'staff' in /etc/group. After checking
the second user, it aborts. These first two users can connect to the
service fine, but all others can not.

If the relevant line in /etc/group looks like this:

staff:x:1034:foo,bar,baz

Then foo and bar can connect, baz can not. If I swap bar and baz in
/etc/group, then baz can connect and bar can not.

Is this a known problem? How do I fix this?

-- 
René
OpenPGP key id: 0x63B1F5DB
JID: [EMAIL PROTECTED]



signature.asc
Description: OpenPGP digital signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] extending files slow on FAT filesystems

2006-09-04 Thread Jeremy Allison
On Mon, Sep 04, 2006 at 09:18:31PM +0200, Mattias Rönnblom wrote:
> 
> I know. But it is possible (conceptually, at least) to work around
> this issue in the clients. Whence my (slightly off-topic) question
> about changing Windows XP SMB client behavior.

It's almost impossible to get clients to change their behaviour.
That's one of our major challenges :-).

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


Re: [Samba] extending files slow on FAT filesystems

2006-09-04 Thread Mattias Rönnblom
Jeremy Allison <[EMAIL PROTECTED]> writes:

> > I agree the VFAT solution is the right way of fixing it, but I could
> > live with workarounds as well. Pre-allocating space before writing is
> > not strictly necessary, as far as I can tell.
> 
> There is no workaround possible from Samba. We're *NOT*
> pre-allocating, the driver is. That's where the fix must
> be.
> 

I know. But it is possible (conceptually, at least) to work around
this issue in the clients. Whence my (slightly off-topic) question
about changing Windows XP SMB client behavior.

Regards,
Mattias

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


Re: [Samba] extending files slow on FAT filesystems

2006-09-04 Thread Jeremy Allison
On Mon, Sep 04, 2006 at 08:40:55PM +0200, Mattias Rönnblom wrote:
> 
> Is that a "no"? :-)

It's a "not our code" problem.

> I agree the VFAT solution is the right way of fixing it, but I could
> live with workarounds as well. Pre-allocating space before writing is
> not strictly necessary, as far as I can tell.

There is no workaround possible from Samba. We're *NOT*
pre-allocating, the driver is. That's where the fix must
be.

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


Re: [Samba] extending files slow on FAT filesystems

2006-09-04 Thread Mattias Rönnblom
Jeremy Allison <[EMAIL PROTECTED]> writes:

> On Mon, Sep 04, 2006 at 02:55:58PM +0200, Mattias Rönnblom wrote:
> > Both strict and not strict allocation policy are painfully slow on
> > VFAT.
> > 
> > Does anyone know if it's possible to turn off this "truncate-
> > before-write" behavior in the Windows SMB client?
> 
> If "strict allocate = no" is slow, then it's a function of
> the VFAT driver code, not Samba or the client. You'll have
> to fix it there.
> 

Is that a "no"? :-)

I agree the VFAT solution is the right way of fixing it, but I could
live with workarounds as well. Pre-allocating space before writing is
not strictly necessary, as far as I can tell.

I do not know enough about FAT to know if it's even possible to
implement an efficient truncate operation.

Regards,
Mattias

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


Re: [Samba] extending files slow on FAT filesystems

2006-09-04 Thread Jeremy Allison
On Mon, Sep 04, 2006 at 02:55:58PM +0200, Mattias Rönnblom wrote:
> Both strict and not strict allocation policy are painfully slow on
> VFAT.
> 
> Does anyone know if it's possible to turn off this "truncate-
> before-write" behavior in the Windows SMB client?

If "strict allocate = no" is slow, then it's a function of
the VFAT driver code, not Samba or the client. You'll have
to fix it there.

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


Re: [Samba] Is this list active?

2006-09-04 Thread simo
On Mon, 2006-09-04 at 18:55 +0200, Nanni X wrote:
> Hi people,
> I don't receive any post from this lis since Aug 15th. Is this list alive?

What about checking your subscription and the list archives? :)

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer
email: [EMAIL PROTECTED]
http://samba.org

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


Re: [Samba] Roaming profiles errors and shares not disconnecting

2006-09-04 Thread Freitas Freitas

Hi,


2006/9/4, Felipe Augusto van de Wiel <[EMAIL PROTECTED]>:


On 09/02/2006 03:00 PM, Philippe LAUGET escreveu:
>
> Then, when users try to reopen a win session, they get a corrupted new
> profile. This new profile is fully broken, since it's not possible to
> modify any options that affect NTUSER.DAT.

> When they disconnect, smbstatus shows the user as connected on the
> machine for a long time ( from 15 minutes to hours ) after he has logged
> out. The shares that has been mounted on the client do not seem to be
> disconnected.

If you shut down the machine, this behaviour changes?



This problem is similar to my message [Samba] W2K workstation not
disconnecting without a reset, and I am still suffering with this
problem ( Samba 3.0.23b, Slackware 10.2)

I don't have problems with corrupted profiles, but I have the
same problem with users that do not disconnect, even if they logoff.
Actually, we user mandatory profiles.

And, yes, in my situation, if W2K machine makes a reset or a
shutdown, the connection to the server is closed. But, it is not a
'good' solution reset all W2K,  every time some user logs off.

As I explained in that message, I have already verified a lot of
parameters, emails, logs and Samba manual and didn't find an
explanation. Even using deadtime = 1, the connection is not closed.

I would appreciatte some help too and I really thank your attention.

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


[Samba] Is this list active?

2006-09-04 Thread Nanni X

Hi people,
I don't receive any post from this lis since Aug 15th. Is this list alive?

Regards
Nanni-X


--
Nessun virus nel messaggio in uscita.
Controllato da AVG Antivirus.
Versione: 7.1.405 / Database dei virus: 268.11.7/437 - Data di rilascio: 
04/09/06

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


Re: [Samba] Linux client have problem with Samba share

2006-09-04 Thread simo
Is there any error in the samba logs, what error does CFIS get back?
And what kernel/version of CIFS vfs are you using?

Simo.

On Mon, 2006-09-04 at 10:39 -0400, Cybionet wrote:
> I use cifs.
> > On Mon, 2006-09-04 at 00:35 -0400, Cybionet wrote:
> >   
> >> Greating all,
> >>
> >> I want to use Acomba (Fortune 1000) with a database on a samba share. 
> >> All work perfectly with Windows client, but the Linux client can't open 
> >> the database file. Any idea?
> >>
> >> Similar thing with Openoffice 2.x. The Windows client can save properly 
> >> file on samba share, but Linux client have a error message when they try 
> >> to save. Linux client need to press save two time to successfully save 
> >> they modifications.
> >>
> >> Any idea to help?
> >> 
> >
> > smbfs? or cifs vfs?
> >
> >   
> 
-- 
Simo Sorce
Samba Team GPL Compliance Officer
email: [EMAIL PROTECTED]
http://samba.org

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


Re: [Samba] Re: question about wiki.samba.org

2006-09-04 Thread simo
On Mon, 2006-09-04 at 17:29 +0200, Franz Pfoertsch wrote:
> You are right!
> 
> but there is no link from www.samba.org to the wiki, so it is only a hidden
> side.
> 
> The developers didn't use the wiki.

This is not true, but we can probably use it more, I agree on this.

> the article about clustering is great, we need some more of stuff like this.
> 
> I think about a page about the smb.conf, but it makes no sence when the
> developer did not write into the wiki.
> (http://wiki.samba.org/index.php/Samba_Features_added/changed_%28by_release%29#Changes_in_smb.conf)
> 
> I hope everybody is using the wiki

I think that many looks at it, maybe we should make it more visible.

Deryck,
what do you think?

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer
email: [EMAIL PROTECTED]
http://samba.org

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


[Samba] Re: samba + ldap query filter

2006-09-04 Thread Andreas Calvo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Felipe Augusto van de Wiel escribió:
> On 09/03/2006 11:13 AM, Andreas Calvo escreveu:
>>> Hi!
>>> I've been using samba as PDC with a LDAP backend, and everything seems to
>>> work fine but, whenever a user has to auth to samba, it seems that the
>>> query
>>> that it performs is against the mail attribute, instead of the uid as I
>>> desired.
>>> Is there any way to manually specify the query filter to use agains the
>>> LDAP
>>> tree?
> 
>   I remeber that there is an 'ldap filter' parameter.
> 
>   I couldn't find it on the smb.conf manpage (I'm cc:ing
> John Terpstra), but in the [1]docs I could find a reference.
> 
> 1.http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/passdb.html#id2559680

it seems that is not used in new versions of samba :(

> 
> 
>   I hope this helps.
> 
> 
>>> Thanks!
> 
>   You are welcome, kind regards!
> 
> --
> Felipe Augusto van de Wiel <[EMAIL PROTECTED]>
> Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
> http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE/EfFybtJO4snRH0RAvAwAJ0Y3tmadrjhcaLDDR2D/hgB/vu6FACfTA7G
MybM4vAk960+8OZlIU1d7DE=
=CONe
-END PGP SIGNATURE-

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


[Samba] Re: question about wiki.samba.org

2006-09-04 Thread Franz Pfoertsch
You are right!

but there is no link from www.samba.org to the wiki, so it is only a hidden
side.

The developers didn't use the wiki.

the article about clustering is great, we need some more of stuff like this.

I think about a page about the smb.conf, but it makes no sence when the
developer did not write into the wiki.
(http://wiki.samba.org/index.php/Samba_Features_added/changed_%28by_release%29#Changes_in_smb.conf)

I hope everybody is using the wiki

regards
Franz





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


Re: [Samba] Linux client have problem with Samba share

2006-09-04 Thread Cybionet

I use cifs.

On Mon, 2006-09-04 at 00:35 -0400, Cybionet wrote:
  

Greating all,

I want to use Acomba (Fortune 1000) with a database on a samba share. 
All work perfectly with Windows client, but the Linux client can't open 
the database file. Any idea?


Similar thing with Openoffice 2.x. The Windows client can save properly 
file on samba share, but Linux client have a error message when they try 
to save. Linux client need to press save two time to successfully save 
they modifications.


Any idea to help?



smbfs? or cifs vfs?

  


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


[Samba] error winbind ?

2006-09-04 Thread Noc Phibee

Hi


I have this in my logs of winbond:


[2006/09/04 15:25:05, 0] nsswitch/winbindd.c:process_loop(863)
 winbindd: Exceeding 200 client connections, no idle connection found


and

[2006/09/04 15:23:10, 0] 
rpc_client/cli_pipe.c:cli_rpc_pipe_open_noauth(2229)
 cli_rpc_pipe_open_noauth: rpc_pipe_bind for pipe \NETLOGON failed with 
error NT_STATUS_BUFFER_TOO_SMALL



Anyone know this problems ?

thanks bye


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


Re: [Samba] Linux client have problem with Samba share

2006-09-04 Thread simo
On Mon, 2006-09-04 at 00:35 -0400, Cybionet wrote:
> Greating all,
> 
> I want to use Acomba (Fortune 1000) with a database on a samba share. 
> All work perfectly with Windows client, but the Linux client can't open 
> the database file. Any idea?
> 
> Similar thing with Openoffice 2.x. The Windows client can save properly 
> file on samba share, but Linux client have a error message when they try 
> to save. Linux client need to press save two time to successfully save 
> they modifications.
> 
> Any idea to help?

smbfs? or cifs vfs?

-- 
Simo Sorce
Samba Team GPL Compliance Officer
email: [EMAIL PROTECTED]
http://samba.org

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


[Samba] Samba PDC + Windows 2003 Std Server Trust Relationship

2006-09-04 Thread prashant n
Hi,

Is it possible to configure Windows 2003 Standard Server to have a domain trust 
relationship with a Samba PDC enabled with LDAP ?

If so how ?

regards
shann

---
Sign up and get your 30GB webmail at www.30gigs.com now!
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] extending files slow on FAT filesystems

2006-09-04 Thread Mattias Rönnblom
Jeremy Allison <[EMAIL PROTECTED]> writes:

> On Thu, Aug 24, 2006 at 05:51:45PM +0200, Mattias Rönnblom wrote:
> > Hi,
> > 
> > I'm running Samba 3.0.23a on Linux. One of my share is a USB disk with
> > a FAT32 filesystem.
> > 
> > When copying large files from my Windows XP machine to this share,
> > smbd seem to "reserve" (by using ftruncate()) the space needed on the
> > USB disk before actually doing any copying. This ftruncate() operation
> > takes quite a while when the file is large. It may even cause the
> > client to time out.
> > 
> > If I reformat the disk with ext2, ftruncate() runs fast.
> > 
> > Is there some way of turning off this "pre-allocation" behaviour? I've
> > consulted smb.conf(5), but I've been unable to find anything of use.
> > 
> > Would you consider this a problem in Samba or in the VFAT filesystem
> > driver?
> 
> VFAT system driver. Samba is just calling ftruncate in this 
> case. You can control this behaviour by setting "strict allocate = no".
> 

Both strict and not strict allocation policy are painfully slow on
VFAT.

Does anyone know if it's possible to turn off this "truncate-
before-write" behavior in the Windows SMB client?

Thanks,
Mattias

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


Re: [Samba] Roaming profiles errors and shares not disconnecting

2006-09-04 Thread Miguel Da Silva - Servicio de Informát ica

Philippe LAUGET wrote:

Hi,

We are using Samba 3.0.22 on FreeBSD 5.5 PDC with ldap backend and 
roaming profiles.


We meet some difficulties when users logout from some Windows 2000 SP4 
clients, and storing their profiles back to the Samba server.


The file NTUSER.DAT seems to be uploaded and stored in lowercase, as 
ntuser.dat.
Then, when users try to reopen a win session, they get a corrupted new 
profile. This new profile is fully broken, since it's not possible to 
modify any options that affect NTUSER.DAT.




I have a similar problem... same Windows version, same Samba version. 
According to smb.conf man page, the default option to "preserve case" is 
"yes".


Some times the problem is even more anoying, an user logs in in an 
Windows station, do whatever he/she wants and logs off. Everything seems 
go fine, but then when the user logs in again he/she can't, for example, 
print anymore.


I think the biggest problem is that people look at me and say "Why I can 
not print? I've just printed 2 minutes ago". The "solution"? Erase the 
old profile and create a new one, but... I have to configure everything 
again (mail client, browser, back-up the files, etc, etc).


I thought once it could be an Ethernet problem (I mean, a physical 
network problem), but it's not :(


Any hints?

--
Miguel Da Silva.
Servicio de Informatica.
Facultad de Ciencias.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] fam error

2006-09-04 Thread James Peach

On 04/09/06, Willy Offermans <[EMAIL PROTECTED]> wrote:

Dear Samba Friends,

I got the following error again and again:


.
Sep  4 10:58:18 sun smbd[94479]: [2006/09/04 10:58:18, 0] 
smbd/notify_fam.c:fam_check_reconnect(136)
Sep  4 10:58:18 sun smbd[94479]:   failed to connect to FAM service
Sep  4 10:58:23 sun smbd[94479]: [2006/09/04 10:58:23, 0] 
smbd/notify_fam.c:fam_check_reconnect(136)
Sep  4 10:58:23 sun smbd[94479]:   failed to connect to FAM service
Sep  4 10:58:24 sun smbd[94479]: [2006/09/04 10:58:24, 0] 
smbd/notify_fam.c:fam_check_reconnect(136)
Sep  4 10:58:24 sun smbd[94479]:   failed to connect to FAM service
Sep  4 10:58:25 sun smbd[94479]: [2006/09/04 10:58:25, 0] 
smbd/notify_fam.c:fam_check_reconnect(136)
Sep  4 10:58:25 sun smbd[94479]:   failed to connect to FAM service
Sep  4 10:58:25 sun smbd[94479]: [2006/09/04 10:58:25, 0] 
smbd/notify_fam.c:fam_check_reconnect(136)
Sep  4 10:58:25 sun smbd[94479]:   failed to connect to FAM service
Sep  4 11:23:22 sun smbd[94479]: [2006/09/04 11:23:22, 0] 
smbd/notify_fam.c:fam_check_reconnect(136)
Sep  4 11:23:22 sun smbd[94479]:   failed to connect to FAM service
.


I'm using samba-3.0.23b,1 on FreeBSD 6.1


I've only ever tested the FAM support on IRIX. smbd will automatically
attempt to use FAM if it appears to be available, but it shouldn't


I did not specify anything with respect to fam in my
/usr/local/etc/smb.conf file.

I have only noticed that a new directory has been created in /tmp/

drwx--  2 root  wheel  512 Sep  4 08:45 /tmp/fam-root/

This directory is empty and updated once and a while. I mean the
directory is recreated at a later time. Attributes and owner do not
change.

In the clients log files I find the following:



[2006/09/04 11:36:41, 0] smbd/notify_fam.c:fam_check_reconnect(136)
  failed to connect to FAM service
  Socket directory /tmp/fam-root has different owner
  Failed to remove unsafe path /tmp/fam-root
...


It seems that the client tries to access /tmp/fam-root but has not the
right user priviliges.

Can someone help me out and explain what is going on? How can I solve
the problem?


You can disable FAM support by setting "fam change notify = no" in
smb.conf. This
will get rid of the messages, but obviously you won't get FAM support.
I'd have to dig
into the FAM implementation on FreeBSD to be more helpful, and I won't
be able to
do that for a couple of weeks.

--
James Peach | [EMAIL PROTECTED]
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Roaming profiles errors and shares not disconnecting

2006-09-04 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 09/02/2006 03:00 PM, Philippe LAUGET escreveu:
> Hi,
> 
> We are using Samba 3.0.22 on FreeBSD 5.5 PDC with ldap backend and
> roaming profiles.
> 
> We meet some difficulties when users logout from some Windows 2000 SP4
> clients, and storing their profiles back to the Samba server.
> 
> The file NTUSER.DAT seems to be uploaded and stored in lowercase, as
> ntuser.dat.
> Then, when users try to reopen a win session, they get a corrupted new
> profile. This new profile is fully broken, since it's not possible to
> modify any options that affect NTUSER.DAT.

I couldn't find any references for "case" changes in your
smb.conf, but I would recommend the [1]Name Mangling section of the
smb.conf manpage. You could activate the 'preserv case' parameter
for the profiles share.

1.http://us4.samba.org/samba/docs/man/manpages-3/smb.conf.5.html#NAMEMANGLINGSECT


> When they disconnect, smbstatus shows the user as connected on the
> machine for a long time ( from 15 minutes to hours ) after he has logged
> out. The shares that has been mounted on the client do not seem to be
> disconnected.

If you shut down the machine, this behaviour changes?


> Here is the output of smbstatus for user test 15 minutes afters he has
> logged out :
> 
> Samba version 3.0.22
> PID Username  Group Machine
> ---

[... smbstatus output ...]


> Here is some relevant part of smb.conf :
> [global]
[... smb.conf ...]


> Is there a way to force these shares to close really when users logout ?

Hmmm, you can add commands to the postexec, but I'm not
quite sure that it will solve the problem. In our network, we
have problems with CD servers, sometimes, Win98 does not tell
the server that the share is not in use (the user needs to
logoff). We solve that with mount timeouts, it is a separeted
problem, but has relation to the fact that the MS Windows clients
"forgets" to //release// the share. :)


> Thank for your help.

Kind regards,

- --
Felipe Augusto van de Wiel <[EMAIL PROTECTED]>
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFE/BaYCj65ZxU4gPQRAtqgAJ9xDTyecGY9PUhygmXAg742UoSQHQCgy2nU
jy248D+TtpTn8MQ4B5qGcLE=
=OlQc
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Bad substitution for %a variable

2006-09-04 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 4 Sep 2006, [EMAIL PROTECTED] wrote:

> Hi,
> 
> The %a variable is not well substituted for XP64.
> 
> For separation of profiles of different OS we use the %a variable:
> logon path = \\%L\Profiles\%U\%a
> 
> With samba3021b the variable points to Win2K for XP64! This result in 
> trouble with the user profiles!

OK.  I'll take a look tomorrow.  Please file a bug report for me.
I noticed similar behavior with the latest Vista beta last week.





cheers, jerry
=
Samba--- http://www.samba.org
Centeris ---  http://www.centeris.com
"What man is a man who does not make the world better?"  --Balian
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQFE/BSYIR7qMdg1EfYRAuMaAJ4juDrWdVnHNUxKgP0syA5cFI4NZwCgrpZa
QjP6lx8qO1s7qHOWe78MY3A=
=uGih
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] samba + ldap query filter

2006-09-04 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 09/03/2006 11:13 AM, Andreas Calvo escreveu:
> Hi!
> I've been using samba as PDC with a LDAP backend, and everything seems to
> work fine but, whenever a user has to auth to samba, it seems that the
> query
> that it performs is against the mail attribute, instead of the uid as I
> desired.
> Is there any way to manually specify the query filter to use agains the
> LDAP
> tree?

I remeber that there is an 'ldap filter' parameter.

I couldn't find it on the smb.conf manpage (I'm cc:ing
John Terpstra), but in the [1]docs I could find a reference.

1.http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/passdb.html#id2559680


I hope this helps.


> Thanks!

You are welcome, kind regards!

- --
Felipe Augusto van de Wiel <[EMAIL PROTECTED]>
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFE/BPuCj65ZxU4gPQRAvNPAJwPxwxry41C1fEFpHoXwRaMDJj0DACgvaew
HvBTSLBDy++hkhaKyuBxDkk=
=PBfd
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Linux client have problem with Samba share

2006-09-04 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 09/04/2006 01:35 AM, Cybionet escreveu:
> Greating all,
> I want to use Acomba (Fortune 1000) with a database on a samba share.
> All work perfectly with Windows client, but the Linux client can't open
> the database file. Any idea?

Different versions of Samba in server and client? Wrong
arguments when mounting the samba share?


> Similar thing with Openoffice 2.x. The Windows client can save properly
> file on samba share, but Linux client have a error message when they try
> to save. Linux client need to press save two time to successfully save
> they modifications.
> 
> Any idea to help?

Try to increase the log verbosity and see if you can
discover what's going on, you can change the important part of the
logs to the samba list, so we can try to help you find out.


Kind regards,

- --
Felipe Augusto van de Wiel <[EMAIL PROTECTED]>
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFE/BJQCj65ZxU4gPQRAmASAJ9w9q657/Je5X8pvjzernhPE7eTyACfdCPX
am9AbSU9OSodo2w0cNKRGFE=
=5eVv
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] question about wiki.samba.org

2006-09-04 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 09/04/2006 07:12 AM, Franz Pfoertsch escreveu:
> Hi people,

Hey! :)


> who maintain the samba wiki at http://wiki.samba.org?

The Samba Community? :)
Including users and developers.


> do we need this wiki or should we use the normal documentation?

Both. The wiki has the great advantage that we could add
bits and info that are not available on the public documentation,
it also allow us to keep track of important notes and allow
doc maintainers to check the wiki and add relevant information to
the official docs.


> I made some additons to the wiki, but it seems nobody needs the
> information ..

Sorry, but how do you know nobody needs it?


> I hope somebody could me explain who should use this documentation
> plattform ...

As I understand, the wiki is a little bit "under used",
perhaps it needs more attention from us, we should think about
adding the bits that we solve around this list to the wiki, and
try to reference the official docs. (I have to confess that until
your message I did not think about that).


> regards
> Franz

Kind regards,

- --
Felipe Augusto van de Wiel <[EMAIL PROTECTED]>
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFE/BG8Cj65ZxU4gPQRAtO6AJ94QmcljRmxofZn6sWZ8j8DKPP0pQCfa3Md
Re0yYPOrzEM3+VFsHeXUUBU=
=3tuv
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] question about wiki.samba.org

2006-09-04 Thread Franz Pfoertsch
Hi people,

who maintain the samba wiki at http://wiki.samba.org?

do we need this wiki or should we use the normal documentation?

I made some additons to the wiki, but it seems nobody needs the
information ..

I hope somebody could me explain who should use this documentation
plattform ...

regards
Franz

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


[Samba] fam error

2006-09-04 Thread Willy Offermans
Dear Samba Friends,

I got the following error again and again:


.
Sep  4 10:58:18 sun smbd[94479]: [2006/09/04 10:58:18, 0] 
smbd/notify_fam.c:fam_check_reconnect(136)
Sep  4 10:58:18 sun smbd[94479]:   failed to connect to FAM service
Sep  4 10:58:23 sun smbd[94479]: [2006/09/04 10:58:23, 0] 
smbd/notify_fam.c:fam_check_reconnect(136)
Sep  4 10:58:23 sun smbd[94479]:   failed to connect to FAM service
Sep  4 10:58:24 sun smbd[94479]: [2006/09/04 10:58:24, 0] 
smbd/notify_fam.c:fam_check_reconnect(136)
Sep  4 10:58:24 sun smbd[94479]:   failed to connect to FAM service
Sep  4 10:58:25 sun smbd[94479]: [2006/09/04 10:58:25, 0] 
smbd/notify_fam.c:fam_check_reconnect(136)
Sep  4 10:58:25 sun smbd[94479]:   failed to connect to FAM service
Sep  4 10:58:25 sun smbd[94479]: [2006/09/04 10:58:25, 0] 
smbd/notify_fam.c:fam_check_reconnect(136)
Sep  4 10:58:25 sun smbd[94479]:   failed to connect to FAM service
Sep  4 11:23:22 sun smbd[94479]: [2006/09/04 11:23:22, 0] 
smbd/notify_fam.c:fam_check_reconnect(136)
Sep  4 11:23:22 sun smbd[94479]:   failed to connect to FAM service
.


I'm using samba-3.0.23b,1 on FreeBSD 6.1

I did not specify anything with respect to fam in my
/usr/local/etc/smb.conf file.

I have only noticed that a new directory has been created in /tmp/

drwx--  2 root  wheel  512 Sep  4 08:45 /tmp/fam-root/

This directory is empty and updated once and a while. I mean the
directory is recreated at a later time. Attributes and owner do not
change.

In the clients log files I find the following:



[2006/09/04 11:36:41, 0] smbd/notify_fam.c:fam_check_reconnect(136)
  failed to connect to FAM service
  Socket directory /tmp/fam-root has different owner
  Failed to remove unsafe path /tmp/fam-root
...


It seems that the client tries to access /tmp/fam-root but has not the
right user priviliges.

Can someone help me out and explain what is going on? How can I solve
the problem?


-- 
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Willy

*
W.K. Offermans
Eindhoven University of Technology
Department of Chemical Engineering
Laboratory of Catalysis (SKA)
building ST-W 4.27, PO Box 513
5600 MB  Eindhoven, Netherlands
Tel:+31 40 247 37 81
Fax:+31 40 245 50 54
Home:   +31 45 544 49 44
Mobile: +31 650 697 837
e-mail: [EMAIL PROTECTED]
http://www.catalysis.nl

   Powered by 

(__)
 \\\'',)
   \/  \ ^
   .\._/_)

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


[Samba] Bad substitution for %a variable

2006-09-04 Thread Walter . Laub
Hi,

The %a variable is not well substituted for XP64.

For separation of profiles of different OS we use the %a variable:
logon path = \\%L\Profiles\%U\%a

With samba3021b the variable points to Win2K for XP64! This result in 
trouble with the user profiles!

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