Documentation updates.
This commit is contained in:
parent
835d392f0c
commit
1fafe877e8
1 changed files with 8 additions and 3 deletions
|
|
@ -10,7 +10,9 @@ A user account consists of a directory under `etc/users/` that contains files wi
|
||||||
% cat etc/users/uriel/password
|
% cat etc/users/uriel/password
|
||||||
mypass
|
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.
|
The group 'admin' is 'built-in' and any members in that group will have admin privileges for most werc apps by default.
|
||||||
|
|
||||||
|
|
@ -20,8 +22,9 @@ Example
|
||||||
To create a user called [glenda](http://glenda.cat-v.org) that is a member of the group `rabbits` you can do:
|
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/
|
% mkdir etc/users/glenda/
|
||||||
% echo passw > etc/user/glenda/password
|
% echo carrot > etc/user/glenda/password
|
||||||
% echo glenda >> etc/users/rabbits
|
% mkdir -p etc/users/rabbits
|
||||||
|
% echo glenda >> etc/users/rabbits/members
|
||||||
|
|
||||||
Utils
|
Utils
|
||||||
-----
|
-----
|
||||||
|
|
@ -29,3 +32,5 @@ Utils
|
||||||
The script at bin/aux/addwuser.rc allows you to even more trivially add users.
|
The script at bin/aux/addwuser.rc allows you to even more trivially add users.
|
||||||
|
|
||||||
addwuser.rc user_name user_pass [groups ...]
|
addwuser.rc user_name user_pass [groups ...]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue