blob: ee6956436d6565864d85b8a8d96d7a24f6d35f1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/bash
if [[ -z $1 ]]; then
echo "Usage : $0 [0-5]"
echo "Usage : $0 \"custom\""
exit 1
fi
if [[ ${1} == custom ]]; then
/usr/share/msec/custom.sh
exit 0;
fi
if [[ -f /usr/share/msec/level$1.sh ]]; then
/usr/share/msec/level$1.sh
if [[ -f /usr/share/msec/perm.$1 ]]; then
/usr/share/msec/file_perm.sh /usr/share/msec/perm.$1
else
echo "Couldn't find the default permissions for level $1."
fi
else
echo "Security level $1 not availlable..."
fi
|