1
0
Fork 0
mirror of https://github.com/shadow-maint/shadow.git synced 2026-12-03 14:44:56 +00:00
Upstream shadow tree
  • Shell 49.9%
  • C 40.1%
  • Python 8.5%
  • M4 0.8%
  • Makefile 0.6%
  • Other 0.1%
Find a file
Alejandro Colomar 3dbda82be6 lib/chkname.c: Forbid fully numeric user names, including hex/binary/octal ones
The test 'a2i(...)==0' is redundant, and we could do
'(a2i(...), streq(end,""))' instead, since 'a2i(...)==0' implies
'streq(end,"")'.

However, the comma operator is weird, so the code feels more readable
with the redundant test.

Closes: <https://github.com/shadow-maint/shadow/issues/1781>
Reported-by: Hector Cao <hector.cao@canonical.com>
Reported-by: Chris Hofstaedtler <zeha@debian.org>
Cc: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2026-12-03 10:00:38 +01:00
.github .github/, share/: Use apt-get(8) instead of apt(8) 2026-11-24 09:10:58 +01:00
doc introduction.md: fix "use of AI" link 2026-09-19 18:35:42 +02:00
etc etc/login.defs: Disable /etc/porttime 2026-10-20 10:32:59 +02:00
keys Merge remote-tracking branch 'alx/k' 2026-02-17 08:03:51 -06:00
lib lib/chkname.c: Forbid fully numeric user names, including hex/binary/octal ones 2026-12-03 10:00:38 +01:00
libsubid libsubid/subid.h.in: Make padding in the range structs an error 2026-09-14 23:43:25 +02:00
man man/, po/: Update for 4.21.0-rc1 2026-11-30 15:15:01 -06:00
po man/, po/: Update for 4.21.0-rc1 2026-11-30 15:15:01 -06:00
share .github/, share/: Use apt-get(8) instead of apt(8) 2026-11-24 09:10:58 +01:00
src src/useradd.c: Wrap uses of 'process_selinux' in #ifdef WITH_SELINUX 2026-11-30 14:49:20 -06:00
tests tests: useradd: accept empty list or None for unknown user subordinate IDs 2026-12-02 14:41:53 +01:00
.editorconfig Add .editorconfig 2023-03-02 16:33:06 -06:00
.gitignore configure: Move helper files to 'build-aux/' 2025-07-19 06:42:33 +02:00
acinclude.m4 configure: replace obsolete autoconf macros 2022-05-10 09:55:18 +02:00
AUTHORS.md AUTHORS.md: Format list 2024-02-06 16:16:32 +01:00
autogen.sh autogen.sh: Enable -Werror=unused-but-set-variable diagnostic 2026-11-30 14:49:20 -06:00
ChangeLog fix typos 2023-04-26 17:35:58 -05:00
configure.ac configure.ac: Ready for 4.21.0-rc1 2026-11-30 15:15:01 -06:00
COPYING Update licensing info 2021-12-23 19:36:50 -06:00
Makefile.am configure.ac, Makefile.am: Propagate ./configure flags to 'distcheck' 2025-12-04 20:07:22 -06:00
NEWS fix typos 2023-04-26 17:35:58 -05:00
README Add README as symlink to README.md 2021-12-19 14:09:08 -06:00
README.md Add notes about translations 2026-06-24 12:44:41 +02:00
SECURITY.md SECURITY.md: Retire Christian Brauner 2026-05-25 08:07:59 -05:00
STABLE.md STABLE.md: 4.15.x is now stable 2024-05-22 15:10:03 +02: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

Code

The main development branch is at https://github.com/shadow-maint/shadow.git

See STABLE.md for a list of supported stable branches.

Contacts

There are several ways to contact us:

Mailing archives

Contributions

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

Translations

Translations are maintained within the Translation Project. For further information, see here.

Authors and maintainers

Authors and maintainers are listed in AUTHORS.md.