Go to file
Samanta Navarro 0c83b98105 Read whole line in yes_or_no
Do not stop after 79 characters. Read the complete line to avoid
arbitrary limitations.

Proof of Concept:

```
cat > passwd-poc << EOF
root0:0:root:/root:/bin/bash
root0:0:root:/root:/bin/bash
root0:0:root:/root:/bin/bash
EOF
python -c "print(80*'y')" | pwck passwd-poc
```

Two lines should still be within the file because we agreed only once
to remove a duplicated line.

Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
Reviewed-by: Alejandro Colomar <alx@kernel.org>
Reviewed-by: Serge Hallyn <serge@hallyn.com>
2023-04-21 18:12:56 -05:00
.builds
.github CI: Make build logs more readable 2023-04-18 09:21:09 +02:00
contrib
doc doc: add contributions introduction 2023-04-03 10:42:22 -05:00
docs
etc
lib useradd/usermod: add --selinux-range argument 2023-04-19 09:19:19 +02:00
libmisc Read whole line in yes_or_no 2023-04-21 18:12:56 -05:00
libsubid
man useradd/usermod: add --selinux-range argument 2023-04-19 09:19:19 +02:00
po Fix regression in some translation strings 2023-02-24 12:56:05 -06:00
share CI: Make build logs more readable 2023-04-18 09:21:09 +02:00
src useradd/usermod: add --selinux-range argument 2023-04-19 09:19:19 +02:00
tests
.editorconfig
.gitignore
.travis.yml CI: Make build logs more readable 2023-04-18 09:21:09 +02:00
acinclude.m4
AUTHORS.md AUTHORS: improve markdown output 2022-03-18 16:10:51 -05:00
autogen.sh
ChangeLog
configure.ac Add stpecpy() 2023-02-16 11:29:33 +01:00
COPYING
Makefile.am
NEWS fix typo 2023-01-12 12:10:57 +01:00
README
README.md README: add reference to contribution guidelines 2023-04-03 10:42:22 -05:00
SECURITY.md
shadow.spec.in
TODO fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00

shadow-utils

Introduction

The shadow-utils package includes the necessary programs for converting UNIX password files to the shadow password format, plus programs for managing user and group accounts. The pwconv command converts passwords to the shadow password format. The pwunconv command unconverts shadow passwords and generates a passwd file (a standard UNIX password file). The pwck command checks the integrity of password and shadow files. The lastlog command prints out the last login times for all users. The useradd, userdel, and usermod commands are used for managing user accounts. The groupadd, groupdel, and groupmod commands are used for managing group accounts.

Sites

Contacts

There are several ways to contact us:

Mailing archives

Contributions

Contributions are welcome. Follow the guidelines before posting any patches.

Authors and maintainers

Authors and maintainers are listed in AUTHORS.md.