summaryrefslogtreecommitdiffstats
path: root/pw/tests/pw_userdel.sh
Commit message (Collapse)AuthorAgeFilesLines
* Do not try to delete the home of the user if is is not a directory for exampleBaptiste Daroussin2016-07-231-0/+9
| | | | | | | | | "/dev/null" PR: 211195 Submitted by: rday <ryan@ryanday.net> Reported by: eniorm <eniorm@gmail.com> MFC after: 1 day
* Rewrite parsing subcommands arguments of pw(8)Baptiste Daroussin2015-08-021-1/+1
| | | | | | | | | | | | | Now each subcommands checks its arguments in a dedicated functions. This helps improving input validation, code readability/maintainability While here: - Add a -y option to pw userdel/usermod so it can maintain NIS servers if nispasswd is not defined in pw.conf(5) - Allow pw -r <rootdir> to remove directory with userdel -r - Fix bug when renaming a user which was not renaming the user name it groups it is a member of. - Only parse pw.conf(5) when needed.
* when -n is passed to any pw subcommand it is always expected to be considered asBaptiste Daroussin2015-07-281-0/+10
| | | | | | | | a name so do not try to convert it to an id if it is a numeric value PR: 31933 Reported by: ted@impulse.net Sponsored by: gandi.net
* Ensure skeldir is abolute path (relatively to the rootdir)Baptiste Daroussin2015-07-121-1/+1
|
* pw -R <rootdir> userdel can now cleanup installationBaptiste Daroussin2015-07-121-0/+20
| | | | | | | Rewrite rm_r to use *at function, allowing to remove home directories along with users. only crontabs and at(1) installation are not removed Relnotes: yes
* Break out the tests into a file per command and clean up some long linesBrad Davis2014-12-091-0/+37
Approved by: will