{"id":195,"date":"2013-01-20T11:40:38","date_gmt":"2013-01-20T18:40:38","guid":{"rendered":"http:\/\/www.designersgate.com\/blogs\/?p=195"},"modified":"2013-01-20T11:40:38","modified_gmt":"2013-01-20T18:40:38","slug":"giving-privileges-to-directory-varwww-to-filezilla-ubuntu-12-10","status":"publish","type":"post","link":"https:\/\/designersgate.com\/blog\/giving-privileges-to-directory-varwww-to-filezilla-ubuntu-12-10\/","title":{"rendered":"Giving Privileges to Directory \/var\/www to Filezilla &#8211; Ubuntu 12.10"},"content":{"rendered":"<p>Hi, good day everyone!<\/p>\n<p>Today I was finally setting up my Filezilla in my full Ubuntu 12.10 server, and obviously things are a bit different in this OS. For example, even though I installed Filezilla in my computer this does not means that Filezilla has privileges to any folder, either in the root.<\/p>\n<p>For Windows Environment, everything that&#8217;s in the root does no required authentication from the system, not this way in Ubuntu.<\/p>\n<p>Traditionally, when you install Apache in Unbuntu, Apache creates a directory in the File System or root named &#8220;var&#8221; and every public files available from the browser is stored in &#8220;\/var\/www&#8221;.<\/p>\n<p>Now, Filezilla or any other software natively does not have any privilege to write to any directory only in &#8220;\/usr\/share&#8221; directory. To allow Filezila to communicate with &#8220;\/var\/www&#8221; you need to allow it first, this by creating an user for your ftp purposes.<\/p>\n<p>To make it easy for me, what I did is that I create an user that&#8217;s call exactly as my hosting environment and allowing access to this user into the root directory &#8220;\/var\/www\/&#8221;, this way I&#8217;m not allowing the software, but the user the software uses to write to this directory.<\/p>\n<p>How I did this, first you need to open your terminal with:<\/p>\n<p><code>Ctrl+Alt+T<\/code><\/p>\n<p>With this done enter a sudo code that will be used in your current open session:<\/p>\n<p><code>sudo su<\/code><\/p>\n<p>Enter the password you setted up when installed Ubuntu if you are the administrator. With this done you need to create an user using useradd.<\/p>\n<p><code>useradd yourhostinguser -p yourhostingpassword -d \/var\/www -s \/bin\/false<\/code><\/p>\n<p>Now you have to add this user to your system:<\/p>\n<p><code>passwd yourhostinguser<\/code><\/p>\n<p>The system will ask you for the password:<\/p>\n<p><code>Enter new Unix password:<\/code><\/p>\n<p>Enter &#8211;<em>yourhostingpassword<\/em> when submitted will ask you to re-confirm the password:<\/p>\n<p><code>Retype new Unix password:<\/code><\/p>\n<p>Enter the password again and submit by click [ENTER].<\/p>\n<p>That&#8217;s it, you now have access to the directory with Filezilla, as long as you use the same user and password for the hosting service you are using.<\/p>\n<p>Downside is that you need to create a new user if you have more than one users in you hosting, to have this user only access to the specify directory to that user.<\/p>\n<p>Well, I hope this help. Happy Coding!<\/p>\n<p>If you need to learn how to install Apache, PHP and MySQL in Ubuntu 12.10 subscribe to this Designer&#8217;s Gate to receive my free PDF tutorial on how to install this bundle, in just one tutorial:<\/p>\n<p class=\"wpcf7-contact-form-not-found\"><strong>Error:<\/strong> Contact form not found.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, good day everyone! Today I was finally setting up my Filezilla in my full Ubuntu 12.10 server, and obviously things are a bit different in this OS. For example, even though I installed Filezilla in my computer this does not means that Filezilla has privileges to any folder, either in the root. For Windows [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13],"tags":[93,94,95,96,52,97,98,99],"class_list":["post-195","post","type-post","status-publish","format-standard","hentry","category-tips","tag-filezilla","tag-ftp","tag-hosting","tag-privileges","tag-software","tag-terminal","tag-ubuntu","tag-user"],"acf":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/designersgate.com\/blog\/wp-json\/wp\/v2\/posts\/195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/designersgate.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/designersgate.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/designersgate.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/designersgate.com\/blog\/wp-json\/wp\/v2\/comments?post=195"}],"version-history":[{"count":0,"href":"https:\/\/designersgate.com\/blog\/wp-json\/wp\/v2\/posts\/195\/revisions"}],"wp:attachment":[{"href":"https:\/\/designersgate.com\/blog\/wp-json\/wp\/v2\/media?parent=195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/designersgate.com\/blog\/wp-json\/wp\/v2\/categories?post=195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/designersgate.com\/blog\/wp-json\/wp\/v2\/tags?post=195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}