Skip to content

Instantly share code, notes, and snippets.

@t-oginogin
Created May 16, 2014 21:41
Show Gist options
  • Select an option

  • Save t-oginogin/11686b480ddedac2933c to your computer and use it in GitHub Desktop.

Select an option

Save t-oginogin/11686b480ddedac2933c to your computer and use it in GitHub Desktop.
vsftpdにおいて運用中のftpのrootディレクトリを夜間に変更する手順 ref: http://qiita.com/t_oginogin/items/a3852ca7653a979b35d6
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