Re: read only sftp access

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux