Package pyanaconda :: Module users :: Class Users
[hide private]
[frames] | no frames]

Class Users

source code

Instance Methods [hide private]
 
__init__(self, anaconda) source code
 
createGroup(self, group_name, **kwargs)
Create a new user on the system with the given name.
source code
 
createUser(self, user_name, *args, **kwargs)
Create a new user on the system with the given name.
source code
 
checkUserExists(self, username, root="/mnt/sysimage") source code
 
getPassAlgo(self) source code
 
setUserPassword(self, username, password, isCrypted, lock, algo=None) source code
 
setRootPassword(self, algo=None) source code
 
write(self) source code
 
writeKS(self, f) source code
Method Details [hide private]

createGroup(self, group_name, **kwargs)

source code 
Create a new user on the system with the given name.  Optional kwargs:

gid       -- The GID for the new user.  If none is given, the next
             available one is used.
root      -- The directory of the system to create the new user
             in.  homedir will be interpreted relative to this.
             Defaults to /mnt/sysimage.

createUser(self, user_name, *args, **kwargs)

source code 
Create a new user on the system with the given name.  Optional kwargs:

algo      -- The password algorithm to use in case isCrypted=True.
             If none is given, the cryptPassword default is used.
gecos     -- The GECOS information (full name, office, phone, etc.).
             Defaults to "".
groups    -- A list of existing group names the user should be
             added to.  Defaults to [].
homedir   -- The home directory for the new user.  Defaults to
             /home/<name>.
isCrypted -- Is the password kwargs already encrypted?  Defaults
             to False.
lock      -- Is the new account locked by default?  Defaults to
             False.
password  -- The password.  See isCrypted for how this is interpreted.
root      -- The directory of the system to create the new user
             in.  homedir will be interpreted relative to this.
             Defaults to /mnt/sysimage.
shell     -- The shell for the new user.  If none is given, the
             libuser default is used.
uid       -- The UID for the new user.  If none is given, the next
             available one is used.