Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 May 2008 18:04:47 -0500
From:      Derek Ragona <derek@computinginnovations.com>
To:        mister.olli@googlemail.com, freebsd-questions@freebsd.org
Subject:   Re: force file permission
Message-ID:  <6.0.0.22.2.20080515180329.026c3230@mail.computinginnovations.com>
In-Reply-To: <1210884102.21260.158.camel@phoenix.blechhirn.net>
References:  <1210884102.21260.158.camel@phoenix.blechhirn.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.0.22.2.20080515180329.026c3230>