Inotify 让Linux FTP权限继承推荐

Inotify下载地址: https://github.com/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.tar.gz1、[root@localhost down]# wget –no-check-certificate https://github.com/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.tar.gz \\ –no-check-certificate参数是支持https2、[root@localhost down]# tar -zxf inotify-tools-3.14.tar.gz3、[root@localhost inotify-tools-3.14]# ./configure4、[root@localhost inotify-tools-3.14]# make ;make install1、查看是否支持内核-rw-r–r– 1 root root 0 Jul9 19:43 max_queued_events -rw-r–r– 1 root root 0 Jul9 19:43 max_user_instances -rw-r–r– 1 root root 0 Jul9 19:43 max_user_watches[root@localhost inotify-tools-3.14]# ls /usr/local/bin/inotifywait/usr/local/bin/inotifywait/usr/local/bin/inotifywait -mrq –timefmt ‘%d/%m/%y %H:%M’ –format’%T %w%f’ -e modify,delete,create,attrib /var/www[root@localhost inotify-tools-3.14]# /usr/local/bin/inotifywait -mrq –timefmt ‘%d/%m/%y %H:%M’ –format’%T %w%f’ -e modify,delete,create,attrib /var/www 09/07/11 20:01 /var/www/testfile4、利用这个输出,写个SHELL自动继承src=/var/www /usr/local/bin/inotifywait -mrq –timefmt ‘%d/%m/%y %H:%M’ –format’%T %w%f’ \ -e modify,delete,create,attrib \ ${src} \ | while readfile do chmod -R 777 $file 2 /dev/null done5、执行这个shell“但行好事,莫问前程”,往往成功的几率反而更大些;

Inotify 让Linux FTP权限继承推荐

相关文章:

你感兴趣的文章:

标签云: