Go to file
Christian Göttsche a8166a86ed Declare read-only arguments of run_part(s) const
run_part() and run_parts() do not modify their directory, name and
action arguments.
Also include the header in the implementation to provide the prototypes.

useradd.c:2495:59: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual]
 2495 |         if (run_parts ("/etc/shadow-maint/useradd-pre.d", (char*)user_name,
      |                                                           ^
useradd.c:2495:24: warning: passing argument 1 of ‘run_parts’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
 2495 |         if (run_parts ("/etc/shadow-maint/useradd-pre.d", (char*)user_name,
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from useradd.c:45:
../lib/run_part.h:2:22: note: expected ‘char *’ but argument is of type ‘const char *’
    2 | int run_parts (char *directory, char *name, char *action);
      |                ~~~~~~^~~~~~~~~
useradd.c:2496:25: warning: passing argument 3 of ‘run_parts’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
 2496 |                         "useradd")) {
      |                         ^~~~~~~~~
2022-01-03 15:09:17 +01:00
.builds add alpine edge CI build 2021-12-27 15:47:26 -06:00
contrib Update licensing info 2021-12-23 19:36:50 -06:00
doc README: update content and format 2021-11-22 15:31:54 +01:00
docs fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
etc script to kill subjects processes from userdel 2021-12-29 20:43:38 +00:00
lib Declare read-only arguments of run_part(s) const 2022-01-03 15:09:17 +01:00
libmisc Declare argument of nss_init const 2022-01-03 15:09:17 +01:00
libsubid Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
man Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
po Have a single definition of date_to_str() 2021-12-26 18:55:39 +01:00
src Declare read-only arguments of run_part(s) const 2022-01-03 15:09:17 +01:00
tests nss test_range: make sure /etc/nsswitch.conf and /etc/subuid exists 2021-12-27 15:47:29 -06:00
.gitignore Show libsubid api version in subid.h 2021-12-05 08:02:57 -06:00
.travis.yml subids: support nsswitch 2021-04-16 21:02:37 -05:00
acinclude.m4
AUTHORS.md Adding new option -rG to usermod 2021-12-13 21:42:48 -08:00
autogen.sh undo accidental autogen.sh commit: enable-shared 2021-11-27 14:56:03 -06:00
ChangeLog configure.ac and changelog: release 4.11.1 2022-01-02 21:08:26 -06:00
configure.ac configure.ac and changelog: release 4.11.1 2022-01-02 21:08:26 -06:00
COPYING Update licensing info 2021-12-23 19:36:50 -06:00
Makefile.am fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
NEWS fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
README Add README as symlink to README.md 2021-12-19 14:09:08 -06:00
README.md README: update content and format 2021-11-22 15:31:54 +01:00
SECURITY.md Add Christian Brauner to SECURITY.md 2021-10-25 14:26:37 -05:00
shadow.spec.in * shadow.spec.in: Fix the source (new FTP). 2008-08-31 17:30:45 +00:00
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

Authors and maintainers

Authors and maintainers are listed in AUTHORS.md.