Created
May 16, 2014 21:41
-
-
Save t-oginogin/11686b480ddedac2933c to your computer and use it in GitHub Desktop.
vsftpdにおいて運用中のftpのrootディレクトリを夜間に変更する手順 ref: http://qiita.com/t_oginogin/items/a3852ca7653a979b35d6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo `date` | |
| sudo /sbin/service vsftpd stop | |
| sudo cp -rpf /home/ftpservice/ftp_root /data/ftp/ | |
| sudo chown -R ftpservice /data/ftp | |
| sudo chgrp -R ftpservice /data/ftp | |
| sudo cp vsftpd.conf /etc/vsftpd/vsftpd.conf | |
| sudo chmod 0600 /etc/vsftpd/vsftpd.conf | |
| sudo /sbin/service vsftpd start | |
| echo `date` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment