N
N
n0thingHere2022-03-05 16:03:08
ubuntu
n0thingHere, 2022-03-05 16:03:08

Vsftpd - Specific directory for user?

How can I make certain users stay only in /var/www/host.
I did it like this: https://qna.habr.com/q/550594
But how my user whom I created could walk through folders and walks
. At the same time, the user whom I created when installing ubuntu above home cannot
I honestly don’t know anymore what should i do i would really appreciate it if you could help me

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pfg21, 2022-03-05
@pfg21

add the following lines to /etc/vsftpd.conf.

# все пользователи заперты в своих хомяках
chroot_local_user=YES  

# включить список тех кто не заперт в своем хомяке
chroot_list_enable=YES                         
chroot_list_file=/etc/vsftpd.chroot_list

hamster where the user is locked is registered in /etc/passwd
if you write
chroot_local_user=NO
it will be the other way around - all users will freely roam anywhere, except for those who are registered in chroot_list_file - they will be locked in hamsters.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question