From owner-freebsd-questions@FreeBSD.ORG Thu May 15 21: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 53A951065671 for ; Thu, 15 May 2008 21:07:08 +0000 (UTC) (envelope-from mister.olli@googlemail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.freebsd.org (Postfix) with ESMTP id D90A18FC1C for ; Thu, 15 May 2008 21:07:07 +0000 (UTC) (envelope-from mister.olli@googlemail.com) Received: by ug-out-1314.google.com with SMTP id q2so1490013uge.37 for ; Thu, 15 May 2008 14:07:06 -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:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=w/o1kNsgajaVN4wPL9HjFsUzTF91OW6IujOCnehZi3I=; b=alOX7zB5YnKcqUheoXd9dJhV8oG/K8lYt4FgFLWsSR/QNDU/T6315pFZFhAle4a5eRwY9sU0HMqgAjI7Wc+I0OAgIPB1GIp4n0ZiZ4PqeJcHF6kQrlKCqeMYGFOO8UQ6v3up+om5Wv8rhwnW+L8CDqL6fY2kcPICf/AWOL8a/3U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:from:reply-to:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=hz7ZuJqaOFsrBqPjqlmMnzgbIjUwmsU0GR28yopU4v+3bs1Pdr2Fh2ufIQNn1kSmDalugv3/xzHs7u52zIqlPLeIzpenAhEjXwi3JintzCe1C2O2tzdLZPZAJDfTNXehSSy7hziJi4vaFF8XQW2PVBTT3htc3jf/dzay3Uhvkrk= Received: by 10.66.245.2 with SMTP id s2mr10690955ugh.23.1210884119493; Thu, 15 May 2008 13:41:59 -0700 (PDT) Received: from ?88.128.56.90? ( [88.128.56.90]) by mx.google.com with ESMTPS id l33sm5059126ugc.14.2008.05.15.13.41.57 (version=SSLv3 cipher=RC4-MD5); Thu, 15 May 2008 13:41:58 -0700 (PDT) From: Mister Olli To: freebsd-questions@freebsd.org Content-Type: text/plain Date: Thu, 15 May 2008 22:41:42 +0200 Message-Id: <1210884102.21260.158.camel@phoenix.blechhirn.net> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 Content-Transfer-Encoding: 7bit Subject: 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: Thu, 15 May 2008 21:07:08 -0000 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