Circlean/fs/opt/groomer/constraint.sh

31 lines
670 B
Bash
Raw Normal View History

DEV_SRC='/dev/sda'
DEV_DST='/dev/sdb1'
2013-02-15 18:47:13 +01:00
# User allowed to do the following commands without password
USERNAME='kitten'
HOME="/home/${USERNAME}"
MUSIC="/opt/midi/"
2013-02-15 18:47:13 +01:00
TMP="/tmp/"
# Paths used in multiple scripts
SRC="${TMP}/src"
DST="${TMP}/dst"
TEMP="${DST}/temp"
ZIPTEMP="${DST}/ziptemp"
LOGS="${DST}/logs"
2013-02-15 18:47:13 +01:00
# commands
SUDO='/usr/bin/sudo'
ID=`/usr/bin/id -u`
2013-02-15 18:47:13 +01:00
SYNC='/bin/sync'
TIMIDITY='/usr/bin/timidity'
2013-02-15 18:47:13 +01:00
# root commands.
# To avoid the risk that an attacker use -o remount on mount and other nasty
# commands, we use our own scripts to invoke mount and umount.
MOUNT_DST="${HOME}/kitten_mount_dst"
MOUNT_SRC="${HOME}/kitten_mount_src"
UMOUNT="${HOME}/kitten_umount"