Giter Site home page Giter Site logo

Comments (8)

G3z avatar G3z commented on May 19, 2024 4

to use this options:

  • I created a vsftpd.conf file with the content taken from the repo
  • uncommented chroot_local_user=YES and added allow_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.

gadget1999 avatar gadget1999 commented on May 19, 2024 3

add the following lines to vsftpd.conf:

chroot_local_user=YES
allow_writeable_chroot=YES

from docker-alpine-ftp-server.

TrueOsiris avatar TrueOsiris commented on May 19, 2024 1

This is now in the default file.

from docker-alpine-ftp-server.

albanm avatar albanm commented on May 19, 2024 1

How is it possible to get this functionality since the commit was reverted ?

from docker-alpine-ftp-server.

delfer avatar delfer commented on May 19, 2024

Reverted #22

from docker-alpine-ftp-server.

Jormodn avatar Jormodn commented on May 19, 2024

Any feature plans to get that feature after that revert?

from docker-alpine-ftp-server.

ShubhTakale avatar ShubhTakale commented on May 19, 2024

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.

alexleach avatar alexleach commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.