aboutsummaryrefslogtreecommitdiffstats
path: root/share/libmsec.py
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2002-02-14 01:50:08 +0000
committerFrederic Lepied <flepied@mandriva.com>2002-02-14 01:50:08 +0000
commit6cd4fac441ab420292f191c3c140d6849a637f34 (patch)
tree41d4d7174b49b451cd8b0e4d5e888db827fbf68c /share/libmsec.py
parent18bdd894c2026fcdc31ebd8b58fa9313ccdff476 (diff)
downloadmsec-6cd4fac441ab420292f191c3c140d6849a637f34.tar
msec-6cd4fac441ab420292f191c3c140d6849a637f34.tar.gz
msec-6cd4fac441ab420292f191c3c140d6849a637f34.tar.bz2
msec-6cd4fac441ab420292f191c3c140d6849a637f34.tar.xz
msec-6cd4fac441ab420292f191c3c140d6849a637f34.zip
only reports an error for an empty wheel group when run interactively.
Diffstat (limited to 'share/libmsec.py')
-rw-r--r--share/libmsec.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/libmsec.py b/share/libmsec.py
index e35214d..bcc3862 100644
--- a/share/libmsec.py
+++ b/share/libmsec.py
@@ -288,7 +288,7 @@ def enable_pam_wheel_for_su(arg):
return
members = ent[3]
if members == [] or members == ['root']:
- error(_('wheel group is empty'))
+ _interactive and error(_('wheel group is empty'))
return
su.exists() and (su.replace_line_matching('^auth\s+required\s+/lib/security/pam_wheel.so\s+use_uid\s*$',
'auth required /lib/security/pam_wheel.so use_uid') or \