0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-24 12:59:24 -05:00

Typo and text update

This commit is contained in:
Adrian Dvergsdal 2016-08-18 12:45:59 +02:00
parent d961e18d73
commit e6aa103675
2 changed files with 4 additions and 4 deletions

View file

@ -18,7 +18,7 @@ This is an automated build linked with the [debian](https://hub.docker.com/_/deb
ownership. Perfect when you just want a fast way to upload something without ownership. Perfect when you just want a fast way to upload something without
mounting any directories, or you want to make sure a directory is owned by mounting any directories, or you want to make sure a directory is owned by
a user (chown -R). a user (chown -R).
- Mount volumes in user's home direcotry. - Mount volumes in user's home directory.
- The users are chrooted to their home directory, so you must mount the - The users are chrooted to their home directory, so you must mount the
volumes in separate directories inside the user's home directory volumes in separate directories inside the user's home directory
(/home/user/**mounted-directory**). (/home/user/**mounted-directory**).
@ -32,11 +32,11 @@ This is an automated build linked with the [debian](https://hub.docker.com/_/deb
docker run -p 22:22 -d atmoz/sftp foo:pass:::upload docker run -p 22:22 -d atmoz/sftp foo:pass:::upload
``` ```
No mounted directories or custom UID/GID. User "foo" with password "pass" can login with sftp and upload files to a folder called "upload". Later you can inspect the files and use `--volumes-from` to mount them somewhere else (or see next example). User "foo" with password "pass" can login with sftp and upload files to a folder called "upload". No mounted directories or custom UID/GID. Later you can inspect the files and use `--volumes-from` to mount them somewhere else (or see next example).
## Sharing a directory from your computer ## Sharing a directory from your computer
Let's mount a direcotry and set UID: Let's mount a directory and set UID:
``` ```
docker run \ docker run \

View file

@ -36,7 +36,7 @@ function beforeTest() {
rm -rf "$tmpDir" # clean state rm -rf "$tmpDir" # clean state
mkdir "$tmpDir" mkdir "$tmpDir"
echo "test::$(id -u):$(id -g):share,dir1,dir2" >> "$tmpDir/users" echo "test::$(id -u):$(id -g):dir1,dir2" >> "$tmpDir/users"
docker run \ docker run \
-v "$tmpDir/users:/etc/sftp-users.conf:ro" \ -v "$tmpDir/users:/etc/sftp-users.conf:ro" \
-v "$scriptDir/id_rsa.pub":/home/test/.ssh/keys/id_rsa.pub:ro \ -v "$scriptDir/id_rsa.pub":/home/test/.ssh/keys/id_rsa.pub:ro \