summaryrefslogtreecommitdiffstats
path: root/chpass
Commit message (Collapse)AuthorAgeFilesLines
* Add libmd (or move it after libcrypt). We don't want the linker to beMarcel Moolenaar1999-12-161-2/+3
| | | | | smart because it will definitely get it wrong. This popped up during cross-linking.
* Replace the -q option to pwd_mkdb with a test for PW_SCAN_BIG_IDS inSheldon Hearn1999-12-021-0/+6
| | | | | | | | | | | the environment. This allows big ID warnings to be suppressed for vipw and chpass as well. Since the environment variable test is only performed for callers of pw_scan() that do not set pw_big_ids_warning, the test can still be overriden. Currently, chpass and pwd_mkdb are the only users of pw_scan() and neither of them overrides the environment variable test.
* mdoc(7)'fyAlexey Zelkin1999-11-181-33/+40
| | | | Mostly submitted by: "Philippe Charnier" <charnier@xp11.frmug.org>
* mdoc(7)'fyAlexey Zelkin1999-10-301-12/+20
|
* fix a serious bug where, on alpha, due to a an int/long type mismatch,Andrew Gallatin1999-10-201-1/+1
| | | | | the uid arg to use_yp() was getting clobbered by the call to my_yp_match(). This led to a problem where a NIS user could edit root's passwd information.
* Unifdef -DPASSWD_IGNORE_COMMENTS. This wasn't really optional andPeter Wemm1999-09-062-3/+1
| | | | we have enough pseudo-options already.
* $Id$ -> $FreeBSD$Peter Wemm1999-08-286-6/+6
|
* Fix a bunch of broken cross-referencesChris Costello1999-08-181-2/+2
|
* Allow comments and blank lines as advertised in passwd(5).Sheldon Hearn1999-07-292-1/+12
| | | | | PR: 12828 Submitted by: Yasuhiro Fukuma <yasuf@big.or.jp>
* More egcs warning fixes:Warner Losh1999-04-252-3/+4
| | | | | | | | | | o main returns int not void o use return 0 at end of main when needed o use braces to avoid potentially ambiguous else o don't default to type int o #ifdef 0 -> #if 0 Reviewed by: obrien and chuckr
* Close PR #10264. Don't bail directly out of passwd/chpass in my_yp_match().Bill Paul1999-03-011-1/+17
| | | | | | | | | | | Instead, treat the inability to retrieve a record from the server as a match failure and let things take its course. Part of the problem here is that NIS _is_ turned on, however the master server is actually not an NIS server: it's an NIS+ server. And the client is bound to an NIS+ replica server that's running in YP compat mode. The code which tries to figure out of the user is local or NIS gets confused by this.
* Change the prompt for the office location field from "Location:"Guy Helmer1999-02-233-8/+13
| | | | | | | | | | | | | | to "Office Location:" to disambiguate what is expected. Add a note to the man page to indicate that the office location and office phone fields are concatenated and printed with the heading "Office:" by finger(1). Swap the order of the home and office phone fields in the man page to match the order of the fields in the editor. If any programs interact with chpass(1) and expect "Location:" instead of "Office Location:" as the prompt, either this change will have to be reverted or the other programs will have to be changed. PR: docs/7533
* Ignore errors from chflags. This makes it possible to make installworldDag-Erling Smørgrav1999-02-141-2/+2
| | | | with DESTDIR set to an NFS-mounted file system.
* Allow two digit years 1969-2068Daniel O'Callaghan1999-01-181-3/+6
|
* Fixed disordering of cross references in previous commit.Bruce Evans1998-12-131-3/+3
|
* Add reference to login.conf(5)Matthew Dillon1998-12-131-2/+3
|
* PR: docs/9045Matthew Dillon1998-12-131-27/+31
| | | | | | Update chpass(1) manual page. Change the definition of the class field and also reorganize the field list to match that of the /etc/master.passwd file, to avoid confusion.
* Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).Archie Cobbs1998-12-065-10/+11
|
* Fixed printf format errors. Assume that uid_t's are representable asBruce Evans1998-10-171-2/+2
| | | | unsigned longs.
* Fixed printf format errors. Assume that time_t's are representable asBruce Evans1998-10-171-2/+2
| | | | longs.
* Remove useless `BINOWN=root' now that it is the default.David E. O'Brien1998-09-191-1/+0
|
* Bump up the E_SHELL constant after an extra field was added, thus makingMark Murray1998-09-031-1/+1
| | | | | this refer to the wrong data. Submitted by: axl@iafrica.com (Sheldon Hearn)
* Submitted by: Peter Hawkins <thepish@freebsd.org>Peter Hawkins1998-08-141-5/+9
| | | | Document last mod (extended gcos)
* Submitted by: Peter Hawkins <thepish@FreeBSD.org>Peter Hawkins1998-08-143-4/+13
| | | | | | Add functionality for support for more than 4 subfields within gcos. chsh, chpass etc did not parse beyond the 4th field previously and so truncated gcos on updating the database.
* Correct the description of the last four fields.Steve Price1998-06-131-3/+3
| | | | | PR: 6926 Submitted by: Josh Gilliam <josh@quick.net>
* Fixed `make -j9' by putting generated headers in ${SRCS}. Removed bogusBruce Evans1998-04-261-10/+10
| | | | | dependencies of generated .c files on generated headers (these made `make -JN' work provided `depend' was made first). Sorted sources lists.
* Add rcsid. Correct -Wall warning.Philippe Charnier1998-03-231-1/+5
|
* Removed extra (non-trailing) arg in a call to warnx().Bruce Evans1997-12-181-2/+2
|
* Quieten -Wall.Mark Murray1997-09-281-1/+2
|
* Add manpage links ypchpass.1, ypchfn.1, ypchsh.1Wolfram Schneider1997-09-131-0/+3
|
* Modify passwd and chpass to use new AF_LOCAL RPC interface instead ofBill Paul1997-07-292-17/+23
| | | | old kludged-up 'yppasswd_comm' support.
* Free a malloc'ed variable before exiting. Compute line number when parsingPhilippe Charnier1997-06-252-5/+12
| | | | | input file, it helps finding errors. Obtained from: OpenBSD.
* Fix for PR #3141: check for NULL before strdup()ing pw->pw_class.Bill Paul1997-03-291-2/+3
| | | | | | | | | (I'm not sure why this happens, though I suspect it may be because the server is configured with only passwd maps instead of both passwd and master.passwd maps. This is allowed, but I think in this case pw_class is left NULL, hence the problem.) Also applied similar patch to chpass/pw_yp.c just for paranoia's sake.
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-3/+3
| | | | posix standard on the topic.
* If an administrator somehow manages to break the hardlinksMike Pritchard1997-02-261-2/+4
| | | | | | | | | | | | on chpass & passwd and turn the links into individual files with the schg flag set, make install will fail to install all of the proper links. Fixed by removing the schg flag on all of the links before installing. Closes PR# 2040. Submitted by: Ph. Charnier <charnier@xp11.frmug.org>
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-223-3/+3
|
* Sort cross references.Wolfram Schneider1997-01-151-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-143-3/+3
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* pw_scan() was being used to convert a string into a struct passwd, withPeter Wemm1996-11-151-1/+1
| | | | | | | | | | | an auto stack variable that was about to disappear. It broke with some nis passwd changes because of a gethostbyname() call that uses a fair bit of stack.. This was a timebomb waiting to go off at any time and could have been causing subtle corruption for a while. AARGH!! This is HIGHLY reccomended for 2.2 and presumably 2.1.6
* Add a flag to allow the 'use NIS or local?' logic to tell when NIS isBill Paul1996-10-232-5/+8
| | | | | | | enabled in /etc/master.passwd & friends. This allows the 'USER_YP_AND_LOCAL' case to make a more sensible guess (if NIS is enabled, default to NIS, otherwise default to local -- this is better than defaulting to NIS all the time).
* *blush* Whoops: got the format strings wrong.Bill Paul1996-10-221-4/+4
|
* Part 2 of fix for PR #1519. The problem here is similar to whatBill Paul1996-10-221-8/+25
| | | | | was going on in pwd_mkdb, except here we also have to deal with the pw_change and pw_expire fields.
* Modify the 'couldn't create udp handle' message so it tell youBill Paul1996-10-221-4/+5
| | | | | | the name of the host that couldn't be connected to. This will hopefully make it easier to diagnose problems with certain NIS configuration problems.
* Add new option to chpass: -e "expire" ; change the account expire timePeter Wemm1996-08-125-13/+38
| | | | | | | | | | | | | | | from a script as if it was done in the interactive editor. When reassembling the gecos string, trim any excess trailing commas, they look ugly in the passwd file. :-) Have a simple Makefile tweak to prevent mortal users from changing their fullname. As ISP's we have seem some real bizzare stuff here.. When decoding the change/expire string, allow the month number as a synonym for the name of the month.. (ie: 1 as well as Jan or January) Note that using numbers means there's a chance that you can get bitten if you're not used to the American DD-MM-YY order.
* Move setting of username to the correcft place; also initialize it.Guido van Rooij1996-07-141-3/+3
| | | | Reviewed by: peter@freebsd.org
* Implement incremental passwd database updates. This is done by ading a '-u'Guido van Rooij1996-07-011-2/+4
| | | | | | | | | | | | | | 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.
* Add missing semicolon so that this module compiles whithout -DYP.Bill Paul1996-06-151-1/+1
| | | | Submitted (via Usenet) by: Nathan Torkington <gnat@frii.com>
* Fix the -l flag. For some reason I can't fathom, I left in some codeBill Paul1996-05-251-8/+5
| | | | | | that would cause it to fail if anyone but the superuser tried to use it. Also fix a couple of harmless typos since I'm in the area.
* In use_yp(), call _yp_check() to make ultra, super-duper sure that NISBill Paul1996-05-071-2/+3
| | | | | | | is available before trying to go hunting for a domain name. This fixes the following problem: you have +::::::::: in /etc/master.passwd but NIS isn't running (no ypbind, no domain name set) -- passwd and chpass will still try to change an NIS password instead of the local one.
* Print some warnings if root invokes chpass and sets theMike Pritchard1996-04-111-0/+19
| | | | | | | | | | | | | | | | | shell to one of the following: - a non-existent file - a non-regular file - a file without any execute bits set The shell is still set to whatever they entered even if the above conditions exist (hey, it is the super user doing this after all :-), but this might give the admin. some warning that they are about to screw themselves and give them a chance to fix it before it is too late. Inspired by: some new FreeBSD user on USENET who set his root shell to a shell that doesn't exist and now can't gain access to root (don't worry, I sent him some mail on how to recover from this).