summaryrefslogtreecommitdiffstats
path: root/users.py
Commit message (Collapse)AuthorAgeFilesLines
* Structure the repo layout so it matches final structure better and make isys ↵Martin Sivak2010-05-311-307/+0
| | | | | | a real Python package. Also updates the build and autotools stuff to work with the new structure
* cryptPassword is not part of any class (#565611).Chris Lumens2010-02-151-1/+1
|
* createLuserConf is not a part of any class (#565306).Chris Lumens2010-02-151-1/+1
|
* Move users and security to the Anaconda object.Chris Lumens2010-02-041-3/+58
| | | | | This patch also moves rootPassword into Users where it belongs and auth into Security where it belongs.
* pylint error fixes round 2Hans de Goede2010-01-141-3/+0
| | | | | | | | | | | - Remove unnecessary semi colons in various places - textw/upgrade_text.py: add a few missing imports - Fix various missplaced doc strings - Fix several double imports - Fix AnacondaKSScript.run: Module 'os' has no 'exists' member - users.py: Remove double definition of Users.setRootPassword - yuminstall.py: correct typo reop -> repo - yuminstall.py: _run: anaconda -> self.anaconda
* Improve createLuserConf behavior and chroot behavior in users.*Peter Jones2009-11-051-11/+60
| | | | | | | | This makes a couple of changes: - fixes bogus access test on libuser.conf in createLuserConf() - adds appropriate logging to createLuserConf() - createLuserConf returns the path it created. - Users.* no longer chroot+del LIBUSER_CONF if the new root is /
* Set GECOS field for new user accounts specific in ks filesDavid Cantrell2009-07-201-1/+4
| | | | Honor the --gecos argument to the user command in kickstart files.
* Allow creating new groups through kickstart.Chris Lumens2009-07-021-0/+35
| | | | | This is executed before users are created, so new users may be added to the new groups immediately.
* When catching an OSError, handle it as an object instead of a tuple (#497374).Chris Lumens2009-04-231-2/+2
|
* Default to SHA512 password encoding algorithm.David Cantrell2009-04-131-2/+6
| | | | | If algo is None by the time we get to cryptPassword(), force the use of SHA512 for password encoding.
* Add created user to default group created for the user.Radek Vykydal2009-03-131-0/+1
| | | | | | Documentation for ks option user says (--groups option) that user is added to default group, but we've been only setting the default group as user's primary group.
* Fix creating new users in kickstart.Chris Lumens2008-03-131-4/+3
|
* Make sure default is SHA-512 for libuser.conf.David Cantrell2008-03-111-1/+1
| | | | | | We write out a libuser.conf file to /tmp for use by the installer and other programs in rescue mode. Make sure we default to sha512 when writing out this file.
* Use SHA-512 by default for password encryption.David Cantrell2008-02-201-23/+37
| | | | | | | | | | | | | | Encode passwords using SHA-512 by default. Users can override this in a Kickstart file using the 'auth' command. The options below determine the algorithm used: --enablemd5 -or- --passalgo=md5 MD5 --passalgo=sha256 SHA-256 --passalgo=sha512 SHA-512 The previous default was MD5. glibc now supports SHA-256 and SHA-512, so we are using the strongest of those choices by default now.
* Don't traceback trying to raise an exception when making users (#430772).Chris Lumens2008-01-291-29/+33
| | | | | | Since we are chrooted when adding a user, it's impossible to find the glade files in the installation environment. It looks like the only thing we can really do is log an error message and keep going.
* Don't refer to the libuser.conf when creating users (#428891).Chris Lumens2008-01-221-1/+4
|
* Try to fix a problem creating users via kickstart (#428891).Chris Lumens2008-01-211-37/+50
|
* Clean up typos and other things for GPLv2+ changes.David Cantrell2007-12-171-1/+1
| | | | | | | Shorten 'Red Hat Author(s)' to just 'Author(s)'. Perhaps eventually we'll get an AUTHORS file and will just remove author names from the individual files. Also fixed a type in scripts/dumphdrlist.py where Author was listed twice.
* Common GPLv2+ boilerplate on toplevel python source files.David Cantrell2007-12-171-6/+13
| | | | | | Updated all *.py files to have a uniform GPL boilerplate. Expanded copyright year ranges and listed authors (if they were in the comment section) under the Red Hat Author(s) section.
* Make the default group of a new user be the one created with their username.Chris Lumens2007-09-121-6/+10
| | | | Modify entries for all the other groups a user should be in to make that work.
* Lock accounts if asked (#240059).Chris Lumens2007-06-071-4/+10
|
* Set the right home directory so it gets made correctly (#216681).Chris Lumens2006-11-271-1/+4
|
* 2006-07-28 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-07-281-2/+3
| | | | | | * users.py (Users.createUser): Create users under the rootpath (Clark Williams) * instdata.py (InstallData.write): Use the rootpath
* 2006-05-17 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-05-181-0/+23
| | | | | | | * anaconda (Anaconda.setMethod): Set up our libuser.conf * users.py (createLuserConf): Create a libuser.conf that points to our rootpath so that things work with live CD, etc
* Add support for making users and for enabling/disabling services viaChris Lumens2006-05-031-0/+86
| | | | kickstart.
* Use libuser for handling the root password instead of a bunch of our ownChris Lumens2006-04-111-91/+0
| | | | stuff.
* Remove the unused Accounts class.Chris Lumens2006-03-301-47/+0
|
* Simplified the authconfig step to store data as a string to be passed toChris Lumens2005-08-291-141/+10
| | | | | | authconfig in its entirety, rather than handling it as a series of arguments we need to process. We weren't really doing anything with it anyway.
* Use new logging system.Chris Lumens2005-08-121-3/+4
|
* 2004-11-08 Jeremy Katz <katzj@redhat.com>Jeremy Katz2004-11-081-7/+7
| | | | * users.py: whrandom is deprecated, use random instead
* might help with expection output so we don't have to set it to None so it ↵Mike Fulbright2003-04-031-1/+10
| | | | isnt printed
* migrate to using rhpl log functionMike Fulbright2002-05-231-1/+2
|
* oh yeah goodbye reconfigMike Fulbright2002-02-081-1/+1
|
* disable things which are not explicitly enabled for authconfig (should fix ↵nalin2001-09-101-0/+18
| | | | reconfig mode)
* argh, must clean up flags for next release (52814)Jeremy Katz2001-08-291-1/+1
|
* explicitly disable nis if it's not being used so that it gets removed from ↵Jeremy Katz2001-08-091-0/+2
| | | | nsswitch
* add --enablecache for kickstartJeremy Katz2001-07-311-0/+5
|
* remove superflous and unsupported disable options from being output to ks.cfgJeremy Katz2001-07-151-19/+0
|
* if the user has requested md5 passwords, write out the root password in theJeremy Katz2001-07-031-2/+6
| | | | autogenerated ks.cfg as an md5 crypted password (46294)
* added header infobfox2001-07-021-0/+1
|
* right option, fixes 46337Jeremy Katz2001-06-271-1/+1
|
* various pychecker fixupsMatt Wilson2001-06-221-2/+2
|
* copyrightMatt Wilson2001-06-221-0/+15
|
* add support for Samba authenticationbfox2001-06-221-1/+13
|
* merge dispatch to HEADMatt Wilson2001-06-201-0/+220