Case 1
[root@sftp-server ~]# cd /home/
[root@sftp-server home]# chown user.sftp user/
[root@sftp-server home]# chmod 755 user/

carlo@Music:~$ sftp user@213.217.147.123
Connecting to 213.217.147.123...
user@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@sftp-server home]# chown user.root user/

carlo@Music:~$ sftp user@213.217.147.123
Connecting to 213.217.147.123...
user@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 3
[root@sftp-server home]# chown root.sftp user/

carlo@Music:~$ sftp user@213.217.147.123
Connecting to 213.217.147.123...
user@213.217.147.123's password:
sftp> put prova
Uploading prova to /prova
Couldn't get handle: Permission denied


2008/11/11 Peter Stuge :
> Carlo Pradissitto wrote:
>> I get the same result if I change the ownership of user directory
>> this way:
>>
>> [root@sftp-server ~]# chown user.root /home/user/
>>
>> What can I do in order to grant user access and allow write
>> permissions in his home directory?

>
> Start with 755 user:sftp (or 700) and then try user:root.
>
>
> //Peter
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev@mindrot.org
> https://lists.mindrot.org/mailman/li...enssh-unix-dev
>




--
Carlo Pradissitto

Servizi e Supporto IT

I-WAY S.r.l.
Piazza Caduti di via Fani, 2
03100 Frosinone

Mobile: +393939318571

Tel/Fax: 07751880765

E-mail: c.pradissitto@i-way.it
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/li...enssh-unix-dev