[CentOS] read only sftp access
centos at linuxpowered.net
Fri Nov 27 21:55:02 UTC 2009
Andrei F wrote:
> I'm trying to setup read-only SFTP repo. The directory that I'm planning to
> make available via sftp needs to have only read-only access. My issue is
> that this specific directory is already available for read & write access
> but under different credentials. When I try to login via my read-only
> account, openssh spits out an error about incorrect permissions. Any idea
> how can I share the same directory via sftp under two different usernames
> under the same filesystem permissions?
Just make sure both the directory and the files in the directory
are not writable by "other" and make sure the account you want read
only access to is not the owner and is not in the group that owns
the files or directories and you'll be set.
More information about the CentOS