aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conf/level.default2
-rw-r--r--conf/level.secure2
-rwxr-xr-xsrc/msec/libmsec.py4
3 files changed, 4 insertions, 4 deletions
diff --git a/conf/level.default b/conf/level.default
index 20fa9fc..31749eb 100644
--- a/conf/level.default
+++ b/conf/level.default
@@ -32,7 +32,7 @@ ENABLE_DNS_SPOOFING_PROTECTION=yes
CREATE_SERVER_LINK=default
ENABLE_PASSWORD=yes
NOTIFY_WARN=yes
-WIN_PARTS_UMASK=no
+WIN_PARTS_UMASK=002
CHECK_OPEN_PORT=yes
SHELL_TIMEOUT=0
ALLOW_REMOTE_ROOT_LOGIN=without-password
diff --git a/conf/level.secure b/conf/level.secure
index bd912d0..6c28728 100644
--- a/conf/level.secure
+++ b/conf/level.secure
@@ -32,7 +32,7 @@ ENABLE_DNS_SPOOFING_PROTECTION=yes
CREATE_SERVER_LINK=secure
ENABLE_PASSWORD=yes
NOTIFY_WARN=no
-WIN_PARTS_UMASK=0
+WIN_PARTS_UMASK=027
CHECK_OPEN_PORT=yes
SHELL_TIMEOUT=600
ALLOW_REMOTE_ROOT_LOGIN=no
diff --git a/src/msec/libmsec.py b/src/msec/libmsec.py
index 019e16f..36423e2 100755
--- a/src/msec/libmsec.py
+++ b/src/msec/libmsec.py
@@ -928,10 +928,10 @@ class MSEC:
msec.remove_line_matching('^HISTFILESIZE=')
def set_win_parts_umask(self, umask):
- ''' Set umask option for mounting vfat and ntfs partitions. If umask is '0', default system umask is used.'''
+ ''' Set umask option for mounting vfat and ntfs partitions. If umask is '0', default system umask is used.'''
fstab = self.configfiles.get_config_file(FSTAB)
- if umask == "no":
+ if umask == "0":
fstab.replace_line_matching("(.*\s(vfat|ntfs)\s+)umask=\d+(\s.*)", "@1defaults@3", 0, 1)
fstab.replace_line_matching("(.*\s(vfat|ntfs)\s+)umask=\d+,(.*)", "@1@3", 0, 1)
fstab.replace_line_matching("(.*\s(vfat|ntfs)\s+\S+),umask=\d+(.*)", "@1@3", 0, 1)