W3Ask











Linux command line
#ad
Linux Basics for Hackers
#ad
How Linux works
#ad
Linux administration
#ad
Linux programming
#ad
Linux Bible
#ad
Linux pocket guide
#ad


HOME  >  SOFTWARE  >  LINUX

ProFTPD SFTP virtual users redirected to www



How to redirect virtual users to the www data folder ?

You want to setup a new domain name with your FTP server in order to redirect it to the corresponding folder. You will have to follow few steps.

# nano /etc/ssh/sshd_config

Decomment this line :

Subsystem sftp /usr/lib/openssh/sftp-server

Add :

Match Group sftp_users
X11Forwarding no
AllowTcpForwarding no
ChrootDirectory /var/www
ForceCommand internal-sftp

Add the user group sftp_users :

groupadd sftp_users

Add the SFTP user to this usergroup :

usermod -G sftp_users username

# systemctl restart ssh

Note: Commissions may be earned from the links above.


This page contains references to products from one or more of our advertisers. We may receive compensation when you click on links to those products. For an explanation of our advertising policy, please visit this page.









Related posts:


How to delete a virtual user in Debian
https://w3ask.com/how-delete-virtual-user-debian/
While managing the users of a server, how to delete a virtual user in Debian ? It may be sometimes usefull to remove a user and adding a new ...
How to link the ftp server to virtual hosts
https://w3ask.com/how-link-ftp-server-virtual-hosts/
How to link the ftp web server and the Apache virtual hosts ? This link allow the domain name to reach the files required to display the wanted ...
How to restart proFTPD
https://w3ask.com/how-to-restart-proftpd/
Here are some simple command to restart proFTPD, the FTP web server. This package allows you to store files in a folder and then redirect a ...
How to set a block, i.e. a virtual hosts with Nginx :
https://w3ask.com/set-block-virtual-hosts-nginx/
The installation of virtual hosts is an important step if we want to redirect several domain names to a same Web server, and therefore to one ...
How to list users in Linux
https://w3ask.com/list-users-linux/
You want to find the list of the users on your server in order to know which one could have access to certain folders on your system. Also if ...








Linux programming
#ad


Linux pocket guide
#ad


Linux Bible
#ad


How Linux works
#ad


Linux Basics for Hackers
#ad


Linux administration
#ad


Linux command line
#ad





Languages

  • English
  • French
  • German
  • Italian
  • Dutch
  • Portuguese
  • Spanish

Know us

  • About
  • Contact
  • Categories list

Privacy

  • Privacy & Cookie Policy
  • Advertising policy
W3Ask © 2023. All rights reserved.
Disclaimer:

When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.

As an Amazon Associate I earn from qualifying purchases.

This page includes affiliate links for which the administrator of W3Ask may earn a commission at no extra cost to you should you make a purchase. These links are indicated using the hashtag #ad.


Information:

We do not assume any responsibility for the data displayed on our website. Please use at your own risk. Some or all of this data may be out of date or incomplete, please refer to the technical page on the respective manufacturer's website to find the latest up-to-date information regarding the specifics of a product.


Trading System Forex GadgetVersus GadgetVersus France