diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2005-10-18 22:21:56 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2005-10-18 22:21:56 +0000 |
commit | f3bffb43c7ad64af7ebf1ab86b996fb7ec74aef2 (patch) | |
tree | 6d11893ab333931ef286cd36a2584289a0c16a55 /src | |
parent | ee5a2422afad390ee787b5cb9b48eada2c131dab (diff) | |
download | bcfg2-f3bffb43c7ad64af7ebf1ab86b996fb7ec74aef2.tar.gz bcfg2-f3bffb43c7ad64af7ebf1ab86b996fb7ec74aef2.tar.bz2 bcfg2-f3bffb43c7ad64af7ebf1ab86b996fb7ec74aef2.zip |
fix from rick
(Logical change 1.339)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1396 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Server/Plugins/Account.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Account.py b/src/lib/Server/Plugins/Account.py index 42a2e780a..f30039d33 100644 --- a/src/lib/Server/Plugins/Account.py +++ b/src/lib/Server/Plugins/Account.py @@ -40,7 +40,7 @@ class Account(Plugin): entry.text = self.repository.entries["static.limits.conf"].data superusers = self.repository.entries["superusers"].data.split() useraccess = [line.split(':') for line in self.repository.entries["useraccess"].data.split()] - users = [user for (user, host) in useraccess if host == metadata.hostname] + users = [user for (user, host) in useraccess if host == metadata.hostname.split('.')[0]] entry.attrib.update({'owner':'root', 'group':'root', 'perms':'0600'}) entry.text += "".join(["%s hard maxlogins 1024\n" % uname for uname in superusers + users]) if "*" not in users: |