From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1LM2vX-0004vA-Pg for garchives@archives.gentoo.org; Sun, 11 Jan 2009 16:12:40 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4F123E0326; Sun, 11 Jan 2009 16:12:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1FB02E0326 for ; Sun, 11 Jan 2009 16:12:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 82F1D64A01 for ; Sun, 11 Jan 2009 16:12:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -3.531 X-Spam-Level: X-Spam-Status: No, score=-3.531 required=5.5 tests=[AWL=0.068, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vvEaD28HblkZ for ; Sun, 11 Jan 2009 16:12:30 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id AB60F645ED for ; Sun, 11 Jan 2009 16:12:29 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LM2vG-0004bq-Kj for gentoo-user@gentoo.org; Sun, 11 Jan 2009 16:12:22 +0000 Received: from c-98-215-178-6.hsd1.in.comcast.net ([98.215.178.6]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Jan 2009 16:12:22 +0000 Received: from reader by c-98-215-178-6.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Jan 2009 16:12:22 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Harry Putnam Subject: [gentoo-user] Re: [cifs] permissions of mounted share Date: Sun, 11 Jan 2009 10:12:15 -0600 Organization: Still searching... Message-ID: <87tz85255s.fsf@newsguy.com> References: <8763kmgw2t.fsf@newsguy.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-178-6.hsd1.in.comcast.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:Vm/ldzg20akHMsVVlng3NYDMtfU= Sender: news X-Archives-Salt: 6a38b329-c233-4cab-a7a9-0c6d8fa5faf3 X-Archives-Hash: a44d57336de58f90fcff61e445635be0 "Arttu V." writes: > On 1/11/09, Harry Putnam wrote: >> Any regular files I create on the mounted share end up 744. >> >> Can I set a umask in the mount syntax or what do I need to do here to >> have the files keep the standard permissions? > > force create mode = 644 > force directory mode = 755 > > Wouldn't that do it on the server so you wouldn't have to worry about > the clients? Or have you already tried and it still fudges the access > permissions? I didn't know about those parameters but looking them up in man smb.conf it appears it would not effect anything done by the clients. Far as I understand it the servers smb.conf doesn't come into play when a client mounts a share. I've already set 644 and 755 on the existing files... by hand as reported in OP. But let me try it out before nay saying too much. I added those params to smb.conf then restarted samba. Went to a client... mounted a share and attempted to copy a directory into the share from clients file system.. Remember now that user and group are the same for both server and client on these particular files. The change in server smb.conf appears to have changed nothing. Still when I copy or create files they have 744 instead of 644 permissions.