Comments (8)
to use this options:
- I created a
vsftpd.conf
file with the content taken from the repo - uncommented
chroot_local_user=YES
and addedallow_writeable_chroot=YES
just below it - set
root:root
as owner and group of the file (otherwise ftp server did not respond) - mounted the file inside the container
- "./vsftpd/vsftpd.conf:/etc/vsftpd/vsftpd.conf"
from docker-alpine-ftp-server.
add the following lines to vsftpd.conf:
chroot_local_user=YES
allow_writeable_chroot=YES
from docker-alpine-ftp-server.
This is now in the default file.
from docker-alpine-ftp-server.
How is it possible to get this functionality since the commit was reverted ?
from docker-alpine-ftp-server.
Reverted #22
from docker-alpine-ftp-server.
Any feature plans to get that feature after that revert?
from docker-alpine-ftp-server.
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?
How are you connecting, I am not able to connect?
from docker-alpine-ftp-server.
Personally I changed the folder permissions:
In docker-compose.yaml
:
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 /srv/ftp
, and read and execute permissions from /srv/ftp/*
:
$ 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...
from docker-alpine-ftp-server.
Related Issues (20)
- How do I map a volume on the Docker host? HOT 2
- Container dies after: "adduser: user 'ftp_user' in use" HOT 2
- enable some additional features to be set by variable? HOT 1
- client connect failed HOT 1
- Cant store files when starting integration test on gitlab runner HOT 1
- default configuration does not list dot files (so called "hidden" files) via NLST HOT 2
- container undeterministically dies directly after startup HOT 6
- Process quitting on startup on RHEL7 HOT 10
- There is an error in the FTPS documentation HOT 1
- Remove TLSv1 Support HOT 3
- Why is there only "latest" tag on DockerHub? HOT 1
- Container error illegal character with code 34 at position 0 HOT 1
- no connection with letsencrypt cert HOT 3
- what is use of volume ftp/ftp is in dockerfile? HOT 3
- environment seems wrong
- How set read-only permission? HOT 1
- mkdir: can't create directory '/ftp/admin': I/O error
- Change base image to 3.16.9 HOT 3
- Random '500 OOPS: failed to open vsftpd log file:/proc/1/fd/1' HOT 1
- Passive mode error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-alpine-ftp-server.