opnsense-src/usr.sbin/pw
Jose Luis Duran 9aac1584c8 pw: tests: add a test for -M with a pre-existing home directory
Previous versions of pw(8) wouldn't chmod the home directory if it
already existed prior to user creation, rendering adduser(8) -M
ineffective in some cases.  Add a test to cover that situation.

PR:		280099
Reviewed by:	kevans

(cherry picked from commit f7cf62cf728a942e494a5b58438600998606617a)
2024-12-10 17:05:51 -06:00
..
tests pw: tests: add a test for -M with a pre-existing home directory 2024-12-10 17:05:51 -06:00
bitmap.c Purge more stray embedded $FreeBSD$ strings 2023-10-24 10:10:12 -07:00
bitmap.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
cpdir.c pw: set the user's home directory mode if it existed 2024-12-10 17:05:51 -06:00
grupd.c Purge more stray embedded $FreeBSD$ strings 2023-10-24 10:10:12 -07:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
psdate.c Purge more stray embedded $FreeBSD$ strings 2023-10-24 10:10:12 -07:00
psdate.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
pw.8 pw userdel: destroy home dataset if empty 2024-08-21 12:31:10 +02:00
pw.c pw: Rename some enums. 2024-05-09 10:59:02 +00:00
pw.conf.5 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
pw.h pw: Rename some enums. 2024-05-09 10:59:02 +00:00
pw_conf.c Purge more stray embedded $FreeBSD$ strings 2023-10-24 10:10:12 -07:00
pw_group.c pw: Rename some enums. 2024-05-09 10:59:02 +00:00
pw_log.c Purge more stray embedded $FreeBSD$ strings 2023-10-24 10:10:12 -07:00
pw_nis.c Purge more stray embedded $FreeBSD$ strings 2023-10-24 10:10:12 -07:00
pw_user.c pw userdel: destroy home dataset if empty 2024-08-21 12:31:10 +02:00
pw_utils.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
pw_vpw.c Purge more stray embedded $FreeBSD$ strings 2023-10-24 10:10:12 -07:00
pwupd.c Purge more stray embedded $FreeBSD$ strings 2023-10-24 10:10:12 -07:00
pwupd.h pw userdel: destroy home dataset if empty 2024-08-21 12:31:10 +02:00
README Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
rm_r.c pw userdel: destroy home dataset if empty 2024-08-21 12:31:10 +02:00
strtounum.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00

pw is a command-line driven passwd/group editor utility that provides
an easy and safe means of modifying of any/all fields in the system
password files, and has an add, modify and delete mode for user and
group records. Command line options have been fashioned to be similar
to those used by the Sun/shadow commands: useradd, usermod, userdel,
groupadd, groupmod, groupdel, but combines all operations within the
single command `pw'.

User add mode also provides a means of easily setting system useradd
defaults (see pw.conf.5), so that adding a user is as easy as issuing
the command "pw useradd <loginid>". Creation of a unique primary
group for each user and automatic membership in secondary groups
is fully supported.

This program may be FreeBSD specific, but should be trivial to port to
other bsd4.4 variants.

Author: David L. Nugent, <davidn@blaze.net.au>