[Samba] Slow perfomance comparing Win NT 4.0 server

2009-07-16 Thread Georgy Goshin

Hello!

I've replaced the old Windows NT 4.0 server with new modern

(Core 2 DUO 2.4Ghz with 1GB RAM, SATA drives in linux software RAID 1 under 
CentOS 5, Samba 3.3.0-38)


But client started to complain that the speed was slowed down. I made some 
tests with old and new servers and see that working with files is really 
slow. Office and pdf documents opening sometimes up to minute comparing 1-2 
second from old server.


Please point me to the right way to catch the problem

hdparm shows good numbers:

/dev/md0:
Timing buffered disk reads:  182 MB in  3.01 seconds =  60.48 MB/sec
/dev/md0:
Timing cached reads:   4528 MB in  2.00 seconds = 2265.41 MB/sec




smb.conf:
#=== Global Settings 
=


[global]

   workgroup = CORP
   server string = MASTER Fileserver

   netbios name = master

;   interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
;   hosts allow = 127. 192.168.12. 192.168.13.

# --- Logging Options -
   # logs split per machine
   log file = /var/log/samba/%m.log
   # max 50KB per log file, then rotate
   max log size = 250


   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192


# --- Domain Controller Options 
#
   security = user
   passdb backend = tdbsam

   domain master = yes
   domain logons = yes

   # the login script name depends on the machine name
;   logon script = %m.bat
   # the login script name depends on the unix user used
   logon script = %u.bat
;   logon path = \\%L\Profiles\%u
   # disables profiles support by specifing an empty path
   logon path =

   add user script = /usr/sbin/useradd %u -n -g users
   add group script = /usr/sbin/groupadd %g
   add machine script = /usr/sbin/useradd -n -c Workstation 
(%u) -M -d /nohome -s /bin/false %u

   delete user script = /usr/sbin/userdel %u
   delete user from group script = /usr/sbin/userdel %u %g
   delete group script = /usr/sbin/groupdel %g


# --- Browser Control 
Options 

   local master = yes
   os level = 65
   preferred master = yes

#- Name 
Resolution ---

   wins support = yes
#;  wins server = 192.168.0.10
#;  wins proxy = yes

#;  dns proxy = yes

# --- Printing Options -
   load printers = yes
   cups options = raw

;   printcap name = /etc/printcap
   #obtain list of printers automatically on SystemV
;   printcap name = lpstat
;   printing = cups

# --- Filesystem Options ---
#
;   map archive = no
;   map hidden = no
;   map read only = no
;   map system = no
;   store dos attributes = yes

# Share Definitions 
==


[homes]
   comment = Home Directories
   browseable = no
   writable = yes
   valid users = %S
   valid users = MYDOMAIN\%S


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

[netlogon]
   comment = Network Logon Service
   path = /var/lib/samba/netlogon
   guest ok = yes
   writable = no
   share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;   [Profiles]
;   path = /var/lib/samba/profiles
;   browseable = no
;   guest ok = yes



[Documents]
   path=/home/shares/Documents
   comment=Documents
   writeable=yes
   browseable=yes
   create mode=0660
   directory mode=0770


[Invoices]
   path=/home/shares/Invoices
   comment=Invoices
   writeable=yes
   browseable=yes
   create mode=0660
   directory mode=0770
   valid users = igor,larisa,sergei1

[Shared]
   path=/home/shares/Shared
   comment=Shared Files
   writeable=yes
   browseable=yes
   create mode=0660
   directory mode=0770

[Source]
   path=/home/shares/Source
   comment=Software source
   writeable=yes
   browseable=yes
   create mode=0660
   directory mode=0770

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


[Samba] Strange with an acl.

2008-06-03 Thread Georgy Goshin

Hi,

I have a strange issue:

# file: Current\040docs/Outcoming\040Correspondence_2008.xls
# owner: secretary
# group: users
user::-w-
user:alex:rwx
user:tat:rwx
user:secretary:rwx
group::---
group:wheel:rwx
mask::rwx
other::---


User 'secretary' has no access to this file from Samba. Any advices?


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


Re: [Samba] How to make Add permission for folder in system withntacl support?

2007-10-31 Thread Georgy Goshin

Hi!

Let's go back to this topic please! I have to replace the Windows NT 4.0 
server with Samba but I still don't know how to do this. I need to allow to 
someone (some user group) the right to add files into the folder. They use 
this feature on current NT server ver often and to this in the following 
ways:


1. Rightclick on file you want to add, Copy, then go to server, for exaple 
(\\main\), locate the desired share name, rightclick on it and Paste.

2. Just drag the files you want to add to desired sharename.

But when you will try to go in the same share, you will receive the 
permission denied message and will  not be able to read the files or just 
list them.



Is there a way to make it with Samba or not?


setfacl -m g:ntadmins:rwx -R /home/ntadmins

Now, the second type of permissions apply to any file (or directory) that 
is created in /home/ntadmins:


setfacl -m d:g:ntusers:--- -R /home/ntadmins


The effect of the second setfacl command says that the group ntusers will 
be explicitly given no access to any file or directory created in 
/home/ntadmins.


I tried to do this way but it create a subfile or subfolder readoble and 
writeable at lease by creator. In case with NT user who has a right only for 
adding files can not go into the folder and see and read the content there 
even if he just added this content into this folder or share.


Please point me to the right way, thanks.

G. 


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


Re: [Samba] How to make Add permission for folder in system with ntacl support?

2007-10-31 Thread Georgy Goshin
Definitely possible in Samba.  Start with the correct POSIX permissions on 
the directories, then follow the references below.


This chapter, in general
http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/AccessControls.html

and this section, in particular
http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/AccessControls.html#id374339

with or without POSIX acl's should explain how to do what you want.


Please please please. I've tried already combinations this weekend, spen two 
days and lost any understanding of logic of file permissions and gived up! 
Please make someone for me small sample please!



Thanks in advance,
Georgy 


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


Fw: [Samba] How to make Add permission for folder in system with ntacl support?

2007-10-14 Thread Georgy Goshin
Is it too simple and therefore noone will answer? :) Or it is not possible 
with Samba on Linux?


Thanks,
G.



- Original Message - 
From: Georgy Goshin [EMAIL PROTECTED]

To: samba@lists.samba.org
Sent: Thursday, October 11, 2007 6:34 PM
Subject: [Samba] How to make Add permission for folder in system with 
ntacl support?




Hi,

On windows nt is possible to configure permission when users can add files 
to share or folder but can't read and even list files in this share or 
filder. Is it possible to make this with samba fileserver?



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



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


[Samba] How to make Add permission for folder in system with nt acl support?

2007-10-11 Thread Georgy Goshin

Hi,

On windows nt is possible to configure permission when users can add files 
to share or folder but can't read and even list files in this share or 
filder. Is it possible to make this with samba fileserver?



Thanks,
G. 


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