diff options
author | Erik Troan <ewt@redhat.com> | 2000-05-02 15:32:10 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-05-02 15:32:10 +0000 |
commit | 338230d6f35f81f3c8cbf13146f392520c4e11c1 (patch) | |
tree | d11cd8822e5b9a92ac83c113a57948057122f8b8 /textw | |
parent | 256aca1d2a0c7725f3e363bac3ad9ec0b3d44669 (diff) | |
download | anaconda-338230d6f35f81f3c8cbf13146f392520c4e11c1.tar.gz anaconda-338230d6f35f81f3c8cbf13146f392520c4e11c1.tar.xz anaconda-338230d6f35f81f3c8cbf13146f392520c4e11c1.zip |
don't let them add root user
Diffstat (limited to 'textw')
-rw-r--r-- | textw/userauth_text.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/textw/userauth_text.py b/textw/userauth_text.py index 57023c44c..e5d9380c0 100644 --- a/textw/userauth_text.py +++ b/textw/userauth_text.py @@ -118,6 +118,13 @@ class UsersWindow: pass2.set ("") continue + if userid.value() == "root": + ButtonChoiceWindow(self.screen, _("User Exists"), + _("The root user is already configured. You don't " + "need to add this user here."), + buttons = [ _("OK") ], width = 50) + continue + if self.users.has_key (userid.value ()) and \ userid.value () != currentid: ButtonChoiceWindow(self.screen, _("User Exists"), |