Y
Y
Yuriy2017-10-25 09:58:21
linux
Yuriy, 2017-10-25 09:58:21

Proftpd virtual users, home directory?

Please tell me how to restrict virtual users to only this directory (/var/www/site.ru)?
I create a virtual user, specify the user and group from www-data

ftpasswd --passwd --file=/etc/proftpd/ftpd.passwd --name=vuser1 --uid=33 --gid=33 --home=/var/www/site.ru --shell=/bin/false

Jupers can access ftp, but they have access to the very root of the file system, how to limit only home home=/var/www/site.ru

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gansterito, 2017-10-25
@yous

The keyword is chroot. In Proftpd it is enabled via the DefaultRoot option with a value of ~ (tilde).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question