Hi, 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? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20091127/2a6f3c19/attachment-0003.html>
Andrei F wrote:> Hi, > > 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. nate
Andrei F napsal(a):> Hi, > > 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? >Hi, you want ACLs. David Hrb??