Groups are now simply users with a /members file with one member per file.

This commit is contained in:
Uriel 2009-02-28 13:27:16 +00:00
parent 8c932c3a55
commit 835d392f0c
2 changed files with 6 additions and 4 deletions

View file

@ -26,6 +26,8 @@ mkdir etc/users/$user_name
echo $user_pass > etc/users/$user_name/password
if(! ~ $#user_groups 0)
for(g in $user_groups)
echo $user_name >> etc/groups/$g
for(g in $user_groups) {
mkdir -p etc/users/$g
echo $user_name >> etc/users/$g/members
}