Date: Sun, 18 May 2008 17:24:09 +0200 From: Mister Olli <mister.olli@googlemail.com> To: Derek Ragona <derek@computinginnovations.com> Cc: freebsd-questions@freebsd.org Subject: Re: force file permission Message-ID: <1211124249.21260.299.camel@phoenix.blechhirn.net> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1211124249.21260.299.camel>