{"id":386,"date":"2011-12-01T06:51:32","date_gmt":"2011-12-01T06:51:32","guid":{"rendered":"http:\/\/www.nirvaat.com\/?p=386"},"modified":"2011-12-01T06:51:32","modified_gmt":"2011-12-01T06:51:32","slug":"additional-ftp-user-for-a-sub-folder-in-plesk-controlled-domain","status":"publish","type":"post","link":"https:\/\/nirvaat.com\/blogs\/2011\/12\/additional-ftp-user-for-a-sub-folder-in-plesk-controlled-domain\/","title":{"rendered":"Additional FTP user for a sub folder in Plesk controlled domain"},"content":{"rendered":"<p>Assuming you already have an existing domain (example.com) with the primary FTP user (foo) with home directory (\/var\/www\/vhosts\/example.com), and you wish to create additional ftp users (bar) with the same access privileges as foo to subfolder like this \/var\/www\/vhosts\/example.com\/sub_folder (make sure the folder already exists) or to main folder (\/var\/www\/vhosts\/example.com). To do this follow the instructions below:<\/p>\n<ol>\n<li>Login to shell with root access and issue this command:<br \/>\n<code># id foo<\/code><br \/>\nit will show something like that:<br \/>\n<code># uid=10013(foo) gid=2524(psacln) groups=2524(psacln)<\/code><\/li>\n<li>remember the uid of &#8220;foo&#8221; which is 10013, we will need it later.<\/li>\n<li>create user via the command below and use foo&#8217;s uid like this (this will let &#8220;bar&#8221; access subfolder):<br \/>\n<code># \/usr\/sbin\/useradd -u 10013 -o -d \/var\/www\/vhosts\/example.com\/sub_folder -g psacln -s \/bin\/false bar<\/code><\/li>\n<li>create password for bar:<br \/>\n<code># \/etc\/passwd bar<\/code> (enter the new password and confirm it, does not have to be the same as foo\u2019s)<\/li>\n<\/ol>\n<p>You should now be able to use an FTP client to login with that user\u2019s name and password. This is the only good solution for Plesk.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Assuming you already have an existing domain (example.com) with the primary FTP user (foo) with home directory (\/var\/www\/vhosts\/example.com), and you wish to create additional ftp users (bar) with the same access privileges as foo to subfolder like this \/var\/www\/vhosts\/example.com\/sub_folder (make sure the folder already exists) or to main folder (\/var\/www\/vhosts\/example.com). To do this follow the [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"_vp_format_video_url":"","_vp_image_focal_point":[],"footnotes":""},"categories":[36],"tags":[],"class_list":["post-386","post","type-post","status-publish","format-standard","hentry","category-linux-admin-debian-fedora"],"_links":{"self":[{"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/posts\/386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/comments?post=386"}],"version-history":[{"count":2,"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/posts\/386\/revisions"}],"predecessor-version":[{"id":388,"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/posts\/386\/revisions\/388"}],"wp:attachment":[{"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/media?parent=386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/categories?post=386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/tags?post=386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}