From owner-freebsd-questions@FreeBSD.ORG Mon Oct 22 08:03:59 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F361316A417 for ; Mon, 22 Oct 2007 08:03:58 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (mail.computinginnovations.com [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id 51EB713C4A7 for ; Mon, 22 Oct 2007 08:03:57 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.13.8/8.13.8) with ESMTP id l9KMT2tP009973; Sat, 20 Oct 2007 17:29:02 -0500 (CDT) (envelope-from derek@computinginnovations.com) Message-Id: <6.0.0.22.2.20071020172727.024e4908@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Sat, 20 Oct 2007 17:28:42 -0500 To: "Jason Dobyns" , From: Derek Ragona In-Reply-To: <47194df7.0b97600a.150b.2c76@mx.google.com> References: <47194df7.0b97600a.150b.2c76@mx.google.com> Mime-Version: 1.0 X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Linux samba server, Freebsd client 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: Mon, 22 Oct 2007 08:03:59 -0000 At 07:37 PM 10/19/2007, Jason Dobyns wrote: >Hello, > > > >My smb server is run from a linux CentOS 5 machine. > >When I mount the share in Freebsd all the files are owned by root > > > >SMB Server permissions > >-rwxrwxr-x 1 httpd httpd 21868 Oct 17 22:06 index.php > > > >Freebsd Client Share permissions > >-rwxr-xr-x 1 root wheel 21868 Oct 18 05:06 index.php > > > >I have the httpd user and group with matching UID and GID on the freebsd >client. > >What do I have to do to get the permissions to come through. Do I need an >option on the mount_smbfs command? > > > > > >smb.conf > >[global] > > workgroup = vlaze > > server string = storage1.blahblah.com > > encrypt passwords = True > > security = user > > smb passwd file = /etc/smbpasswd > > log file = /var/log/samba/log.%m > > socket options = IPTOS_LOWDELAY TCP_NODELAY > > dns proxy = No > > name resolve order = lmhosts host bcast > > bind interfaces only = True > > interfaces = eth1 > > hosts allow = ALL > > debug level = 1 > > create mask = 0777 > > directory mask = 0777 > > level2 oplocks = True > > read raw = no > > write cache size = 262144 > > read raw = yes > > write raw = yes > > log level = 3 # Default is 0 > > oplocks = yes # Default > > max xmit = 65535 # Default > > dead time = 15 # Default is 0 > > getwd cache = yes > > > >[vlaze] > > path = /opt/www > > writable = Yes > > validusers = smbuser > > > > > > > >Thank You, > > > >Jason Dobyns you can assign the user and group using: mount_smbfs -u uid, -g gid -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support.