1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-08 04:04:42 +02:00

update vsftpd

This commit is contained in:
kev 2016-02-03 20:26:26 +08:00
parent 7b14b4d106
commit 3a85b2807d
5 changed files with 7 additions and 58 deletions

View File

@ -10,7 +10,7 @@ It is secure and extremely fast. It is stable. Don't take my word for it, though
~/fig/vsftpd/
├── docker-compose.yml
├── ftp/
│ └── README.md
│ └── README
├── pam.d/
│ └── vsftpd => For Virutal User
└── vsftpd/
@ -94,8 +94,8 @@ vsftpd:
```bash
$ cd ~/fig/vsftpd/
$ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout vsftpd/vsftpd.pem -out vsftpd/vsftpd.pem
$ echo "username:$(openssl passwd -1 password)" >> vsftpd/passwd
$ touch ./ftp/README.md
$ echo "tom:$(openssl passwd -1 uzia9Tu6)" >> vsftpd/passwd
$ echo "ftp's home" > ./ftp/README
$ docker-compose up -d
$ docker exec -it vsftpd_vsftpd_1 sh
>>>
@ -104,12 +104,11 @@ Changing password for kev
New password: ******
Retype password: ******
Password for kev changed by root
>>> echo "kev's home" > ~kev/README
>>>
>>> adduser -D virtual
>>> mkdir /home/virtual/tom
>>> echo tom >> /etc/ftpusers
>>> echo "tom's home" > /home/virtual/tom/README.md
>>> chown -R virutal:virtual /home/virtual
>>> mkdir ~virtual/tom
>>> echo "tom's home" > ~virtual/tom/README
>>> chown -R virutal:virtual ~virtual
>>>
>>> exit
```

View File

@ -1 +0,0 @@
tom

0
vsftpd/vsftpd/passwd Normal file
View File

View File

@ -1,49 +0,0 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEAtzIO2PzEb+wcurVGauFOFqeT3tRHdAdKdIiQsNt+4PAU/v6h
VM4Qjf6ZigrIdtjpU4cfqBLdI1b/3qui6V/ZidgTpydQMtfhqiqu5oeeej0VDLV1
mBDqQ+rBugnHLdMivIovzsPgbRSCkdLBM7Ndx7DUQgWOcKIkvzuwHq6mM8uawxo/
ixHXYb2vNwR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