Question

How to access the "www"-folder on my machine via sFTP

Hello :) I’m new to the whole server world and usually just transfered my files via FTP to the server. With the great tutorials on digitalocean I managed to setup a LEMP server with cakephp.

This is great, though I’m curious, how would I create access to the “/usr/share/nginx/www” folder on my machine via ftp? I managed to connect with FileZilla to my server, though I end up in my user-folder “/home/USERNAME/files” :/

I’m thankful for every kind of information to help me understand this new world :)


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Thank you :)

Thank you :)

glad to hear things worked for you!! <br> <br>ok, for the 1st question, the answer is: <br> <br>simply, no. you need to modify users groups after creating them. like this: <br> <br>to add an existing user to a group use this command: <br> <br>usermod -a -G groupName userName <br> <br>you can check here: <br>http://stackoverflow.com/questions/7283068/how-to-add-an-existing-user-into-a-group-in-linux <br> <br>I think this guide will help understand things better: <br>http://www.howtogeek.com/50787/add-a-user-to-a-group-or-second-group-on-linux/ <br> <br>for the 2nd question, yes, it is a bad practice, but only for one reason. if you don’t have that folder on your home tree folder, that user may not get into function. so the system is going to consider it invalid user. <br> <br>so it is better to change it after changing the user folder name. you can do that like this: <br> <br>mv /home/user/oldname /home/user/newname <br> <br>make sure there is one space between these two paths. <br> <br>you can check it out here: <br> <br>http://askubuntu.com/questions/56326/how-do-i-rename-a-directory-via-the-command-line <br> <br>then you can look at your /etc/passwd to see if changes took place or not. if not, possibly you need to reload your system by logout and login to see the changes in effect. <br> <br>no need to logout from puTTY if you use it, just open new puTTY console and see if things changed!! <br> <br>Good luck!