Search Type:
Search for:

Language:

Product:
Category:
No categories for selected product

Is it possible to create FTP accounts to go to a certain directory on the server that is not your_domain/your_name/? We need to be able to create FTP accounts that only go to a specified directory.

Article ID: 415 
Last Review: Oct,21 2008
Author:
Last updated by: system

Resolution

This feature is planned to be implemented in the future Plesk versions. This time it can only be done manually.

Login to the server as 'root' user and create a system user (for example USER_NAME) with home directory you need, for example:

# /usr/sbin/useradd -d $HTTPD_VHOSTS_D/your_domain/some/location -s /bin/false USER_NAME


Set the password for this user using 'passwd' command.

Add this user into 'psacln' group:

# /usr/sbin/usermod -G psacln USER_NAME


The user will be 'chroot'-ed to his home because 'psacln' group is listed in /etc/ftpchroot. Set read/write permissions for this user on his home directory, for example:

# chmod 755 $HTTPD_VHOSTS_D/your_domain/some/location
# chown USER_NAME:psacln $HTTPD_VHOSTS_D/your_domain/some/location


And set execute permission on the domain's httpdocs folder:

# chmod 751 $HTTPD_VHOSTS_D/your_domain/httpdocs


$HTTPD_VHOSTS_D - have to be replaced with the real path to the Plesk virtual hosts in the all examples above.
Keywords: howto, ftp user


Subscription for changes to this article Subscription for changes to this article

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields
 
 
 
 
 
 
For Home
For Business
For Hosters
For SaaS
For Developers
 
Desktop Virtualization
- Parallels Desktop for Mac
- Parallels Workstation
- Parallels Workstation Extreme
Server Virtualization
- Parallels Server
- Parallels Server for Mac
- Parallels Virtuozzo Containers
- Parallels Infrastructure Manager
Automation
- Parallels Operations Automation
- Parallels Business Automation
- Parallels Plesk Family
More Products