Answer the question
In order to leave comments, you need to log in
How to connect via FTP to a specific domain?
Hello. How can I make an ftp connection to a specific domain on an Ubuntu 14.04 server, and not to the user himself. For example, I have an admin user and the domains mysite1.ru, mysite2.ru are already there. And I can't make an ftp connection to only one of the domains. How can I do that? Thank you.
Answer the question
In order to leave comments, you need to log in
It all depends on what you have chosen for the
ftp server.
Simple ftp users do not need to have shell access. Before you start creating new users, run the command:
Create a new user
useradd имя_пользователя -d /home/имя_папки -m -s /bin/false
passwd имя_пользователя
chmod 777 /var/www/mysite2.ru
chown имя_пользователя:имя_пользователя /var/www/mysite2.ru
1st - the question is not very clear,
2nd - you can study ftp as a protocol, that is, all sorts of headers, etc.
3rd - use
software the question is not clear
askubuntu.com/questions/575523/how-to-setup-virtua...
www.sherweb.com/blog/how-to-set-up-ftp-access-for-...
Not so long ago, a colleague asked the same question and had to write an instruction: notessysadmin.com/ftp-access-to-website-files. How to make two, three or more will figure it out, it's obvious. Well, and another feature, after the reboot, you will have to mount the directories with your hands, because. Since the note is universal, I leave this question to the tuner - either execute scripts at boot, or make an entry in fstab.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question