summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Markup fixes.Ruslan Ermilov2006-09-291-2/+2
|
* Fix bug introduced in rev 1.23:Dmitry Morozovsky2006-09-251-1/+6
| | | | | | | | pw_equal does not check crypted password field, so one cannot change crypted password keeping other fields intact. Approved by: des MCF after: 3 days
* o Fix groupadd getopt line and make 'pw groupadd -o' work.Maxim Konovalov2006-09-181-1/+1
| | | | | | PR: bin/100684 Submitted by: Devon H. O'Dell MFC after: 3 weeks
* Minor comment fix.Thomas Quinot2006-09-081-1/+1
|
* (pw_copy): Handle the case of a malformed line in master.passwdThomas Quinot2006-09-041-2/+11
| | | | | | | | (copy it silently, do not dereference NULL pointer). PR: bin/102848 Reviewed by: security-officer (cperciva) MFC after: 1 week
* Add adding_user.8 to SEE ALSO, note that usernames may contain any characterTom Rhodes2006-06-071-3/+6
| | | | | | but not being with a hyphen, similar to adding_user.8. PR: 35732
* Reimplementation of world/kernel build options. For details, see:Ruslan Ermilov2006-03-171-4/+6
| | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
* POSIXed strtoll() (and ours one too) can set errno to EINVAL, so checkAndrey A. Chernov2006-03-141-1/+1
| | | | | | it first. Approved by: andre
* Import of OpenBSD's strtonum(3) which is a nicer version of strtoll(3)Andre Oppermann2006-03-141-0/+68
| | | | | | | | providing proper error checking and other improvements. Obtained from: OpenBSD Requested by: flz (to port Open[BGP|OSPF]D) MFC after: 3 days
* Add utility functions for checking if a given kernel module is loaded,Dag-Erling Smørgrav2006-02-181-0/+5
| | | | and loading it.
* Honour the "uuid" directive in adduser.confMatteo Riondato2006-01-221-1/+4
| | | | | | PR: conf/87914 Approved by: philip (mentor) MFC after: 3 days
* Add a family of functions for reliable pidfiles handling.Pawel Jakub Dawidek2005-08-241-0/+17
| | | | | Idea from: jmg Discussed on: arch@
* Cross-reference pw(8) into chpass(1), passwd(1), and vipw(8).Sean Chittenden2005-08-021-0/+1
|
* Change /home symbolic link, so it will point to usr/home instead of /usr/home.Pawel Jakub Dawidek2005-07-311-1/+5
| | | | | | | | | | | | Previous symlink was confusing: # cd /jails/virtual_system_1/home # realpath . /usr/home ...and slower. OK'ed by: rwatson, phk
* Fix a particularly egregious grammar error.Adam Weinberger2005-05-241-1/+1
| | | | | Approved by: wpaul MFC after: 1 day
* - Act according to the documentation (man page):Robert Drehmel2005-04-281-2/+1
| | | | | | | | | When adding users from a preformatted file, do not exit silently when empty lines or lines starting with a '#' are encountered - ignore them instead. - Fix a spelling error in a comment. PR: bin/80058
* Properly spell default in a comment.Tom Rhodes2005-04-221-1/+1
|
* Remove unused variables.Stefan Farfeleder2005-04-091-4/+1
|
* The variable `arglist' has internal linkage in pw.c, don't declare it as externStefan Farfeleder2005-02-101-1/+1
| | | | here.
* Sort sections.Ruslan Ermilov2005-01-181-56/+56
|
* 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