From owner-freebsd-questions@FreeBSD.ORG Sun May 18 15:24:25 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 A3D14106566C for ; Sun, 18 May 2008 15:24:25 +0000 (UTC) (envelope-from mister.olli@googlemail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id 319B18FC0A for ; Sun, 18 May 2008 15:24:24 +0000 (UTC) (envelope-from mister.olli@googlemail.com) Received: by ug-out-1314.google.com with SMTP id q2so324556uge.37 for ; Sun, 18 May 2008 08:24:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=0NAO+XxJ1szYua/qj1AAJOi59HWyK/NHMSYlosjKgm0=; b=xa6rLoWKOh9symEdWiIOnQ5zgoGNXSRi62kmLSEdGmr/3a6OrCR21qM0Yw3KAuz8zdTcEp8HpviuCDDXw9MGr5Fe5ogBihwpDBkKbYklXM10ZiI5xij9A17xTeH5oX8iBX2Q8a9/hVC9dihhxN40eW7i9eqX6bM0w//ZcMhg71o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=JGhhEGBHtpMAqHkFjzkCJ6NpSoYbytT+r0Zb0xCa1JdmLjwv82S0+rK1IuGioHFT3vQnLmtv+1TUj0MZsfHFKM+5wchsWXORjuoTv4diy6Aw4ko0LwuXUDWtLu9Sk7ngV5FdvFp7GqoeARQC1AW6WIedRdpKt7zBbCC4U3yqA9A= Received: by 10.67.105.19 with SMTP id h19mr2557482ugm.64.1211124263535; Sun, 18 May 2008 08:24:23 -0700 (PDT) Received: from ?192.168.2.22? ( [91.33.91.110]) by mx.google.com with ESMTPS id 23sm962202ugf.54.2008.05.18.08.24.21 (version=SSLv3 cipher=RC4-MD5); Sun, 18 May 2008 08:24:22 -0700 (PDT) From: Mister Olli To: Derek Ragona In-Reply-To: <6.0.0.22.2.20080515180329.026c3230@mail.computinginnovations.com> References: <1210884102.21260.158.camel@phoenix.blechhirn.net> <6.0.0.22.2.20080515180329.026c3230@mail.computinginnovations.com> Content-Type: text/plain Date: Sun, 18 May 2008 17:24:09 +0200 Message-Id: <1211124249.21260.299.camel@phoenix.blechhirn.net> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: force file permission X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mister.olli@googlemail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 May 2008 15:24:25 -0000 hi... [SNIP] > > 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. > The simplest solution is to properly set the umask for the user > accounts you use to ssh or scp. [/SNIP] Yeah, that was my first idea to, but it does not work with SCP/ SSH. if you create the files locally on the filer it works like a charme. but if you copy files to the server (tested from a linux system) which have permissions, that are less than 660/ 770 these permisisons are applied. does anyone know another handy solution for this, beside scripts that are triggerd by cron or file monitors??? regards, olli