Skip to content
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

Not allowed to create directories #412

Open
avwie opened this issue May 20, 2024 · 1 comment
Open

Not allowed to create directories #412

avwie opened this issue May 20, 2024 · 1 comment

Comments

@avwie
Copy link

avwie commented May 20, 2024

I am following the basic setup:

docker run -p 22:22 -d atmoz/sftp foo:pass:::upload

When connecting and navigating to /upload I am not allowed to create a subdirectoy:Permission denied

Permissions are as follows:
drwxr-xr-x 2 foo users 4096 May 20 06:13 upload

What am I doing wrong?

@prov3it
Copy link

prov3it commented Jul 16, 2024

i had the same issue, but fixed it by not chosing a folder in the root (/) directory. This is working for me with docker-compose:

version: "3"
services:
  name_here:
    image: atmoz/sftp
    container_name: name_here
    ports:
      - "localport:22"
    restart: unless-stopped
    volumes:
      - /local/folder/here/:/home/randomuser/upload
    labels:
      - "traefik.enable=disable"
    networks:
      - networkname
    command: randomuser:randompassword:1001

networks:
  networkname:
    external: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants