From owner-freebsd-questions@FreeBSD.ORG Wed May 9 20:36:09 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 232F7106567E for ; Wed, 9 May 2012 20:36:09 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9A3B68FC0A for ; Wed, 9 May 2012 20:36:08 +0000 (UTC) Received: by eabm6 with SMTP id m6so317558eab.13 for ; Wed, 09 May 2012 13:36:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=jydVgsk5wZnrLhjzcwmySzkxjaKrnQaZ0oxL0FBZ1LM=; b=QvAKVSauE/ku8A7lRFyqXf54twjkjBV7RJr/GYfp25t0Kd34MeW97tI8E+oqmRCA8k P5VginVlM5J5sItUoubfMCVhohMnZim6f8fTW92zYF/xdLfn+PvUHuKv+XvyUc15vkE7 kNNm8Fqq6q9IVE1yXz2S5/yayF/NNgphuDX3P9N/FD5yADzCHzYlQAjfmaDbB3fDAkyZ k43gX49Io7Z2nIlIMtVWp6HD6Bo0ZUE1n8nxNMq/hF8ob3p1NjOp/roAK8r8z6FkK7RA zS/Kv51W23eNch2U586TVtrghn8oDuhcFW16Ft0EmC9GnK/IS1PhPrATKvWGJLN9QJn9 ROBA== Received: by 10.213.7.66 with SMTP id c2mr896394ebc.37.1336595762458; Wed, 09 May 2012 13:36:02 -0700 (PDT) Received: from [192.168.1.17] (5ED0E470.cm-7-1d.dynamic.ziggo.nl. [94.208.228.112]) by mx.google.com with ESMTPS id d18sm18071296eeb.7.2012.05.09.13.36.01 (version=SSLv3 cipher=OTHER); Wed, 09 May 2012 13:36:01 -0700 (PDT) Message-ID: <4FAAD530.4020102@gmail.com> Date: Wed, 09 May 2012 22:36:00 +0200 From: Johan Hendriks User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Graeme Dargie , freebsd-questions@freebsd.org References: <4C0F7421AA759346AF17299922AD57EBAEB382@Mercury.universe.galaxy.lcl> In-Reply-To: <4C0F7421AA759346AF17299922AD57EBAEB382@Mercury.universe.galaxy.lcl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Samba acting oddly. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 May 2012 20:36:09 -0000 On 06-05-12 16:08, Graeme Dargie wrote: > I have a problem with Samba, well I "think" it is samba as one machine I have access to when I try to perform an action like create a new folder in my home folder windows spouts that I need permission and would I like to try again. > > I guess some background would be useful at this point, I have 3 FreeBSD machines that were running 8.2 AMD 64, some kind souls on this list were able to help me get Samba working using Active Directory, I upgraded to 9.0 when it became available and everything seemed to be fine. > > I happened to be needing to create a perl script that would allow two users to chat over a network, so rather than fiddling about with Linux and VM`s .. I just used two of my FreeBSD machines, this is when I noticed the issue. > > Only one machine shows this problem, the others let me happily create / delete stuff in the home folder other shares on the problematic machine are fine. > > The configuration files for all 3 machines is included below, but I just cannot seen to see why 2 work and 1 does as all three are running Samba35-3.5.6.2 so any help or pointers would be welcome. > > Regards > Graeme > > > > Machine Eris - samba works perfectly > > Smb.conf looks like this > [global] > workgroup = UNIVERSE > realm = UNIVERSE.GALAXY.LCL > netbiosname = ERIS > interfaces = re0 > security = ads > allow trusted domains = yes > > idmap uid = 5000-10000 > #idmap gid = 15000-20000 > winbind gid = 5000-10000 > template homedir = /usr/home/%U > template shell = /bin/csh > winbind cache time = 3600 > winbind nested groups = yes > winbind use default domain = yes > winbind separator = | > winbind enum users = yes > winbind enum groups = yes > winbind offline logon = yes > syslog only = Yes > socket options = SO_RCVBUF=131072 SO_SNDBUF=131072 TCP_NODELAY > use sendfile = yes > read raw = yes > use sendfile = yes > local master = no > use sendfile = yes > dns proxy = no > username map = /usr/local/samba/usermap > > # ACL Support > map acl inherit = yes > #acl group inherit = yes > acl group control = yes > > # LOGGING > log file = /var/log/samba/%m > log level = 1 > max log size = 1000 > syslog = 2 > ### recycle bin code > # bin > vfs object = recycle > recycle:repository = .RecycleBin/%U > recycle:keeptree = Yes > recycle:touch = Yes > recycle:versions = Yes > recycle:maxsize = 0 > recycle:exclude = *.tmp > recycle:exclude_dir = /tmp > recycle:noversions = *.ppt > > > [homes] > readonly=no > > > > > Machine Proteus - samba working a charm ... > [global] > > workgroup = UNIVERSE > realm = UNIVERSE.GALAXY.LCL > netbiosname = PROTEUS > interfaces = re0 > security = ads > allow trusted domains = yes > > idmap uid = 5000-10000 > #idmap gid = 15000-20000 > winbind gid = 5000-10000 > template homedir = /usr/home/%U > template shell = /bin/csh > winbind cache time = 3600 > winbind nested groups = yes > winbind use default domain = yes > winbind separator = | > winbind enum users = yes > winbind enum groups = yes > winbind offline logon = yes > syslog only = Yes > socket options = TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536 > use sendfile = yes > read raw = yes > use sendfile = yes > local master = no > use sendfile = yes > dns proxy = no > username map = /usr/local/samba/usermap > > # ACL Support > map acl inherit = yes > #acl group inherit = yes > acl group control = yes > > # LOGGING > log file = /var/log/samba/%m > log level = 1 > max log size = 1000 > syslog = 2 > > > [homes] > read only = No > > > Both of these work with no issues. > > However Amalthea which is the machine showing the problem, the smb.conf is the following > > [global] > workgroup = UNIVERSE > realm = UNIVERSE.GALAXY.LCL > netbiosname = amalthea > interfaces = nfe0 > security = ads > allow trusted domains = yes > > idmap uid = 5000-10000 > #idmap gid = 15000-20000 > winbind gid = 5000-10000 > template homedir = /usr/home/%U > template shell = /bin/csh > winbind cache time = 3600 > winbind nested groups = yes > winbind use default domain = yes > winbind separator = | > winbind enum users = yes > winbind enum groups = yes > winbind offline logon = yes > syslog only = Yes > socket options = TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536 > use sendfile = yes > read raw = yes > use sendfile = yes > local master = no > use sendfile = yes > dns proxy = no > username map = /usr/local/samba/usermap > > # ACL Support > map acl inherit = yes > #acl group inherit = yes > acl group control = yes > > # LOGGING > log file = /var/log/samba/%m > log level = 1 > max log size = 1000syslog = 2 > > ### recycle bin code > # bin > vfs object = recycle > recycle:repository = .RecycleBin/%U > recycle:keeptree = Yes > recycle:touch = Yes > recycle:versions = Yes > recycle:maxsize = 0 > recycle:exclude = *.tmp > recycle:exclude_dir = /tmp > recycle:noversions = *.ppt > > > [homes] > readonly=no > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" This is not the solution, but there are some things i notice. For starters, use sendfile = yes is 2 to 3 times in the config file, one time is enough. Secondly in the log section of the troubled system. log level = 1 max log size = 1000syslog = 2 Is this a typo else it should look like this. log level = 1 max log size = 1000 syslog = 2 what does the command testparm show on the machines? Does the command wbinfo -u show you the users? gr Johan Hendriks