diff --git a/README.md b/README.md index b4b93de..1526840 100644 --- a/README.md +++ b/README.md @@ -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 mounting any directories, or you want to make sure a directory is owned by 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 volumes in separate directories inside the user's home 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 ``` -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 -Let's mount a direcotry and set UID: +Let's mount a directory and set UID: ``` docker run \ diff --git a/tests/run b/tests/run index 6baeed1..888299a 100755 --- a/tests/run +++ b/tests/run @@ -36,7 +36,7 @@ function beforeTest() { rm -rf "$tmpDir" # clean state 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 \ -v "$tmpDir/users:/etc/sftp-users.conf:ro" \ -v "$scriptDir/id_rsa.pub":/home/test/.ssh/keys/id_rsa.pub:ro \