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 want to create a FTP user for a certain path on my webserver. I use Ubuntu + nginx;

I found only this code on the internet but I want to set a password for this user and have him access just one folder+subfolders of that and have read+write permissions :

adduser -c john
share|improve this question

migrated from stackoverflow.com Dec 23 '12 at 13:56

This question came from our site for professional and enthusiast programmers.

    
Which FTP server are you using, or going to use? –  Michael Kjörling Dec 23 '12 at 14:08
    
I will use the FTP server of my website –  nevergone Dec 23 '12 at 15:48
    
echo -e 'password\npassword\n' | sudo passwd john –  ymn Dec 24 '12 at 11:21

1 Answer 1

If you want to limit the user to one specific folder and subfolders, you might need a more advanced setup.

SFTP is a decent option for this, though not perfect. See this blog article describing the process.

Note that the current answers don't address the issue of limiting the user to a specific directory. Nor do they address that FTP users are often different from system users. The command adduser -c john is creating a system user on Ubuntu rather than a user within a specific FTP software system.

Hope this helps.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.