・webminで管理
http://www.inohara.net/~kazuyoshi/lan-linux-vectra-samba.htm
・ごみ箱の定期削除 (SUSE)
- exec の後を変えてテストしてから
/etc/cron.daily/clean_recycle
#!/bin/sh # # paranoia settings # umask 022 PATH=/sbin:/bin:/usr/sbin:/usr/bin export PATH MAX_DAYS_IN_RECYCLE=30 RECYCLE_DIRS_TO_CLEAR=`find /home /var/samba /home2/var/samba /home3/var/samba -name ".recycle" -type d -maxdepth 2` # # Delete appropriate files in .recycle directories. # for RECYCLE_DIR in $RECYCLE_DIRS_TO_CLEAR ; do test -x /usr/bin/safe-rm && { find $RECYCLE_DIR/. ! -type d ! -type s ! -type p \ -atime +$MAX_DAYS_IN_RECYCLE -exec /usr/bin/safe-rm {} \; } || echo "Error: Can not find /usr/bin/safe-rm" find $RECYCLE_DIR/. -depth -type d -empty -mindepth 1 \ -mtime +$MAX_DAYS_IN_RECYCLE -exec /usr/bin/safe-rmdir {} \; done exit 0