Rodolfo Gouveia
2012-03-27 12:27:06 UTC
Hi all,
Right now I have a chroot'ed internal-sftp for all users
belonging to group chroot, /etc/ssh/sshd_config:
Match Group chroot
AllowAgentForwarding no
AllowTcpForwarding no
GatewayPorts no
X11Forwarding no
ForceCommand internal-sftp
ChrootDirectory /chroot/%u
And I would like to set a different umask for them so I tried
changing the 'ForceCommand...' to:
ForceCommand internal-sftp -u 0007
but didn't work. Also tried addidng a new login class in
/etc/login.conf:
chroot:\
:umask=007
but it seems that internal-sftp doesn't use it.
Any ideas?
Thanks.
Cheers,
rodolfo
Right now I have a chroot'ed internal-sftp for all users
belonging to group chroot, /etc/ssh/sshd_config:
Match Group chroot
AllowAgentForwarding no
AllowTcpForwarding no
GatewayPorts no
X11Forwarding no
ForceCommand internal-sftp
ChrootDirectory /chroot/%u
And I would like to set a different umask for them so I tried
changing the 'ForceCommand...' to:
ForceCommand internal-sftp -u 0007
but didn't work. Also tried addidng a new login class in
/etc/login.conf:
chroot:\
:umask=007
but it seems that internal-sftp doesn't use it.
Any ideas?
Thanks.
Cheers,
rodolfo