-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pmount, remove sudoer rights to the user
Fixes #9
- Loading branch information
Showing
9 changed files
with
39 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,23 @@ | ||
DEV_SRC='/dev/sda' | ||
DEV_DST='/dev/sdb1' | ||
DEV_DST='sdb1' | ||
|
||
# User allowed to do the following commands without password | ||
USERNAME='kitten' | ||
HOME="/home/${USERNAME}" | ||
MUSIC="/opt/midi/" | ||
|
||
TMP="/tmp" | ||
ID=`/usr/bin/id -u` | ||
|
||
# Paths used in multiple scripts | ||
SRC="${TMP}/src" | ||
DST="${TMP}/dst" | ||
TEMP="${DST}/temp" | ||
ZIPTEMP="${DST}/ziptemp" | ||
LOGS="${DST}/logs" | ||
SRC="src" | ||
DST="dst" | ||
TEMP="/media/${DST}/temp" | ||
ZIPTEMP="/media/${DST}/ziptemp" | ||
LOGS="/media/${DST}/logs" | ||
|
||
|
||
# commands | ||
SUDO='/usr/bin/sudo' | ||
ID=`/usr/bin/id -u` | ||
SYNC='/bin/sync' | ||
TIMIDITY='/usr/bin/timidity' | ||
MOUNT='/bin/mount' | ||
|
||
# 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" | ||
PMOUNT='/usr/bin/pmount' | ||
PUMOUNT='/usr/bin/pumount' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters