summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Spelling fixes for usr.sbin/Ulrich Spörlein2011-12-302-6/+6
|
* - document the -l option to usermodEitan Adler2011-12-221-1/+12
| | | | | | | PR: docs/161588 Submitted by: "Luchesar V. ILIEV" <luchesar.iliev@gmail.com> Approved by: gjb MFC after: 1 week
* In usr.sbin/pw/pw_user.c, use the correct printf length modifier for aDimitry Andric2011-12-171-1/+1
| | | | | | ptrdiff_t. MFC after: 1 week
* Backout r223115 which potentially caused a POLA violation, by restoringXin LI2011-07-311-1/+1
| | | | | | | | historic behavior (create the default base directory in pw.conf) before I came up with a better fix for this. Requested by: nwhitehorn Approved by: re (kib)
* Don't attempt to create the base directory when -d is specified.Xin LI2011-06-151-1/+1
| | | | MFC after: 1 month
* Stop hard-coding default directory mode as 0777.Jung-uk Kim2011-03-084-9/+9
|
* Do not let pw.conf(5) or -M option affect creation of basehome, e.g., /home.Jung-uk Kim2011-02-041-5/+5
| | | | | | | | | | When the basehome does not exist, it creates all intermediate directories as required, which is logically equivalent to mkdir(1) with -m and -p options. However, it modifies all intermediate directories, not just the final home directory unlike mkdir. This problem was introduced in two revisions, i.e., r1.59 (SVN r167919) and r1.60 (SVN r168044). MFC after: 1 month
* mdoc: drop redundant .Pp and .LP callsUlrich Spörlein2010-10-081-4/+0
| | | | They have no effect when coming in pairs, or before .Bl/.Bd
* Revert the unrelated patch crept in the previous commit.Jung-uk Kim2010-10-051-5/+5
|
* Prefer pmap_unmapbios() over pmap_unmapdev(). The binary does not changeJung-uk Kim2010-10-051-5/+5
| | | | after this because pmap_unmapbios() is a macro for pmap_unmapdev() on amd64.
* mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to theUlrich Spörlein2010-05-131-3/+3
| | | | | | | | | | | bottom of the manpages and order them consistently. GNU groff doesn't care about the ordering, and doesn't even mention CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put them. Found by: mdocml lint run Reviewed by: ru
* Fix a few whitespace issues and comment typos that I found while readingJoel Dahl2010-01-141-11/+9
| | | | through this file.
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-0/+2
|
* Make pw(8) build without <utmp.h>.Ed Schouten2009-12-061-5/+0
| | | | | | The size of the username record in utmp files should not influence the maximum username length. Right now ut_user/ut_name is big enough, so in this case it's dead code anyway.
* Use arc4random_uniform() to avoid "modulo bias"Andrey A. Chernov2008-08-161-55/+2
| | | | | | Remove pw_getrand() unneded now: arc4random_uniform() is stronger then pw_getrand()'s MD5 tricks (inactive) and its active version, mixing arc4random() bytes in one, not make things better at all.
* The original adduser/rmuser scripts in Perl used to modify the PATHJohn Baldwin2008-07-301-2/+3
| | | | | | | | | | | setting. When the scripts were converted to Bourne shell, this was removed. The adduser script was changed to use an explicit path for the pw(8) command so that /usr/sbin did not have to be in the user's PATH. The rmuser script continued to assume that /usr/sbin was in the user's path, however. This fixes the rmuser script to use an explicit path for pw(8) similar to adduser. MFC after: 2 weeks
* Before updating the password database, the pw(8) utility first performs aJohn Baldwin2008-07-171-1/+2
| | | | | | | | sanity check by invoking "pwd_mkdb -C". However, if this failed it silently returned success. Fix this so it fails the update operation instead. MFC after: 1 week
* - Increase the size of the salt in pw(8) from 8 to 32 (same as in pam_unix(8)).Antoine Brodin2008-05-271-5/+7
| | | | | | | | | | | This makes blowfish password hashes look normal when set using pw(8)/adduser(8). [1] - Make it possible to have a '/' in the salt. PR: 121146 [1] Submitted by: Jaakko Heinonen [1] Approved by: rwatson (mentor) MFC after: 1 month
* In the description of the password field, -w was meant, not theChristian Brueffer2008-03-161-2/+2
| | | | | | | | nonexistant -p flag. PR: 120122 Submitted by: Andy Kosela <andy.kosela@gmail.com> MFC after: 3 days
* Add the groupmod '-d' option to pw to allow the deletion of existing usersSean Farley2008-02-233-16/+92
| | | | | | | | | | from a group without the need to perform the same operation by replacing the existing list via the '-M' option. The '-M' option requires someone to fetch the existing members with pw, deleting the undesired members from the list and sending the altered list back to pw. Approved by: wes (mentor) MFC after: 5 days
* style(9) (verified no object changes)Sean Farley2008-02-232-3/+2
| | | | | Approved by: wes (mentor) MFC after: 5 days
* Add the -M command-line option, which will set home directory permissions.Mike Makonnen2008-01-272-1/+44
| | | | | | | | Works both in interactive or batch mode. This is a heavily modified version of the patch submitted in the PR. PR: bin/105060 MFC after: 1 week
* Clarify in what formats the grouplist for the '-G' switch may be accepted.Mike Makonnen2008-01-251-1/+1
| | | | Submitted by: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
* Allow adding a user(s) to additional groups in batch mode as well.Mike Makonnen2007-10-202-1/+2
| | | | | Submitted by: Eygene Ryabinkin <rea-fbsd@codelabs.ru> (modulo minor changes) MFC after: 2 weeks
* The POP daemon's temporary mail file has a leading dot ('.'). This wasMike Makonnen2007-10-191-3/+3
| | | | | | lost in the shell script rewrite of the rmuser command. Submitted by: Ian Smith <smithi@nimnet.asn.au>
* Bump .Dd for r1.5; fix grammatical problem.Ceri Davies2007-04-121-2/+2
|
* Specify the correct way to modify this file, and warn that theMike Makonnen2007-04-121-1/+18
| | | | | | | user should not depend on the internal variables documented in this man page. MFC After: 2 weeks
* There are a couple of bugs in rev. 1.27:Mike Makonnen2007-04-121-7/+2
| | | | | | | | | | | | | | | | | | | 1) The man page should describe the code, not the other way around. 2) Internal variables should not be documented or exposed, except in controlled circumstances (i.e. - That's what the -C flag is for). The variable should have been saved to the config file in save_config(). 3) The next available userid doesn't get automatically updated. The end-result is the same (user gets added with the correct uid), but in an interactive session the default uid doesn't get updated in the display. So, o Use the uidstart variable instead of uuid (bug #3) o Actually save the variable to adduser.conf (bug #2) o (bug #1 to be fixed in an upcomming commit to adduser.conf.5) MFC After: 2 weeks
* Errm... I don't see how rev. 1.26 could have possibly worked or been tested.Mike Makonnen2007-04-121-12/+13
| | | | | | | Fix it for real. Submitted by: Johnny Lee <johnny@bmtk.com> MFC After: 2 weeks
* Do the right thing with symlinks in the skeleton directory.Lukas Ertl2007-03-301-1/+7
| | | | PR: bin/63659
* Accept passwords which contain whitespace.Lukas Ertl2007-03-301-1/+1
| | | | PR: bin/53434
* Add home directory creation mode to pw.conf(5) and be a bitLukas Ertl2007-03-306-9/+38
| | | | more specific about the effect of the current umask on -M.
* Add -M argument to usage() output.Lukas Ertl2007-03-301-0/+2
|
* Introduce the new option -M to allow to set the permissions ofLukas Ertl2007-03-263-8/+31
| | | | | | | | the user's newly created home directory. If omitted, it's derived from the current umask. PR: bin/16880, bin/83253 (partially), bin/104248 MFC in: 1 month
* Check if the new user already exists right after entering theLukas Ertl2007-03-261-2/+8
| | | | username instead of watching the final call to pw(8) fail.
* Flush my typo fix queue for this directory.Ceri Davies2006-12-052-2/+2
|
* Fix typos.Ceri Davies2006-12-052-3/+3
|
* Better mdoc(7). Bump doc date.Tom Rhodes2006-10-091-3/+3
| | | | Kicked by: ru
* Note the naming convention of files in share/skel and explain the "dot"Tom Rhodes2006-10-091-0/+8
| | | | | | prefix is removed. PR: 103828
* Markup fixes.Ruslan Ermilov2006-09-291-2/+2
|
* 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
* 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
* Honour the "uuid" directive in adduser.confMatteo Riondato2006-01-221-1/+4
| | | | | | PR: conf/87914 Approved by: philip (mentor) MFC after: 3 days
* 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
* 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
|
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
|