summaryrefslogtreecommitdiff
path: root/usr.sbin/pwd_mkdb
AgeCommit message (Collapse)Author
2003-06-28() to (void)Theo de Raadt
2003-06-12- section reorderJason McIntyre
- macro fixes - kill whitespace at EOL - new sentence, new line
2003-06-08Sanity check username length and convert to ANSI function headers.Todd C. Miller
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-13Clarify the -d option and allow the passwd file argument to not beTodd C. Miller
a fully qualified pathname if -d was specified (since we take the basename in that case anyway). deraadt@ OK
2003-03-28Check strdup() rval for NULL; noticed by mpech@Todd C. Miller
2002-11-21Rename shadow group to _shadowTodd C. Miller
This means the instructions in the previous commit are now wrong (replace shadow with _shadow and all will be well).
2002-11-21Add a "shadow" group and make the shadow passwd db readable by thatTodd C. Miller
group. This changes getpw* to always try the shadow db first and then fall back to the db w/o password hashes. In the future, /usr/libexec/auth/login_passwd (and others) will be setgid shadow instead of setuid root. OK deraadt@ If you track -current you should do the following: o add group shadow to /etc/group o chgrp shadow /etc/spwd.db o chmod 640 /etc/spwd.db o rebuild and install src/usr.sbin/pwd_mkdb You do not need to rebuild libc yet, but it would't hurt to do so.
2002-06-27Document why it's static.Artur Grabowski
2002-06-02minor KNFTheo de Raadt
2002-05-29more strlcat and strlcpyTheo de Raadt
2002-05-22more strcpy/sprintf death; mpech okTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-09-17skip to uid field, not gidMike Pechkin
millert@ ok
2001-08-16Add -s flag to only update secure .db file (/etc/spwd.db). Can beTodd C. Miller
used in conjunction with -u user when only the password has changed.
2001-06-08Section shuffling; mpech@prosoft.org.lvAaron Campbell
2001-06-07Close PR 1854; mpech@prosoft.org.lvTodd C. Miller
o use correct db pointers o don't try to star out an empty password
2001-06-05Remove leading '+' from the -u arg description; mbing@nfr.netTodd C. Miller
2000-11-26*** empty log message ***Todd C. Miller
2000-11-26Support -u username option. Loosely based on FreeBSD's changes.Todd C. Miller
I've also restructured things a bit to cut the number of master.passwd parses in half from 6 to 3. We can't really get away with fewer than that without sacrificing locality in the .db files.
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-06-30warnx?/errx? paranoia (use "%s" not a bare string unless it is aTodd C. Miller
constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in the tree are not misled into doing something potentially dangerous. Furthermore, it is a bad idea to assume that pathnames will not include '%' in them and that error routines don't return strings with '%' in them (especially in light of the possibility of locales).
2000-03-19Remove hard sentence breaks. Add $OpenBSD$ tags where appropriate. Some otherAaron Campbell
cleanup along the way.
1999-06-06Completely forgot about that one (yep, it has been in my tree for a longMarc Espie
while).
1999-06-05remove trailing whitespace, some Nm cleanupAaron Campbell
1999-05-23remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonAaron Campbell
is used instead; kwesterback@home.com
1999-04-21Don't display the string associated with errno for "basedir too long"Alex Feldman
diagnostic. Issue a diagnostic message if the master.passwd file isn't specified as an absolute path.
1999-04-02all .Nm macros should have an argument in SYNOPSIS; also misc cleanupAaron Campbell
1999-03-11cleanupAaron Campbell
1998-07-15Fix a u_int vs. off_t issue and provide an estimate of the numberTodd C. Miller
of elements in the hash based on master.passwd file size, assuming an average 128bytes per entry. This is only an estimate so it doesn't have to be exact.
1998-07-15Don't link in a custom version of getpwent.c since we don't use any routines ↵Todd C. Miller
from it (verified with gprof call graph)
1998-07-15Move loop that is executed 6 times into its own function to improve readability.Todd C. Miller
1998-07-14sizeof(uid_t) and sizeof(gid_t) not sizeof(int)Todd C. Miller
1998-07-14Get rid of unused empty file, pw_scan.h. Nothing uses it anymore.Todd C. Miller
When building .db versions of passwd and master.passwd, go split the loops into three (one per key type) so that we get good locality withing the .db file for getnext style operations (getpwent). With this change I see about a 20% speedup of getpwent() on very large passwd files.
1998-06-10clear flag before pw_scan(); lukemTheo de Raadt
1998-06-03document that "file" should be an abs-path; noted by ↵Theo de Raadt
zappaman@bsdsun.compsci.buu.ac.th
1998-04-26use correct db pointer; fairTheo de Raadt
1998-04-26indentTheo de Raadt
1998-04-11make static for install purposesTheo de Raadt
1997-12-08first cut at performance enhancing heuristicTheo de Raadt
1997-09-21$OpenBSD$Theo de Raadt
1997-09-15When the disk gets full, abort properly instead of creating emptyTheo de Raadt
passwd databases. I found this while analysing netbsd pr#1328 from August 10, 1995 by hag@gnu.ai.mit.edu. A sample fix was supplied on 14, May 96 by greywolf@defender.VAS.viewlogic.com. The PR mentioned about 6 or 7 places where this could happen. Greywolf and I had made all of the fixes ourselves in openbsd a while back (except one subtle one which he pointed out but I had missed), but not a single one of the fixes is found in the netbsd source tree... I wonder if Perry has an exploit for this problem, and perhaps he's using it? Another damn good reason for making /tmp and /var seperate partitions.
1997-01-16From NetBSD: Warn about potentially unsafe uid/gid overrides.Todd C. Miller
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-10-16kill __yp_token.Jason Downs
1996-09-28Add -c flag from FreeBSD.Jason Downs
1996-08-30limit basedir lengthTheo de Raadt
1996-08-02document -d flagTodd C. Miller
1996-05-22libutilTheo de Raadt
1996-05-14looks like greywolf and i fixed netbsd pr#1328. pwd_mkdb on a filled rootTheo de Raadt
filesystem would result in gibbled passwd databases.