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

@ -29,8 +29,8 @@ fn check_user {
_status=$status
if(! ~ $"_status '')
_status=(Not logged in: $"_status)
if not if(! ~ $#* 0 && ! grep -s '^'^$logged_user^'$' etc/groups/$* etc/groups/admin)
_status=(User $logged_user not in groups $*)
if not if(! ~ $#* 0 && ! ~ $logged_user $* && ! grep -s '^'^$logged_user^'$' etc/users/$*/members etc/users/admin/members >[2]/dev/null)
_status=(User $logged_user not in: $*)
status=$_status
}