-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
784d0bb
commit eb5dc68
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Adapted from "Linux Programmer's Manual" group(5) | ||
# group - user group file | ||
package group | ||
|
||
type Grammar Peg {} | ||
|
||
group <- (entry '\n')* !. | ||
|
||
# There is one entry per line, with the following format: | ||
# group_name:password:GID:user_list | ||
entry <- group_name ':' password ':' GID ':' user_list | ||
|
||
# group_name the name of the group. | ||
group_name <- (![:\n].)+ | ||
|
||
# password the (encrypted) group password. If this field is empty, no password is needed. | ||
password <- _shadow &':' / _null / _encrypted_password | ||
_encrypted_password <- (![:\n].)+ | ||
_null <- &':' | ||
_shadow <- 'x' | ||
|
||
# GID the numeric group ID. | ||
GID <- [0-9]+ | ||
|
||
# user_list a list of the usernames that are members of this group, separated by commas. | ||
user_list <- (_user (',' _user)*)? | ||
_user <- [a-z0-9._\-]+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters