Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | In fullpath_from_shell(), move the nologin detection before the cat | while | Peter Pentchev | 2004-09-23 | 1 | -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 Makonnen | 2004-08-28 | 1 | -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 Charnier | 2004-07-26 | 1 | -2/+1 |
| | |||||
* | Mechanically kill hard sentence breaks. | Ruslan Ermilov | 2004-07-02 | 1 | -1/+2 |
| | |||||
* | Mechanically kill hard sentence breaks. | Ruslan Ermilov | 2004-07-02 | 1 | -2/+4 |
| | |||||
* | Use strlcpy(3) to replace the idiomatic | Robert Drehmel | 2004-06-17 | 3 | -30/+18 |
| | | | | | | | strncpy(d, s, l); d[l - 1] = '\0'; statements. | ||||
* | Fix a bug which occurred when the home directory given by the | Robert Drehmel | 2004-06-17 | 1 | -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 Ermilov | 2004-06-13 | 1 | -34/+43 |
| | |||||
* | Add note that rmuser will clean up any IPC mechanisms owned by the user. | Christian S.J. Peron | 2004-06-08 | 1 | -0/+3 |
| | | | | Approved by: bmilekic (mentor) | ||||
* | Accept full path names in addition to base names for shells. | Mike Makonnen | 2004-06-06 | 2 | -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 Ermilov | 2004-06-04 | 1 | -2/+2 |
| | |||||
* | Add humanize_number(3) to libutil for formating numbers into a human | Pawel Jakub Dawidek | 2004-05-24 | 1 | -0/+11 |
| | | | | | | readable form. Obtained from: NetBSD | ||||
* | Don't depend on NULL's expansion being a pointer, cast it before it is passed | Stefan Farfeleder | 2004-05-18 | 1 | -3/+4 |
| | | | | | | to variadic functions. Approved by: das (mentor) | ||||
* | Bring the description for login_getclassbyname in sync with the function's | Diomidis Spinellis | 2004-05-11 | 1 | -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 different | Tom Rhodes | 2004-04-07 | 1 | -1/+1 |
| | | | | | | version of the adduser utility. Noticed by: simon | ||||
* | Fix today's faux pas by: | Tom Rhodes | 2004-03-30 | 1 | -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 Rhodes | 2004-03-30 | 3 | -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/sbin | Colin Percival | 2004-03-30 | 1 | -3/+3 |
| | | | | Reminded by: trhodes | ||||
* | o Add an -S option to not attempt to ascertain the validity of a shell. | Mike Makonnen | 2004-03-16 | 2 | -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 fixes | Ken Smith | 2004-03-08 | 2 | -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 Fonvieille | 2004-03-03 | 1 | -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 minor | Jens Schweikhardt | 2004-02-29 | 1 | -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 Kientzle | 2004-02-26 | 1 | -0/+2 |
| | | | | MFC after: 2 weeks | ||||
* | Remove unused includes. Make it WARNS=6 friendly. Concerning bin/2442, make | Philippe Charnier | 2004-01-18 | 4 | -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 Charnier | 2004-01-18 | 1 | -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 already | Ian Dowse | 2004-01-11 | 4 | -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 liberties | Peter Wemm | 2003-10-26 | 1 | -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 Murray | 2003-10-18 | 5 | -74/+79 |
| | |||||
* | mdoc(7): Properly mark C headers. | Ruslan Ermilov | 2003-09-10 | 1 | -1/+1 |
| | |||||
* | mdoc(7): Use the new feature of the .In macro. | Ruslan Ermilov | 2003-09-08 | 1 | -1/+1 |
| | |||||
* | Do not compare unsigned int values with ULONG_MAX. The comparison is | Alexander Kabaev | 2003-07-11 | 1 | -2/+2 |
| | | | | always false on 64bit platforms and GCC 3.3.1 issues warning there. | ||||
* | Typo. | Mike Makonnen | 2003-06-24 | 1 | -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 Makonnen | 2003-06-20 | 1 | -1/+1 |
| | |||||
* | Add support for the special shell nologin. | Mike Makonnen | 2003-06-20 | 2 | -5/+44 |
| | | | | Prodded by: mikeh | ||||
* | Update my email address. | Mike Makonnen | 2003-06-20 | 2 | -2/+2 |
| | |||||
* | Don't forget the -r on the second password prompt. | Mike Makonnen | 2003-06-20 | 1 | -1/+1 |
| | | | | PR: bin/53550 | ||||
* | Tidy up. Sort headers. | Mark Murray | 2003-06-14 | 2 | -10/+9 |
| | |||||
* | The .Xr utility. Spelling. Put NIS under .Tn | Philippe Charnier | 2003-06-08 | 1 | -11/+19 |
| | |||||
* | Add information about the log file. | Tom Rhodes | 2003-05-08 | 1 | -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'Brien | 2003-05-03 | 2 | -2/+3 |
| | |||||
* | Brucify. | Dag-Erling Smørgrav | 2003-04-10 | 1 | -4/+8 |
| | |||||
* | Correctly detect the case where a password entry was changed while we were | Dag-Erling Smørgrav | 2003-04-09 | 1 | -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ørgrav | 2003-04-09 | 1 | -3/+10 |
| | | | | PR: bin/50563 | ||||
* | Apply the correct fix for bin/50679: don't mess around with process groups | Dag-Erling Smørgrav | 2003-04-09 | 1 | -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 | ||||
* | Band-aid for the "^C kills the editor" problem. I haven't yet found the | Dag-Erling Smørgrav | 2003-04-08 | 1 | -10/+6 |
| | | | | | | | | proper way to fix this. The way this works is to prepend "exec " to the editor command to eliminate the "shell in the middle" which prevents us from properly reawakening the editor after a SIGTSTP. PR: bin/50679 | ||||
* | style.Makefile(5) | David E. O'Brien | 2003-04-04 | 1 | -1/+1 |
| | |||||
* | Document the -g option in the usage message. | Mike Makonnen | 2003-03-23 | 1 | -0/+1 |
| | | | | Approved by: markm (mentor)(implicit) | ||||
* | Add a -g option to specify a default login group. | Mike Makonnen | 2003-03-20 | 2 | -10/+22 |
| | | | | Approved by: markm (mentor)(implicit) | ||||
* | o initialize a couple of local flags so the user can re-edit groups | Mike Makonnen | 2003-03-19 | 1 | -2/+8 |
| | | | | | | | | next time the subroutine is re-entered o s/configrun/configflag/ o Make the prompt make sense if the user was creating a configuration file Approved by: markm (mentor)(implicit) | ||||
* | Make pw_edit() use /bin/sh to interpret the EDITOR environment | David Schultz | 2003-03-17 | 1 | -2/+12 |
| | | | | | | | variable. PR: 48748 Reviewed by: mike (mentor) |