ref: f4a38285503bec14e2fef24416ba97d2383da590
parent: 902d9d88e618ff8e50262d22f8a0f78c5010dc25
author: sl <uriel@engel.se.cat-v.org>
date: Sat Feb 28 09:02:34 EST 2009
Documentation updates.
--- a/sites/werc.cat-v.org/docs/user_management.md
+++ b/sites/werc.cat-v.org/docs/user_management.md
@@ -10,8 +10,10 @@
% cat etc/users/uriel/password
mypass
-Groups consists of files named after the group name stored in `etc/groups/`, containing the names of the group members, one per line.
+Users and groups share the same namespace, you can create a group the same way you create a user but instead of a 'password' file adding a 'members' file containing the names of the group members, one per line.
+A 'user-group' directory can contain both a password and members file, in which case it will act concurrently as a user and as a group.
+
The group 'admin' is 'built-in' and any members in that group will have admin privileges for most werc apps by default.
Example
@@ -20,8 +22,9 @@
To create a user called [glenda](http://glenda.cat-v.org) that is a member of the group `rabbits` you can do:
% mkdir etc/users/glenda/
- % echo passw > etc/user/glenda/password
- % echo glenda >> etc/users/rabbits
+ % echo carrot > etc/user/glenda/password
+ % mkdir -p etc/users/rabbits
+ % echo glenda >> etc/users/rabbits/members
Utils
-----
@@ -29,3 +32,5 @@
The script at bin/aux/addwuser.rc allows you to even more trivially add users.
addwuser.rc user_name user_pass [groups ...]
+
+