Revision tags: release/2.1.6_cvs, release/2.1.6.1 |
|
#
8839484b |
| 22-Oct-1996 |
Bill Paul <wpaul@FreeBSD.org> |
Begin closing out PR #1519 (this requires a change to chpass too, and both changes need to be pulled into the stable branch). The problem here is that when pwd_mkdb creates /etc/passwd, it turns empt
Begin closing out PR #1519 (this requires a change to chpass too, and both changes need to be pulled into the stable branch). The problem here is that when pwd_mkdb creates /etc/passwd, it turns empty UID and GID fields into zeroes. To fix this, we check the _PWF_UID and _PWF_GID bits in the pw_fields flag: if the bits are not set, we print an empty field instead of a zero. This way, you don't get zeroes in the UID or GID fields unless you explicit want them.
show more ...
|
Revision tags: release/2.1.5_cvs |
|
#
e2ab8bac |
| 19-Aug-1996 |
Wolfram Schneider <wosch@FreeBSD.org> |
New option: [-c] Check if the password file is in the correct format. Do not change, add, or remove any files.
|
#
6151b317 |
| 12-Jul-1996 |
Bruce Evans <bde@FreeBSD.org> |
Fixed brackets in usage message.
Reformatted some of recent changes to KNF.
|
#
ca7c8034 |
| 03-Jul-1996 |
Martin Renters <martin@FreeBSD.org> |
Check if username is a NULL pointer before dereferencing it.
|
#
79a1b8d9 |
| 01-Jul-1996 |
Guido van Rooij <guido@FreeBSD.org> |
Implement incremental passwd database updates. This is done by ading a '-u' option to pwd_mkdb and adding this option to utilities invoking it. Further, the filling of both the secure and insecure da
Implement incremental passwd database updates. This is done by ading a '-u' option to pwd_mkdb and adding this option to utilities invoking it. Further, the filling of both the secure and insecure databases has been merged into one loop giving also a performance improvemnet. Note that I did *not* change the adduser command. I don't read perl (it is a write only language anyway). The change will drastically improve performance for passwd and friends with large passwd files. Vipw's performance won't change. In order to do that some kind of diff should be made between the old and new master.passwd and depending the amount of changes, an incremental or complete update of the databases should be agreed upon.
show more ...
|
#
6ec733f4 |
| 16-Apr-1996 |
Bill Paul <wpaul@FreeBSD.org> |
NIS cleanups and fixes, the next generation, continued.
pwd_mkdb.c:
- Don't save the PLUSCNT and MINUSCNT tokens: we don't need them anymore.
- Count the + and - entires for NIS together instead o
NIS cleanups and fixes, the next generation, continued.
pwd_mkdb.c:
- Don't save the PLUSCNT and MINUSCNT tokens: we don't need them anymore.
- Count the + and - entires for NIS together instead of counting + and - entries seperately. Index all special NIS entries using new _PW_KEYYPBYNUM token.
pwd.h:
- Remove the PLUSBYNUM, MINUSBYNUM, PLUSCNT and MINUSCNT tokens and replace then with a single _PW_KEYYPBYNUM token.
show more ...
|
Revision tags: release/2.1.0_cvs, release/2.0.5_cvs |
|
#
709e8f9a |
| 30-May-1995 |
Rodney W. Grimes <rgrimes@FreeBSD.org> |
Remove trailing whitespace.
|
#
72a3d448 |
| 24-Mar-1995 |
Jordan K. Hubbard <jkh@FreeBSD.org> |
Add what looks to be the right fix to this bogus code.
|
#
d038db90 |
| 23-Mar-1995 |
Bill Paul <wpaul@FreeBSD.org> |
Re-enable +::::::::: wildcards that I had previously disallowed.
Note: if you put +::0:0:::::: in /etc/master.passwd as your only NIS entry, it will cause all NIS uids and gids to be remapped to zer
Re-enable +::::::::: wildcards that I had previously disallowed.
Note: if you put +::0:0:::::: in /etc/master.passwd as your only NIS entry, it will cause all NIS uids and gids to be remapped to zero. This is *intentional*. That's the way it's supposed to work. Enabling NIS with no remapping at all is done with +:::::::::, not +::0:0::::::. Similarly, +:::::::::/bin/csh will remap the shells of all NIS users to /bin/csh. Or, you could do +wpaul:::::::::/bin/csh to remap NIS user wpaul's shell to /bin/csh but leave everyone else alone.
show more ...
|
#
34876b91 |
| 23-Mar-1995 |
Bill Paul <wpaul@FreeBSD.org> |
Summarily enable YP as soon as any a '+' is detected instead of generating special values when +user substitutions are in effect. The new getpwent code can handle all the special cases itself now.
|
#
ad5d3ccd |
| 23-Mar-1995 |
Bill Paul <wpaul@FreeBSD.org> |
- Add support for embedding special entries in the password databases for +@netgroup/-@netgroup entries. This saves the getpwent functions from having to do all the work.
- Fix potential bug: when p
- Add support for embedding special entries in the password databases for +@netgroup/-@netgroup entries. This saves the getpwent functions from having to do all the work.
- Fix potential bug: when pwd_mkdb writes the YP-enabled flag to the secure password database, it uses the wrong database descriptor. (It uses the descriptor from the non-secure database, which is already closed by the time things are being written into the secure dastabase).
show more ...
|
Revision tags: release/2.0 |
|
#
ab5f8d28 |
| 20-Sep-1994 |
Garrett Wollman <wollman@FreeBSD.org> |
Fix security hole in YP password support, which wouldmake +user entries act like + entries in some cases. Requires support in libc from next commit.
|
#
28ca3091 |
| 20-Sep-1994 |
Garrett Wollman <wollman@FreeBSD.org> |
Maintain pw_fields, and output same to password database.
!!!!!!!! NB !!!!!!!! You MUST pwd_mkdb /etc/master.passwd before attempting to use the new libc, or things may go wrong. (I doubt anything
Maintain pw_fields, and output same to password database.
!!!!!!!! NB !!!!!!!! You MUST pwd_mkdb /etc/master.passwd before attempting to use the new libc, or things may go wrong. (I doubt anything actually /will/ go wrong, but the actual behavior is undefined. YOU HAVE BEEN WARNED.) The database format is, however, backwards-compatible, so old executables will still work.
show more ...
|
#
fb0e6acc |
| 08-Sep-1994 |
Gary Palmer <gpalmer@FreeBSD.org> |
Added the -d <directory> functionality to allow construction of the password databases somewhere other than /etc.
|
Revision tags: release/1.1.5.1_cvs |
|
#
dea673e9 |
| 26-May-1994 |
Rodney W. Grimes <rgrimes@FreeBSD.org> |
BSD 4.4 Lite usr.sbin Sources
|
#
2e370a5c |
| 26-May-2009 |
Oleksandr Tymoshenko <gonzo@FreeBSD.org> |
Merge from HEAD
|
#
15344a56 |
| 20-May-2009 |
Brian Somers <brian@FreeBSD.org> |
Verify that the username length is smaller than MAXLOGNAME when asked to verify a passwd file (pwd_mkdb -C).
Entries with oversized usernames are still permitted when building the passwd database.
Verify that the username length is smaller than MAXLOGNAME when asked to verify a passwd file (pwd_mkdb -C).
Entries with oversized usernames are still permitted when building the passwd database.
When entries are >= MAXLOGNAME in length, they are correctly stored in passwd, pwd.db and spwd.db but are only correctly retrieved by getpwent*() and getpwuid*(). getpwnam*() truncates to MAXLOGNAME - 1 when reading from a file (breaking at least sh, tcsh and bash) and utilities such as su(1) check, complain and fail if the passed name is >= MAXLOGNAME in length.
MFC after: 3 weeks
show more ...
|
Revision tags: release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0 |
|
#
ff900ded |
| 15-Jun-2005 |
Dima Dorfman <dd@FreeBSD.org> |
Correctly handle an input file without a newline on the last line (and avoid the confusing error message about the line being too long). This change uses fgetln to detect the right conditions, but th
Correctly handle an input file without a newline on the last line (and avoid the confusing error message about the line being too long). This change uses fgetln to detect the right conditions, but the fixed-width line buffer is kept because too many other places in the program make assumptions about its maximum width.
Approved by: re (scottl)
show more ...
|
#
ce2657c0 |
| 29-May-2005 |
Philippe Charnier <charnier@FreeBSD.org> |
Even if variable is never used uninitialized by the semantic, reduce compiler warning by giving an initial value in all cases.
|
Revision tags: release/5.4.0_cvs, release/5.4.0 |
|
#
e2db8d37 |
| 28-Feb-2005 |
Ruslan Ermilov <ru@FreeBSD.org> |
Add endianness support.
While version 4 entries are architecture-independent, we also store old (version 3) entries in native byte order. Also, the hash itself is created in a native byte order.
Wi
Add endianness support.
While version 4 entries are architecture-independent, we also store old (version 3) entries in native byte order. Also, the hash itself is created in a native byte order.
With this change, pwd_mkdb(8) can be used to cross-build *pwd.db files for another architecture.
Tested on: i386, amd64, alpha, sparc64
show more ...
|
#
bf94610c |
| 10-Feb-2005 |
Stefan Farfeleder <stefanf@FreeBSD.org> |
Turn K&R functions into prototypes.
|
Revision tags: release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0 |
|
#
486c8cc4 |
| 07-Aug-2004 |
Warner Losh <imp@FreeBSD.org> |
Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived software (with permission of addtional copyright holders where appropriate)
|
#
db7bacc6 |
| 05-Aug-2004 |
Warner Losh <imp@FreeBSD.org> |
Add 'i' to the getopt string.
Noticed by: jhein
|
#
9906740e |
| 21-Jul-2004 |
Warner Losh <imp@FreeBSD.org> |
Add support for ignoring locking failures. This is only enabled when you've specified a directory. It is intended to be used in building custom releases over NFS where locking may be unreliable at
Add support for ignoring locking failures. This is only enabled when you've specified a directory. It is intended to be used in building custom releases over NFS where locking may be unreliable at best and there is no contention that the locking is designed to arbitrate. Other uses of this flag are discouraged. Document same in usage and man page (including the warning about unwise).
Sponsored by: Timing Solutions
show more ...
|
#
24412bd1 |
| 21-Jul-2004 |
Warner Losh <imp@FreeBSD.org> |
Two style related changes: (1) use strlcpy instead of strncpy since the use here of the latter was incorrect. (2) Move 'N' case into proper sorted order (sorted the same way that ls sorts its
Two style related changes: (1) use strlcpy instead of strncpy since the use here of the latter was incorrect. (2) Move 'N' case into proper sorted order (sorted the same way that ls sorts its args).
show more ...
|