A
A
Artem Nazarov2020-12-04 10:58:19
linux
Artem Nazarov, 2020-12-04 10:58:19

How to give access to certain external FTP directories to a user?

I'm using linus debian + vsftp
Created an ftpuser user for ftp restricted access to his home directory

Also in /home there is another directory with services. In each of them there is a directory with logs.
I need to give access just to these logs ftpuser

/home - servicesdir - servisedir1 - log
- ...
- servisedir2 - log
- ...
- servisedir2 - log
- ...
- ...
- ftpuser - (link to logs in servicedir1)
- (link to logs in servisedir2)
- (link to logs in servisedir3)
- ...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pfg21, 2020-12-04
@very_very_good_day

symlinks are parsed by the ftp server and follow them only if there is access to this fs branch.
in this case, it is better to use mount -o bind in this case, the fs branch is supplied "directly", the program will not even know that it is in another place in the fs tree.

N
Nird, 2020-12-04
@Nird_o

Symlink and distribute rights, or add a user to a group to services.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question