Ftp user to home folder.

pietrek

Verified User
Joined
Apr 19, 2021
Messages
9
Hello.

I have DA installed on Debian10.
Please let me know what I should do now to add an FTP user but to have access to the home directory. Currently, all added users have access only to the domain folder.
I only need a separate FTP user for my home folder?
Should I do it somehow via ssh? I am asking for tips. Because I can see that the DA manages the system.
 
For your home folder? Where all accounts are present? Why would you want to do that, makes your server less secure.
You could just as well enable root access for FTP if the root user is going to use it.
 
Not in my accounts folder.
I also have a xxx user in my system and would like to create an FTP user for him with access to his home directory /home/xxx .
 
Oke I'm glad I asked. So you don't want access to the home directory but give users access to their home directory.

That is odd. Because if you create an account, all users have FTP access to the /home/user directory by default if you did not create any custom settings.

It would be odd if they don't have that access.

Normally users land in /home/user and then can change to /home/user/domains/domain.com/public_html to upload their website.
Often FTP programs can reconnect to there automatically. But they can cwd backup to /home/user again.

If they don't get access there, something must be wrong with the system, because they should also be able for example to download their backups from the /home/user/backups directory.
 
Addition:
If you want to give somebody else access to your /home/user directory, you have to create a new FTP account for him.
This is easy to do from within DA.
Create a new FTP account like [email protected] and check the "custom" option and fill in there /home/yourusername and you should be fine.
Could take a minute for it to work.
 
So:
The command that solved my problem is:
Code:
pure-pw useradd xxx -u xxx -g xxx -d /home/yyy -m
 
Did you even try the way I said it? Because that would be the correct way.
Which might use the same command. But it should not be necessary to use these commands via SSH.
 
Back
Top