Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am a newbie on ubuntu server 12.10, I was following this guide

https://gist.github.com/joshellington/2224420

I don't understand why if my /home/myuser folder's owner is myuser I can't connect by sftp. So I have to do what the guide says: make root be the owner of /home/myuser and then create a folder /home/myuser/myfolder and set myuser as its owner.

Then I can connect with myuser by sfpt and I can see 'myfolder'. I can't upload files to / but only to /myfolder.

Why can't I just give the rights to write to myuser so when he connects by ftp he can upload files and create folders as he wants?

share|improve this question
1  
@Hennes The question is on topic here; please don't suggest asking on another site as this usually encourages cross posting (and is hurting the community here). See Is it okay to inform users to stop promoting Apple.SE when a question is fine to stay here? (same thing for Ubuntu) –  slhck Feb 26 '13 at 11:15
    
This question has the answer you're looking for: How can I chroot sftp-only SSH users into their homes? –  Dennis Feb 26 '13 at 11:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.