diff options
author | Frederic Lepied <flepied@mandriva.com> | 2005-03-21 15:00:48 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2005-03-21 15:00:48 +0000 |
commit | b688729d0a0b26ee7be9bfc24b66c2596ddbb4c7 (patch) | |
tree | e756128e5266484c7288bdd65d91d8f6bb7bf155 | |
parent | 956c5fb3a4e93e1f12a557d125df1a1911a2e354 (diff) | |
download | msec-b688729d0a0b26ee7be9bfc24b66c2596ddbb4c7.tar msec-b688729d0a0b26ee7be9bfc24b66c2596ddbb4c7.tar.gz msec-b688729d0a0b26ee7be9bfc24b66c2596ddbb4c7.tar.bz2 msec-b688729d0a0b26ee7be9bfc24b66c2596ddbb4c7.tar.xz msec-b688729d0a0b26ee7be9bfc24b66c2596ddbb4c7.zip |
password_history: touch opasswd to have it work.
-rw-r--r-- | share/libmsec.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/libmsec.py b/share/libmsec.py index 40c4050..eb42383 100644 --- a/share/libmsec.py +++ b/share/libmsec.py @@ -358,8 +358,6 @@ def set_shell_history_size(size): if val != size: _interactive and log(_('Setting shell history size to %s') % size) msec.set_shell_variable('HISTFILESIZE', size) - opasswd = ConfigFile.get_config_file(OPASSWD) - opasswd.exists() or opasswd.touch() else: if val != None: _interactive and log(_('Removing limit on shell history size')) @@ -1083,6 +1081,8 @@ def password_history(arg): _interactive and log(_('Setting password history to %d.') % arg) system_auth.replace_line_matching(UNIX_REGEXP, '@1 remember=%d@3' % arg) or \ system_auth.replace_line_matching('(^\s*password\s+sufficient\s+(?:/lib/security/)?pam_unix.so.*)', '@1 remember=%d' % arg) + opasswd = ConfigFile.get_config_file(OPASSWD) + opasswd.exists() or opasswd.touch() else: _interactive and log(_('Disabling password history')) system_auth.replace_line_matching(UNIX_REGEXP, '@1@3') |