-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to prevent ftp user to go to parent directory? #19
Comments
add the following lines to vsftpd.conf: chroot_local_user=YES |
This is now in the default file. |
Reverted #22 |
How is it possible to get this functionality since the commit was reverted ? |
Any feature plans to get that feature after that revert? |
to use this options:
|
How are you connecting, I am not able to connect? |
Personally I changed the folder permissions: In version: "3.0"
services:
ftp:
image: delfer/alpine-ftp-server
environment:
- USERS=user1|password1|/srv/ftp/user1 user2|password2|/srv/ftp/user2
volumes:
- /srv/ftp:/srv/ftp
[...] Bring the container up, and let the container make the user folders. Then in the host, remove global read permissions from $ sudo chmod o-r /srv/ftp
$ sudo chmod o-rx /srv/ftp/* I think this could quite easily be put into the startup script, I'll see about creating a pull request... |
I noticed that when I connect to the ftp-server I am able to go to the parent directory and even to other directories in the root.
How can I prevent the ftp user to go other directories?
The text was updated successfully, but these errors were encountered: