summaryrefslogtreecommitdiffstats
path: root/usr.bin/passwd
Commit message (Collapse)AuthorAgeFilesLines
* Use KJH's auth.conf parser to turn on/off Kerberos in userland.markm1998-10-092-2/+10
|
* Remove useless `BINOWN=root' now that it is the default.obrien1998-09-191-2/+1
|
* The host commandline option is -h and not -s.steve1998-08-241-2/+2
| | | | | PR: 7703 Submitted by: Yoshishige Arai <ryo2@on.rim.or.jp>
* Fix LIBDIR (for aout/ELF).markm1998-08-061-2/+2
|
* Use the correct name of the login.conf(5) capability (`passwordperiod' ->jkoshy1998-05-191-4/+4
| | | | `passwordtime').
* Fixed missing dependencies on headers generated by rpcgen, as usual.bde1998-05-101-11/+9
| | | | | Removed bogus dependencies of generated .c files on generated headers. Sorted sources lists.
* Ifdefed conditionally-unused variables.bde1998-03-231-1/+3
|
* Prevent passwd locking database forever waiting for user inputache1998-03-071-3/+4
| | | | Submitted by: Antti Kaipila <anttik@iki.fi>
* Fixed `make -jN' for large N, as usual.bde1998-03-061-2/+3
|
* Type fix: when -> withsteve1998-01-031-1/+2
| | | | | PR: 5420 Submitted by: Jonathan Hanna <jh@pc-21490.bc.rogers.wave.ca>
* Changes for KTH KerberosIV.markm1997-09-282-8/+7
| | | | Also quieten -Wall a bit.
* spelling corrections.wosch1997-09-131-1/+1
| | | | | PR: docs/4450 Submitted by: josh@quick.net
* Cosmetic in usage string and err() messages.charnier1997-07-312-22/+20
|
* Modify passwd and chpass to use new AF_LOCAL RPC interface instead ofwpaul1997-07-292-20/+25
| | | | old kludged-up 'yppasswd_comm' support.
* kill the undeadpeter1997-07-132-373/+0
|
* This commit was generated by cvs2svn to compensate for changes in r27241,bde1997-07-062-0/+373
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail,bde1997-07-062-0/+373
| | | | | | | | | | pascal and vmstat.sparc. All changed files on the vendor branch should already have been imported.
| * recording cvs-1.6 file deathpeter1995-12-302-373/+0
| |
* | Remove srandomdev fallback codeache1997-06-141-3/+2
| |
* | login_getclass() -> login_getpwclass()davidn1997-05-101-2/+2
| |
* | Fix for PR #3141: check for NULL before strdup()ing pw->pw_class.wpaul1997-03-291-1/+2
| | | | | | | | | | | | | | | | | | (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 finalimp1997-03-291-2/+2
| | | | | | | | posix standard on the topic.
* | Initialize RNG only onceache1997-03-241-2/+7
| | | | | | | | Use srandomdev() now
* | Fix srandom arg type according to Lite2ache1997-03-111-2/+2
| |
* | Add ^ getpid() for better srandom resultsache1997-03-101-2/+2
| |
* | If an administrator somehow manages to break the hardlinksmpp1997-02-261-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | 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$peter1997-02-224-4/+4
| |
* | Adds login class support for local & nis passwords:davidn1997-02-103-16/+60
| | | | | | | | | | - minpasswordlen=n override minimum password length for class. - passwordperiod=n[smhdwy] auto-set next password change date.
* | Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-144-4/+4
| | | | | | | | | | | | | | | | 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.
* | I haven't had a single contraversial commit all week, so what thejkh1996-11-032-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | heck. Watch through our hidden camera, ladies and gentlemen, as this one-line addition to the syslog output generates hundreds of thousands of lines of email in response, all from people decrying the evils of electronic noise pollution! :-) What this change does, simply speaking, is syslog it every time someone changes their local password. I need this at a local ISP to tell whether people are reacting to expires in a timely fashion or not. To disable it, uncomment -DLOGGING in the Makefile. If your users change their passwords so often as to fill your logfile, then you may also have another administrative problem to deal with.
* | Fix a core dump condition I discovered the other day (rightwpaul1996-10-231-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | after I installed the last SNAP :). Because of the way the 'use NIS or local?' logic is set up here, it was possible to force the use of the NIS password changer even though the specified user didn't exist in NIS (i.e. # passwd foo, where foo is a local-only user). In this case, we fall intp yp_passwd() without the corresponding yp_password structure being filled in, which leads to an NULL pointer dereference. Also fixed the logic like I just did with chpass so that if the user is both in NIS and the local password database, the program makes a more sensible guess as to which one to use (if NIS is turned on in /etc/master.passwd, then use NIS, else default to local).
* | Reset password change time to zero. (This has no effect with standardwpaul1996-09-051-0/+2
| | | | | | | | | | | | | | | | RPC calls to rpc.yppasswdd, but when using the special superuser-only AF_UNIX socket access method, the server will properly handle all the additional fields, including pw_change.) I would also like to take this opportunity to say that Sprint sucks.
* | Add synopsis for yppasswd.alex1996-08-241-0/+6
| |
* | Implement incremental passwd database updates. This is done by ading a '-u'guido1996-07-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge in changes to support the new rpc.yppasswdd(8) and fix a few bugs.wpaul1996-02-234-151/+251
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In passwd(1): - Gut most of yp_passwd.c and leave only a few things that aren't common to pw_yp.c. - Add support for -d and -h flags to select domains and NIS server hosts to use when updating NIS passwords. This allows passwd(1) to be used for changing NIS passwords from machines that aren't configured as NIS clients. (This is mostly to allow passwd(1) to work on NIS master servers that aren't configured as clients -- an NIS server need not necessarily be configured as a client itself.) NOTE: Realize that having the ability to specify a domain and hostname lets you use passwd(1) (and chpass(1) too) to submit update requests to yppasswd daemons running on remote servers in remote domains which you may not even be bound to. For example, my machine at home is not an NIS client of the servers on the network that I manage, yet I can easily change my password at work using my FreeBSD box at home by doing: 'passwd -d work.net.domain -h any.nis.server.on.my.net wpaul'. (Yes, I do use securenets at work; temporarily modified my securenets file to give my home system access.) Some people may not be too thrilled with this idea. Those who don't like this feature can recompile passwd(1) and chpass(1) with -DPARANOID to restrict the use of these flags to the superuser. (Oh, I should be adding proper securenets support to ypserv(8) and rpc.yppasswdd(8) over the weekend.) - Merge in changes to allow root on the NIS master server to bypass authentication and change any user's NIS password. (The super-user on the NIS master already has privileges to do this, but doing it through passwd(1) is much easier than updating the maps by hand.) Note that passwd(1) communicates with rpc.yppasswdd(8) via a UNIX domain socket instead of via standard RPC/IP in this case. - Update man page. In chpass(1): - Fix pw_yp.c to work properly in environments where NIS client services aren't available. - Use realloc() instead of malloc() in copy_yp_pass() and copy_local_pass(). - Fix silly bug in copy_yp_pass(); some of the members of the passwd structure weren't being filled in correctly. (This went unnoticed for a while since the old yppasswdd didn't allow changes to the fields that were being botched.) - chpass(1) now also allows the superuser on the NIS master server to make unrestricted changes to any user's NIS password information. - Use UNIX domain comm channel to rpc.yppasswdd(8) when run by the superuser on the NIS master. This allows several new things: o superuser can update an entire master.passwd.{byname,byuid} entry o superuser can update records in arbitrary domains using -d flag to select a domain (before you could only change the default domain) o superuser can _add_ records to the NIS master.passwd maps, provided rpc.yppasswdd(8) has been started with the -a flag (to do this, the superuser must force NIS operation by specifying the -y flag to chpass(1) along with -a, i.e. 'chpass -y -a 'foo:::::::::') - Back out the 'chpass -a <new password entry> breaks with NIS' fix from the last revision and fix it properly this time. The previous revision fixed the immediate problem but broke NIS operation in some cases. - In edit.c, be a little more reasonable about deciding when to prevent the shell field from being changed. Submitted by Charles Owens <owensc@enc.edu>, who said: "I made a minor (one-line) modification to chpass, with regards to whether or not it allows the changing of shells. In the 2.0.5 code, field changing follows the settings specified in the "list" structure defined in table.c . For the shell, though, this is ignored. A quick look in edit.c showed me why, but I don't understand why it was written as such. The logic was if shell is standard shell, allow changing I changed it to if shell changing is allowed (per table.c) and it is a standard shell OR if uid=0, then allow changing." Makes sense to me. - Update man page.
* | Add a little info to this man page at the start so it doesn'tmpp1996-02-121-1/+1
| | | | | | | | | | | | | | | | appear that ALL the passwd command does is change a users Kerberos password, since that is incorrect. Actually, this man page needs a good overhaul to better reflect systems that don't have Kerberos installed.
* | This commit was generated by cvs2svn to compensate for changes in r13122,peter1995-12-302-373/+0
| | | | | | | | which included commits to RCS files with non-trunk default branches.
* | recording cvs-1.6 file deathpeter1995-12-301-115/+0
| |
* | 1) Fix local_passwd to co-operate with dual-personality crypt(3).markm1995-12-163-10/+26
| | | | | | | | | | | | | | | | | | | | | | Changing a local passwd will now keep the encryption type that was originally used to encrypt the password, so folks adding DES to their systems will not be irritated/confused by having MD5'ed passwords in their master.passwd. Coming later is an option to allow the user to choose the encryption type. 2) Fix a bunch of compiler warnings announced by turning on -Wall. I did not get them all, that will come a bit later.
* | Fix a cosmetic null termination problem for completeness.peter1995-12-111-1/+2
| | | | | | | | | | | | | | The #ifdef NEWSALT code doesn't NULL terminate the salt string.. We dont appear to use this code anymore, but it shouldn't hurt Submitted by: Laurence Lopez <lopez@mv.mv.com>
* | Small tweak: the 'is exisating password an empty string' check isn'twpaul1995-12-091-2/+3
| | | | | | | | | | | | quite right. (Thic causes you to get prompted for an 'Old Password' when changing someone's NIS password even if your password isn't set yet.) Do it like local_passwd.c does.
* | Point passwd to the new locations of kpasswd.c and kadm.h.gibbs1995-09-141-3/+3
| |
* | Add pw_yp.c to SRCS. This is code that was moved to chpass, but passwd stillmarkm1995-09-031-2/+2
| | | | | | | | needs it to build.
* | Bug fix: use the use_yp() function in the chpass(1) code to determinewpaul1995-09-023-48/+34
| | | | | | | | | | | | | | | | | | correctly whether a user is local or NIS (or both, or neither). If you have a user that exists locally but not in NIS, passwd(1) could get confused and try to submit the password change to NIS. (Fortunately, yppasswdd is smart enough to spot the error and reject the change.) Bug reported by: Charles Owens <owensc@enc.edu>
* | Remove bogus ${DESTDIR}s from LINKS.bde1995-08-171-2/+6
| | | | | | | | | | | | | | Keep DPADD up to date with LDADD. bsd.prog.mk's install rule can't handle schg'ed links, so ugly beforeinstall and afterinstall rules are required.
* | Remove the ypchfn/ypchsh stuff from passwd and leave just thewpaul1995-08-135-169/+78
| | | | | | | | yppasswd support. The rest is moving into chpass.
* | Argh!! Got the arguments in the printf() backwards.wpaul1995-06-241-2/+2
| |
* | Whoops: getnewpasswd() always says "Changing local password for foo".wpaul1995-06-242-5/+7
| | | | | | | | | | | | Change things slightly so this message says "local" or "YP" as needed so we can use it for both NIS and local password changes without confusing people.
* | getnewyppasswd() in yp_passwd.c doesn't generate correct encryptedwpaul1995-06-241-42/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | password strings when DES isn't used; somehow the encrypted password is corrupted and it winds up containing control chars, which yppasswdd subsequently rejects. This breaks yppasswd on non-DES FreeBSD systems using NIS. Fix: scrap getnewyppasswd() entirely and use getnewpasswd() from local_password.c, since it already works properly and is virtually identical to getnewyppasswd() anyway. (Wish I'd noticed this sooner.) This fixes a problem just reported on comp.unix.bsd.freebsd.misc.
* | Patch to fix PR #518. In a system with no NIS, passwd will complainwpaul1995-06-161-20/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that it can't contact an NIS server when asked to change the password of an invalid user. It should say 'unknown user' instead. The fix is to check for the _PW_KEYYPENABLED flag in the password database and only roll over into the yppasswd stuff if the flag is enabled (this means passwd will not behave as yppasswd if there are no +::::::::: entries in /etc/master.passwd). If NIS is enabled but the user says 'passwd -l foouser' where foouser exists in the NIS maps, but not in /etc/master.passwd, we also say 'unknown user.' This is so we don't outsmart ourselves: specifying the -l flag restricts passwd to the local password database even if NIS is enabled. This change should probably be merged into 2.1.
OpenPOWER on IntegriCloud