{"id":220,"date":"2009-12-28T18:41:55","date_gmt":"2009-12-28T16:41:55","guid":{"rendered":"http:\/\/www.shukko.com\/x3\/?p=220"},"modified":"2009-12-29T14:08:40","modified_gmt":"2009-12-29T12:08:40","slug":"proftpd-virtual-user-%e2%80%93-quick-howto","status":"publish","type":"post","link":"https:\/\/www.shukko.com\/x3\/2009\/12\/28\/proftpd-virtual-user-%e2%80%93-quick-howto\/","title":{"rendered":"PROFTPD virtual user \u2013 quick howto"},"content":{"rendered":"<p>1. Download \u201cftpasswd\u201d perl script and chmod it to 755:<\/p>\n<pre style=\"font-family: monospace;\"><span style=\"color: #c20cb9; font-weight: bold;\">wget<\/span> http:<span style=\"color: #000000; font-weight: bold;\">\/\/<\/span>www.castaglia.org<span style=\"color: #000000; font-weight: bold;\">\/<\/span>proftpd<span style=\"color: #000000; font-weight: bold;\">\/<\/span>contrib<span style=\"color: #000000; font-weight: bold;\">\/<\/span>ftpasswd\r\n<span style=\"color: #c20cb9; font-weight: bold;\">chmod<\/span> <span style=\"color: #000000;\">755<\/span> ftpasswd\r\n\r\n2. Create file with your virtual user and ftp group\r\n\r\n<pre style=\"font-family: monospace;\"><span style=\"color: #c20cb9; font-weight: bold;\">mkdir<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>etc<span style=\"color: #000000; font-weight: bold;\">\/<\/span>proftpd\r\nftpasswd <span style=\"color: #660033;\">--passwd<\/span> <span style=\"color: #660033;\">--name<\/span>=ftp_login <span style=\"color: #660033;\">--home<\/span>=<span style=\"color: #000000; font-weight: bold;\">\/<\/span>home<span style=\"color: #000000; font-weight: bold;\">\/<\/span>ftp<span style=\"color: #000000; font-weight: bold;\">\/<\/span>ftp_login <span style=\"color: #660033;\">--shell<\/span>=<span style=\"color: #000000; font-weight: bold;\">\/<\/span>bin<span style=\"color: #000000; font-weight: bold;\">\/<\/span><span style=\"color: #c20cb9; font-weight: bold;\">false<\/span> <span style=\"color: #660033;\">--uid<\/span>=<span style=\"color: #000000;\">1003<\/span>\r\nftpasswd <span style=\"color: #660033;\">--group<\/span> <span style=\"color: #660033;\">--name<\/span>=ftp_group <span style=\"color: #660033;\">--gid<\/span>=<span style=\"color: #000000;\">50<\/span> <span style=\"color: #660033;\">--member<\/span>=ftp_login\r\n\r\n(it is not important what UID and GID you will use as long as it does not have root privileges  ,\r\n\u00a0just use any system uid and group and proftpd will write files with it\u2019s privileges)<\/pre>\n<p>3. Add this to your proftpd.conf file:<\/p>\n<pre style=\"font-family: monospace;\">RequireValidShell  off\r\nAuthUserFile  <span style=\"color: #000000; font-weight: bold;\">\/<\/span>etc<span style=\"color: #000000; font-weight: bold;\">\/<\/span>proftpd<span style=\"color: #000000; font-weight: bold;\">\/<\/span>ftpd.passwd\r\nAuthGroupFile <span style=\"color: #000000; font-weight: bold;\">\/<\/span>etc<span style=\"color: #000000; font-weight: bold;\">\/<\/span>proftpd<span style=\"color: #000000; font-weight: bold;\">\/<\/span>ftpd.group\r\n\r\n4. Restart PROFTPD<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1. Download \u201cftpasswd\u201d perl script and chmod it to 755: wget http:\/\/www.castaglia.org\/proftpd\/contrib\/ftpasswd chmod 755 ftpasswd 2. Create file with your virtual user and ftp group mkdir \/etc\/proftpd ftpasswd &#8211;passwd &#8211;name=ftp_login &#8211;home=\/home\/ftp\/ftp_login &#8211;shell=\/bin\/false &#8211;uid=1003 ftpasswd &#8211;group &#8211;name=ftp_group &#8211;gid=50 &#8211;member=ftp_login (it is not important what UID and GID you will use as long as it does not [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-220","post","type-post","status-publish","format-standard","hentry","category-kategerisiz"],"_links":{"self":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/comments?post=220"}],"version-history":[{"count":2,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/220\/revisions"}],"predecessor-version":[{"id":222,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/220\/revisions\/222"}],"wp:attachment":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/media?parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/categories?post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/tags?post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}