Groups are now simply users with a /members file with one member per file.
This commit is contained in:
parent
8c932c3a55
commit
835d392f0c
2 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue