diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-01-29 18:35:10 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-01-29 18:35:10 +0000 |
commit | ece8231bd9eaa066e813e48a135428e4613d115e (patch) | |
tree | 9158bb36918fd5071952a278060a1c34fc190c02 | |
parent | 94f0a52befa8d4a330c403ebb1acee6225207579 (diff) | |
download | msec-ece8231bd9eaa066e813e48a135428e4613d115e.tar msec-ece8231bd9eaa066e813e48a135428e4613d115e.tar.gz msec-ece8231bd9eaa066e813e48a135428e4613d115e.tar.bz2 msec-ece8231bd9eaa066e813e48a135428e4613d115e.tar.xz msec-ece8231bd9eaa066e813e48a135428e4613d115e.zip |
Fixed umask for windows partitions.
-rw-r--r-- | conf/level.default | 2 | ||||
-rw-r--r-- | conf/level.secure | 2 | ||||
-rwxr-xr-x | src/msec/libmsec.py | 4 |
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) |