Commit Graph

11 Commits

Author SHA1 Message Date
Philippe Grégoire 0e3c7545cc
__user_groups: Support OpenBSD
OpenBSD's usermod(8) interface is similary to NetBSD's.
This commit makes __user_groups support it explicitly.

https://man.openbsd.org/usermod.8
http://netbsd.gw.com/cgi-bin/man-cgi?usermod++NetBSD-current
2017-08-27 08:58:16 -04:00
Nico Schottelius 260303dd14 Fix gpasswd call in __user_groups: order incorrect
From the manpage:

       -a, --add user
           Add the user to the named group.

       -d, --delete user
           Remove the user from the named group.
2017-08-03 15:11:35 +02:00
Darko Poljak 62378dc8b9 Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
Andres Erbsen 493c8d61f4 __user_groups: refactor, support FreeBSD 2016-09-11 22:28:51 -04:00
Jonathan A. Kollasch 90fe1bf6c9 add some NetBSD support in __user_groups 2015-10-15 10:53:56 -05:00
Daniel Heule b2aeceae91 minor optimisation ... 2015-05-11 10:18:27 +02:00
Daniel Heule e89ca14e66 autodedtection of old usermod implementations ... 2015-05-11 09:06:27 +02:00
Daniel Heule 56168cda65 fix for older linuxes where gpasswd doesn't have the relevant options ... 2015-05-08 14:21:39 +02:00
Daniel Heule 62bd5898aa fix for older linuxes where gpasswd doesn't have the relevant options ... 2015-05-08 14:08:53 +02:00
Daniel Heule 3c52710763 little changes for using default parameters correctly 2014-02-03 21:43:39 +01:00
Steven Armstrong 28e8632097 new type: __user_group: manage user groups
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-11-16 15:31:33 +01:00