{"id":1322,"date":"2019-03-04T01:15:44","date_gmt":"2019-03-04T01:15:44","guid":{"rendered":"https:\/\/www.omniweb.com\/wordpress\/?p=1322"},"modified":"2019-03-04T01:17:35","modified_gmt":"2019-03-04T01:17:35","slug":"vsftpd-errors-with-new-users-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.omniweb.com\/wordpress\/?p=1322","title":{"rendered":"VSFtpd: Errors with new users (on Ubuntu)"},"content":{"rendered":"<p>I ran into this a couple times; after creating the new user, two problems can happen:<\/p>\n<p>1. Error: 500 OOPS: vsftpd: refusing to run with writable root inside chroot()<\/p>\n<p>The <a href=\"https:\/\/www.liquidweb.com\/kb\/error-500-oops-vsftpd-refusing-to-run-with-writable-root-inside-chroot-solved\/\">solution<\/a> to this is to make the FTP users home directory unwritable:<br \/>\n<code>chmod a-w \/home\/testuser<\/code><\/p>\n<p>2. Access Denied<\/p>\n<p>This happens when the user&#8217;s login is set to a shell that doesn&#8217;t actually exist,<br \/>\nsuch as &#8220;\/bin\/false&#8221;  or &#8220;\/sbin\/nologin&#8221; and can be corrected by adding the new method to \/etc\/shells,<br \/>\nor allowing the user a valid login shell and disabling ssh access via other means.<br \/>\n<code>usermod -s \/bin\/bash testuser<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I ran into this a couple times; after creating the new user, two problems can happen: 1. Error: 500 OOPS: vsftpd: refusing to run with writable root inside chroot() The solution to this is to make the FTP users home &hellip; <a href=\"https:\/\/www.omniweb.com\/wordpress\/?p=1322\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1322"}],"collection":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1322"}],"version-history":[{"count":3,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1322\/revisions"}],"predecessor-version":[{"id":1325,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1322\/revisions\/1325"}],"wp:attachment":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}