Commit Graph

20 Commits

Author SHA1 Message Date
Jake Guffey 1116bcc504 Migrate from useradd/usermod to pw
useradd/usermod don't exist in freebsd.
2012-08-14 08:39:33 -04:00
Jake Guffey 6264a9b718 Don't use shadow passwords on FreeBSD
shadow database doesn't exist by default in FreeBSD -- use "passwd" database
2012-06-20 17:22:19 -04:00
Sébastien Gross 61030f1c18 Remove local variables statements.
Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
2012-06-19 10:55:50 +02:00
Sébastien Gross d591b5f2be Do not use global variable.
Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
2012-06-19 10:29:20 +02:00
Sébastien Gross 2a20b01a3f Shorten option for both useradd and usermod.
We need to shorten options for both usermod and useradd since on some
systems (such as *BSD, Darwin) those commands do not handle GNU style long
options.

Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
2012-06-18 17:54:19 +02:00
Matt Coddington 908e74689c improve comments and use better variable names 2012-02-07 12:38:21 -05:00
Matt Coddington 4d845b3fea fix for changing a user's group by name 2012-02-07 10:27:28 -05:00
Matt Coddington bf1f6add55 bugfix for shadow field number 2012-02-06 15:23:38 -05:00
Nico Schottelius 3818548d9a find conf/type -type f -exec sed -i 's/ *$//' {} \;
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-09 16:30:52 +01:00
Steven Armstrong e978542381 safer quoting
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-08-02 15:22:24 +02:00
Nico Schottelius 3c37ac0b0f do not fail if nothing todo (__user and __group)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-04-06 22:24:11 +02:00
Nico Schottelius 785ec3f36f sort fields by alphabet
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-04-04 13:20:22 +02:00
Nico Schottelius db425d3925 use property, not key anymore
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-04-04 10:59:04 +02:00
Nico Schottelius 4b76d8a7e0 __user: remove =~, cleanup and beautify, replace cut with awk
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-04-04 10:45:41 +02:00
Nico Schottelius c601298760 gencode -> gencode-remote in types
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-19 23:39:01 +01:00
Steven Armstrong cef58ae85f handle numeric group id as well as group name for consistency with usermod|groupmod
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-18 23:37:10 +01:00
Steven Armstrong 58718f735a use getent to get entry from shadow database
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-15 23:35:55 +01:00
Steven Armstrong 4432b476d0 __user: only set password if it changed
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-15 23:26:24 +01:00
Steven Armstrong 1518bf1935 __user: only run commands if value has changed
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-15 23:11:01 +01:00
Steven Armstrong a9d0bfee16 new type __user
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-15 16:47:40 +01:00