Portal Home > Knowledgebase > Articles Database > Creating FTP User in Plesk


Creating FTP User in Plesk




Posted by WebHostingNeeds, 03-13-2006, 12:50 AM
Hi, I am new to Plesk. A Client need to create FTP account for sub folder /var/www/vhosts/domain.extn/httpdocs/ftp_upload/ So i added a system user with adduser -d /var/www/vhosts/domain.extn/httpdocs/ftp_upload/ username It worked fine, but problem is when connected, it show full path in FTP, that is /var/www/vhosts/domain.extn/httpdocs/ftp_upload/ So user can see files in / folder if he need. When connect with Plesk created FTP, it only show /httpdocs That is you can't see the real server / folder. How do i make the FTP account i created show only the folder when connected ? Regards, Yujin

Posted by InstaCarma_carmen, 03-13-2006, 08:49 AM
Hi, If you are trying to add the subdomain via plesk control panel, it allows you to create a ftp account directly points to document root of the subdomain. When you try accessing the subdomain via ftp takes you to the directory to which subdomain is pointing to. Sincerely, Carmen [carmen@instacarma.com]

Posted by WebHostingNeeds, 03-13-2006, 02:11 PM
Thanks for the reply. In Plesk, if you create a sub domain with FTP access, you will not get access to a sub folder in main site. What i need is giving FTP access to a sub folder of main site, this is can be done with Cpanel by adding a New FTP account. In Plesk, if i added a sub domain, it is creating new folder under "subdomains" folder. What i need is FTP account with access to /httpdocs/myfolder If i add a sub domain with name "myfolder", FTP access is given to /subdomains/myfolder Any other solution ?

Posted by InstaCarma_carmen, 03-14-2006, 08:57 AM
Hi, Are you using the user name for ftp with @domainname.com? Just check the complete ftp user id which will displayed while confirming the ftp account creation in plesk control panel and pass the same info while logging into ftp. If you donot add @domainname.com you may reach home directory of your main account if the usernames are similar. Sincerely, Carmen [carmen@instacarma.com]

Posted by WebHostingNeeds, 03-14-2006, 11:33 AM
Thanks for the reply. When i created sub domain, it asked if i need to create FTP account for this sub domain or will use main site FTP account. I selected create new FTP account. This new FTP user name have no @, i just enter same name as the sub domain, it worked fine for that sub domain, in plesk, sub domain files are not stopred in sub folder of main site. What i need is FTP account to sub folder of main site, this is for uploading images to a gallery that is installed on main site. I have solved the problem by deleting the folder of the sub domain and symlinking it to the sub folder inside main site. Now when i login to FTP account of sub domain, i will go to sub folder inside main site's httpdocs folder. Thanks, Yujin

Posted by amedjones, 08-23-2008, 03:53 PM
for anyone out there having the same problem try the following link, it helped me out ryanjbonnell.com/journal/ftp-account

Posted by jazzerman, 10-01-2009, 06:52 PM
Plesk is a great Control Panel in the shared hosting environment, but there are a few things that are not available in the Control Panel. For example, you cannot create additional FTP user in Plesk Control panel for Linux (this support is enabled in Plesk for windows). But some time it is required to have multiple FTP accounts to upload/download data. You need to have shell access since the Plesk control panel won’t allow it in the GUI. Assuming you already have an existing domain (example.com) with the primary FTP user (jack) with password (schmidt) with home directory (/var/www/vhosts/example.com), and you wish to create additional ftp users (jill) with the same access privileges as jack to subfolder like this /var/www/vhosts/example.com/custom_folder (make sure the folder already exists) or to main folder (/var/www/vhosts/example.com). To do this follow the instructions below: 1. Login to shell with root access and issue this command: # id jack it will show something like that: # uid=10002(jack) gid=2524(psacln) groups=2524(psacln) 2. remember the uid of jack which is 10002, we will need it later. 3. create user via the command below and use jack's uid like this (this will let jill access subfolder): # /usr/sbin/useradd -u 10002 -o -d /var/www/vhosts/example.com/custom_folder -g psacln -s /bin/false jill 4. create password for jill: # /etc/passwd jill (enter the new password and confirm it, does not have to be the same as jack’s) You should now be able to use an FTP client to login with that user’s name and password. This is the only good solution for Plesk for nowadays.

Posted by Honza, 11-23-2009, 10:03 PM
Hi, may I ask you how do I delete the ftp user after I don't need it anymore? Thanks a lot!

Posted by Honza, 11-23-2009, 10:35 PM
Also I tried the # id something and I get this: uid=0(something) gid=0(something) groups=0(something),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) So, how do I get the uid=10002 ? Please? Thanks a lot

Posted by jazzerman, 11-25-2009, 03:54 AM
The uid of your user (something) can be different. 10002 is just an example. To delete user, do this: /usr/sbin/userdel username

Posted by Honza, 11-25-2009, 07:18 AM
Hi jazzerman, I understand it is example but where exactly is the 10002 ? Should I joust add numbers to each other? So if I have uid=0(something) gid=0(something) groups=0(something),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) The number would be 0001234610 ? Or what? Thanks

Posted by jazzerman, 11-25-2009, 07:56 PM
look under uid field to get uid

Posted by Honza, 11-26-2009, 04:18 PM
Hi, jazzerman I'm sorry but I don't know what you mean by that... all I could see under uid is 0 Regards H.

Posted by jazzerman, 11-26-2009, 06:05 PM
Then your uid will be 0! try it and see if it works

Posted by RussellJ, 08-25-2010, 10:54 AM
Many Thanks Jazzerman, your solution worked perfectly. Like previous contributors I had spent time trying to use subdomains to create an FTP account that only allowed access to a certain subfolder. Russell



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
A Record to Alias (Views: 943)


Language:

LoadingRetrieving latest tweet...

Back to Top Copyright © 2018 DC International LLC. - All Rights Reserved.