summary refs log tree commit diff
path: root/nixos/modules/programs/shadow.nix
Commit message (Collapse)AuthorAge
* nixos/doc: clean up defaults and examplesNaïm Favier2021-10-04
|
* nixos: explicitely set security.wrappers ownershiprnhmjoj2021-09-13
| | | | | This is slightly more verbose and inconvenient, but it forces you to think about what the wrapper ownership and permissions will be.
* Merge pull request #51270 from aneeshusa/enable-setuid-wrapper-for-chshJörg Thalheim2020-06-02
|\ | | | | nixos/shadow: create setuid wrapper for chsh
| * nixos/shadow: create setuid wrapper for chshAneesh Agrawal2019-04-07
| | | | | | | | | | | | This allows non-declarative users to change their login shells. https://github.com/NixOS/nixpkgs/pull/41966 will make this possible for declarative users as well if the system config explicitly allows it.
* | treewide: use attrs instead of list for types.loaOf optionsrnhmjoj2020-01-06
| |
* | nixos/users: Increase maximum system uid/gid from 499 to 999Silvan Mosberger2019-10-14
|/ | | | | | | This enlarges the system uid/gid range 6-fold, from 100 to 600 ids. This is a preventative measure against running out of dynamically allocated ids for NixOS services with isSystemUser, which should become the preferred way of allocating uids for non-real users.
* sg/newgrp should always be available, not chfnJesper Geertsen Jonsson2018-01-14
| | | | | | | | | | | | | | | sg and newgrp only changes the current user session and should be available to users even if the "users.mutableUsers" option is set. These are common, useful commands. chfn does modify the /etc/passwd GECOS field which is also controlled by the option "users.users.<name?>.description", so it's less appropriate to make it available when "users.mutableUsers" is set. However, because CHFN_RESTRICT in login.defs is never set in current NixOS the chfn functionality is never available to users anyway and may as well have its SUID disabled, as only root is able to use it. This is recommended in the chfn man page in this case.
* Set merge + mkIf always surprises meParnell Springmeyer2017-01-29
|
* More fixesParnell Springmeyer2017-01-29
|
* Addressing PR feedbackParnell Springmeyer2017-01-28
|
* setcap-wrapper: Merging with upstream master and resolving conflictsParnell Springmeyer2017-01-25
|\
| * Enable the runuser command from util-linuxEelco Dolstra2016-09-06
| | | | | | | | Fixes #14701.
* | Need to create a new build to see why it's failingParnell Springmeyer2016-09-01
| |
* | Resolving that silly bad argument error.Parnell Springmeyer2016-09-01
| |
* | Adapting everything for the merged permissions wrappers work.Parnell Springmeyer2016-09-01
| |
* | everything?: Updating every package that depended on the old setuidPrograms ↵Parnell Springmeyer2016-09-01
|/ | | | configuration.
* nixos/shadow: setuid wrappers for new{uid,gid}mapBenno Fünfstück2016-08-19
| | | | | These utils are not related to user management, so they should be available even if immutable users are enabled.
* Use shell packages to select the user's shellzimbatm2016-06-12
| | | | The string type is still available for backward-compatiblity.
* nixos: condition shadow setuid-wrappers on mutableUsersJoachim Fasting2015-04-14
| | | | Having junk setuid wrappers in PATH is annoying.
* sg: add setuid wrapper. (newgrp is a symlink to sg and was already setuid).obadz2015-03-30
| | | | sudo: add ability for wheel users to change group (as well as user)
* Merge pull request #2644 from lethalman/pam_tallyMichael Raskin2014-09-02
|\ | | | | pam: Add logFailures option for adding pam_tally to su
| * pam: Add logFailures option for adding pam_tally to suLuca Bruno2014-05-14
| |
* | Upgrade shadow packagePaul Colomiets2014-08-01
| |
* | Get all lib functions from lib, not pkgs.lib, in modulesShea Levy2014-07-02
| |
* | nixos/shadow: Add an example for defaultUserShell.aszlig2014-06-19
|/ | | | | | Thanks to @devhell for the suggestion. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* Allocate system uids/gids between 400 and 500Eelco Dolstra2014-04-29
| | | | | Previously it was between 100 and 500, but this can already collide with the static uids/guid in misc/ids.nix.
* Rewrite ‘with pkgs.lib’ -> ‘with lib’Eelco Dolstra2014-04-14
| | | | | | | | Using pkgs.lib on the spine of module evaluation is problematic because the pkgs argument depends on the result of module evaluation. To prevent an infinite recursion, pkgs and some of the modules are evaluated twice, which is inefficient. Using ‘with lib’ prevents this problem.
* Revert "nixos: fix shell on conatiners"Peter Simons2014-04-11
| | | | | This reverts commit c69577b7d6ea96cd605043440145ea6e094674b5. See https://github.com/NixOS/nixpkgs/pull/2198 for further details.
* nixos: fix shell on conatinersJaka Hudoklin2014-04-10
|
* Only add shadow to system packages if users.mutableUsers is trueRickard Nilsson2014-02-05
|
* Generate /etc/passwd and /etc/group at build timeRickard Nilsson2014-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a rather large commit that switches user/group creation from using useradd/groupadd on activation to just generating the contents of /etc/passwd and /etc/group, and then on activation merging the generated files with the files that exist in the system. This makes the user activation process much cleaner, in my opinion. The users.extraUsers.<user>.uid and users.extraGroups.<group>.gid must all be properly defined (if <user>.createUser is true, which it is by default). My pull request adds a lot of uids/gids to config.ids to solve this problem for existing nixos services, but there might be configurations that break because this change. However, this will be discovered during the build. Option changes introduced by this commit: * Remove the options <user>.isSystemUser and <user>.isAlias since they don't make sense when generating /etc/passwd statically. * Add <group>.members as a complement to <user>.extraGroups. * Add <user>.passwordFile for setting a user's password from an encrypted (shadow-style) file. * Add users.mutableUsers which is true by default. This means you can keep managing your users as previously, by using useradd/groupadd manually. This is accomplished by merging the generated passwd/group file with the existing files in /etc on system activation. The merging of the files is simplistic. It just looks at the user/group names. If a user/group exists both on the system and in the generated files, the system entry will be kept un-changed and the generated entries will be ignored. The merging itself is performed with the help of vipw/vigr to properly lock the account files during edit. If mutableUsers is set to false, the generated passwd and group files will not be merged with the system files on activation. Instead they will simply replace the system files, and overwrite any changes done on the running system. The same logic holds for user password, if the <user>.password or <user>.passwordFile options are used. If mutableUsers is false, password will simply be replaced on activation. If true, the initial user passwords will be set according to the configuration, but existing passwords will not be touched. I have tested this on a couple of different systems and it seems to work fine so far. If you think this is a good idea, please test it. This way of adding local users has been discussed in issue #103 (and this commit solves that issue).
* Add lots of missing option typesEelco Dolstra2013-10-30
|
* Turn security.pam.services into an attribute setEelco Dolstra2013-10-15
| | | | | | | | | | | | That is, you can say security.pam.services.sshd = { options... }; instead of security.pam.services = [ { name = "sshd"; options... } ]; making it easier to override PAM settings from other modules.
* Move all of NixOS to nixos/ in preparation of the repository mergeEelco Dolstra2013-10-10