/etc/cron.daily/samba is in samba 2:3.6.3-2ubuntu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #!/bin/sh
#
# cron script to save a backup copy of /etc/samba/smbpasswd in /var/backups.
#
# Written by Eloy A. Paris <peloy@debian.org> for the Debian project.
#
BAK=/var/backups
umask 022
if cd $BAK; then
# Make sure /etc/samba/smbpasswd exists
if [ -f /etc/samba/smbpasswd ]; then
cmp -s smbpasswd.bak /etc/samba/smbpasswd || cp -p /etc/samba/smbpasswd smbpasswd.bak
fi
fi
|