summaryrefslogtreecommitdiffstats
path: root/users.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-03-30 17:57:48 +0000
committerChris Lumens <clumens@redhat.com>2006-03-30 17:57:48 +0000
commite6015c01be9bc42e85545c94f757f1efe4fb6a1a (patch)
treee46eee16be957c0ff00be9aaeeec9f0af60b1ab1 /users.py
parente5e5101aa81e8808edc6b52d26304679332df9b9 (diff)
downloadanaconda-e6015c01be9bc42e85545c94f757f1efe4fb6a1a.tar.gz
anaconda-e6015c01be9bc42e85545c94f757f1efe4fb6a1a.tar.xz
anaconda-e6015c01be9bc42e85545c94f757f1efe4fb6a1a.zip
Remove the unused Accounts class.
Diffstat (limited to 'users.py')
-rw-r--r--users.py47
1 files changed, 0 insertions, 47 deletions
diff --git a/users.py b/users.py
index 4993e683f..b867d500b 100644
--- a/users.py
+++ b/users.py
@@ -19,53 +19,6 @@ import random
import crypt
import os
import string
-from flags import flags
-
-import logging
-log = logging.getLogger("anaconda")
-
-class Accounts:
- def __repr__(self):
- return "<Type Accounts>"
-
- def __str__(self):
- return "<Type Accounts>"
-
- # List of (accountName, fullName, password) tupes
- def setUserList(self, users):
- self.users = users
-
- def getUserList(self):
- return self.users
-
- def writeKScommands(self, f, useMD5):
- for (account, name, password) in self.users:
- crypted = cryptPassword(password, useMD5)
-
- f.write("/usr/sbin/useradd %s\n" % (account));
- f.write("chfn -f '%s' %s\n" % (name, account))
- f.write("/usr/sbin/usermod -p '%s' %s\n" % (crypted, account))
- f.write("\n")
-
- def write(self, instPath, useMD5):
- if not self.users: return
-
- if not flags.setupFilesystems:
- return
-
- for (account, name, password) in self.users:
- argv = [ "/usr/sbin/useradd", account ]
- iutil.execWithRedirect(argv[0], argv, root = instPath,
- stdout = None)
-
- argv = [ "/usr/bin/chfn", "-f", name, account]
- iutil.execWithRedirect(argv[0], argv, root = instPath,
- stdout = None)
-
- setPassword(instPath, account, password, useMD5)
-
- def __init__(self):
- self.users = []
class Password:
def __init__ (self):