From owner-freebsd-questions@FreeBSD.ORG Thu May 15 23:07:08 2008 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 94F33106566B for ; Thu, 15 May 2008 23:07:08 +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 3F8F48FC18 for ; Thu, 15 May 2008 23:07:08 +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.14.2/8.14.2) with ESMTP id m4FN6wX4023786; Thu, 15 May 2008 18:06:58 -0500 (CDT) (envelope-from derek@computinginnovations.com) Message-Id: <6.0.0.22.2.20080515180329.026c3230@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Thu, 15 May 2008 18:04:47 -0500 To: mister.olli@googlemail.com, freebsd-questions@freebsd.org From: Derek Ragona In-Reply-To: <1210884102.21260.158.camel@phoenix.blechhirn.net> References: <1210884102.21260.158.camel@phoenix.blechhirn.net> Mime-Version: 1.0 X-Antivirus: avast! (VPS 080515-1, 05/15/2008), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: ClamAV 0.93/6806/Wed Apr 16 15:50:16 2008 on betty.computinginnovations.com X-Virus-Status: Clean X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: m4FN6wX4023786 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: force file permission 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: Thu, 15 May 2008 23:07:08 -0000 At 03:41 PM 5/15/2008, Mister Olli wrote: >hi list... > >I have to administrate a fileserver based on freebsd-7 where users have >access to via SMB and SSH. > >my permission setup is configured, so that a user needs to be in a >special group to have access to certain files. for that all file must >have permissions set to 660 and directories to 770. > >The samba part is not a problem, there quite a few options to solve this >problem, and it works great. > >but not the access via SSH/SCP. Is there any way to accomplish this? the >solution needs to cover the following: >- files created on the fileserver itself (during SSH session) need to >have the permissions >- files copied to the fileserver via SCP/SFTP need to have the >permissions > >the old fileserver was linux-based and used some scripts that were >triggerd by cron/ dnotify, but the solution became unhandy with growing >amount of files. > > >thanks, > >olli The simplest solution is to properly set the umask for the user accounts you use to ssh or scp. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.