Fwd: Permissions in chroot SFTP

Peter Stuge peter at stuge.se
Wed Nov 12 04:15:43 EST 2008


Carlo Pradissitto wrote:
> Case 1
> [root at sftp-server home]# chown user.sftp user/
> [root at sftp-server home]# chmod 755 user/
> 
> carlo at Music:~$ sftp user at 213.217.147.123
> Connecting to 213.217.147.123...
> user at 213.217.147.123's password:
> Read from remote host 213.217.147.123: Connection reset by peer
> Couldn't read packet: Connection reset by peer
> 
> 
> Case 2
> [root at sftp-server home]# chown user.root user/
> 
> carlo at Music:~$ sftp user at 213.217.147.123
> Connecting to 213.217.147.123...
> user at 213.217.147.123's password:
> Read from remote host 213.217.147.123: Connection reset by peer
> Couldn't read packet: Connection reset by peer

Ok. I suggest running sshd -ddd on the server side to get clear
messages about which directories need which permissions.


//Peter


More information about the openssh-unix-dev mailing list