summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Sort sections.Ruslan Ermilov2005-01-181-2/+2
|
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
|
* More NO_NIS cleanup: LINKS and MLINKSAndrey A. Chernov2004-12-291-0/+4
|
* Grammar in a comment.Ruslan Ermilov2004-12-181-1/+1
|
* Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.Bjoern A. Zeeb2004-11-131-3/+9
| | | | | | | | | | | If turned on no NIS support and related programs will be built. Lost parts rediscovered by: Danny Braniss <danny at cs.huji.ac.il> PR: bin/68303 No objections: des, gshapiro, nectar Reviewed by: ru Approved by: rwatson (mentor) MFC after: 2 weeks
* Don't rely on NULL being a pointer, add a cast before passing it to a variadicStefan Farfeleder2004-10-031-2/+2
| | | | function.
* In fullpath_from_shell(), move the nologin detection before the cat | whilePeter Pentchev2004-09-231-7/+11
| | | | | | | | | loop to avoid an incorrect display of the nologin path twice. PR: 71786 Submitted by: Andrew Hayden <andrew.hayden@gmail.com> Reviewed by: mtm MFC after: 3 days
* Also, match the full path to the special nologin shell.Mike Makonnen2004-08-281-1/+2
| | | | | | | | | | Previously, it would recognize it as a valid shell only if the basename (nologin) was specified. Now, it will recognize both the basename and the full path. NOTE: The full path as adduser(8) understands it is /usr/sbin/nologin. There is a symlink, /sbin/nologin, but that's deprecated and only there for backwards compatibility.
* Remove useless .Pp. Typo: gcos -> gecos (as spelled in passwd(5)).Philippe Charnier2004-07-261-2/+1
|
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+2
|
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-2/+4
|
* Use strlcpy(3) to replace the idiomaticRobert Drehmel2004-06-173-30/+18
| | | | | | | strncpy(d, s, l); d[l - 1] = '\0'; statements.
* Fix a bug which occurred when the home directory given by theRobert Drehmel2004-06-171-1/+2
| | | | | | | | -d option was equal to the one already saved and which caused the pw utility to avoid updating values passed by other options processed before the -d option in the code path. Spotted by: Richard Caley <rjc@interactive.co.uk>
* Assorted markup, grammar, and spelling fixes.Ruslan Ermilov2004-06-131-34/+43
|
* Add note that rmuser will clean up any IPC mechanisms owned by the user.Christian S.J. Peron2004-06-081-0/+3
| | | | Approved by: bmilekic (mentor)
* Accept full path names in addition to base names for shells.Mike Makonnen2004-06-062-11/+16
| | | | | Make explicit in the documentation that valid shells need to be supplied only if the -S option is not given.
* Fixed a typo.Ruslan Ermilov2004-06-041-2/+2
|
* Add humanize_number(3) to libutil for formating numbers into a humanPawel Jakub Dawidek2004-05-241-0/+11
| | | | | | readable form. Obtained from: NetBSD
* Don't depend on NULL's expansion being a pointer, cast it before it is passedStefan Farfeleder2004-05-181-3/+4
| | | | | | to variadic functions. Approved by: das (mentor)
* Bring the description for login_getclassbyname in sync with the function'sDiomidis Spinellis2004-05-111-3/+4
| | | | | | | arguments. The function has as a second argument a struct passwd * pointer, not a directory name. MFC after: 2 weeks
* This manual page will not first appear in 4.10 as RELENG_4 has a differentTom Rhodes2004-04-071-1/+1
| | | | | | version of the adduser utility. Noticed by: simon
* Fix today's faux pas by:Tom Rhodes2004-03-301-16/+5
| | | | | | | | Removing the -compact option passed to .Bl macro to avoid useless .Pp macros; Adding a missing period; Using .Xr with .Nd since makewhatis(1) has no support for cases where the Xref is absent. Informed by: ru
* Add an adduser.conf manual page.Tom Rhodes2004-03-303-3/+211
| | | | | | | Hook it to the build in Makefile. Xref from adduser.8. Update adduser.8's BUGS section. Bump the date on adduser.8.
* Sychronize with reality: nologin(8) is now in /usr/sbinColin Percival2004-03-301-3/+3
| | | | Reminded by: trhodes
* o Add an -S option to not attempt to ascertain the validity of a shell.Mike Makonnen2004-03-162-13/+59
| | | | | | | o Add a -D option to not attempt to create the home directory. o Treat the /nonexistent home directory specially. It means the user has no home directory and it should not be created. o Update Copyright year and my email.
* Shift file locking to source file instead of temp file. This fixesKen Smith2004-03-082-8/+5
| | | | | | | | | | | data buffering issue that corrupts files if two pw(8)'s run at the same time as well as changing pw(8) so it uses the same locking mechanism as PAM, vipw(8), pwd_mkdb(8), etc. PR: bin/23501 Submitted by: Alex Kapranoff <alex (at) kapran (dot) bitmcnit (dot) bryansk (dot) su> Approved by: rwatson (mentor) MFC after: 5 days
* Typo fix.Marc Fonvieille2004-03-031-1/+1
| | | | | | PR: docs/63677 Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de> MFC after: 1 week
* Make rmuser now also remove ipc resources. Also, fix a few minorJens Schweikhardt2004-02-291-4/+18
| | | | | | | | shell style problems (superfluous backslashes at EOL). PR: 55980 Submitted by: Chris S.J.Peron <maneo@bsdpro.com> MFC after: 2 weeks
* Add the clean_environment call to libutil.h also.Tim Kientzle2004-02-261-0/+2
| | | | MFC after: 2 weeks
* Remove unused includes. Make it WARNS=6 friendly. Concerning bin/2442, makePhilippe Charnier2004-01-184-21/+39
| | | | | | | | | | a new function dup_shell() to replace ok_shell() and make it unconditionnally strdup() its result to make the caller's code simplier. Change ok_shell() to just return an integer value suitable for tests (it was used mainly for that purpose). Do not use strdup() in the caller's code but rely on dup_shell() that will do the job for us. PR: bin/2442
* add missing endusershell() call. Original version was incorrect.Philippe Charnier2004-01-181-1/+3
| | | | | PR: bin/2442 Reviewed by: Friedemann Becker <zxmxy33@mail.uni-tuebingen.de>
* Add a `-H <fd>' option that is like `-h <fd>', but accepts an alreadyIan Dowse2004-01-114-22/+52
| | | | | | | encrypted password on the specified file descriptor. PR: bin/22033 MFC after: 2 weeks
* (mostly) Clean up some const warnings here. The code takes some libertiesPeter Wemm2003-10-261-8/+9
| | | | | because it is the originator of various const strings and knows that they came from malloc.
* ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.Mark Murray2003-10-185-74/+79
|
* mdoc(7): Properly mark C headers.Ruslan Ermilov2003-09-101-1/+1
|
* mdoc(7): Use the new feature of the .In macro.Ruslan Ermilov2003-09-081-1/+1
|
* Do not compare unsigned int values with ULONG_MAX. The comparison isAlexander Kabaev2003-07-111-2/+2
| | | | always false on 64bit platforms and GCC 3.3.1 issues warning there.
* Typo.Mike Makonnen2003-06-241-1/+1
| | | | | | This has worked so far because the variable was empty by default. Submitted by: Kostyuk Oleg <cub@cub.org.ua>
* s/warn/info/Mike Makonnen2003-06-201-1/+1
|
* Add support for the special shell nologin.Mike Makonnen2003-06-202-5/+44
| | | | Prodded by: mikeh
* Update my email address.Mike Makonnen2003-06-202-2/+2
|
* Don't forget the -r on the second password prompt.Mike Makonnen2003-06-201-1/+1
| | | | PR: bin/53550
* Tidy up. Sort headers.Mark Murray2003-06-142-10/+9
|
* The .Xr utility. Spelling. Put NIS under .TnPhilippe Charnier2003-06-081-11/+19
|
* Add information about the log file.Tom Rhodes2003-05-081-0/+10
| | | | | PR: 35575 Submitted by: "Simon L. Nielsen" <simon@nitro.dk> (original version)
* Make GCC 3.3 happy with rcsid[], sccs[], and copyright[].David E. O'Brien2003-05-032-2/+3
|
* Brucify.Dag-Erling Smørgrav2003-04-101-4/+8
|
* Correctly detect the case where a password entry was changed while we wereDag-Erling Smørgrav2003-04-091-2/+7
| | | | | | preparing to edit it. PR: bin/50563
* Avoid clobbering the gecos field, as we intend to use the original later.Dag-Erling Smørgrav2003-04-091-3/+10
| | | | PR: bin/50563
* Apply the correct fix for bin/50679: don't mess around with process groupsDag-Erling Smørgrav2003-04-091-13/+19
| | | | | | | or the tty, just block selected signals in the parent like system(3) does. Many thanks to bde for his assistance in finding the correct solution. PR: bin/50679