diff options
| author | dduvall <none@none> | 2008-03-28 16:15:08 -0700 |
|---|---|---|
| committer | dduvall <none@none> | 2008-03-28 16:15:08 -0700 |
| commit | a4e703601c0d75298c6e1fb6c2617c37ec86bf33 (patch) | |
| tree | 2f4b8bbd9cfa874a615c8fa67d7b3248c9981a4c /usr/src | |
| parent | 67d4b2f88b8e27bb035d67a046d5aad7db3bfc71 (diff) | |
| download | illumos-joyent-a4e703601c0d75298c6e1fb6c2617c37ec86bf33.tar.gz | |
6681742 need to add games group and /var/games
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/Targetdirs | 1 | ||||
| -rw-r--r-- | usr/src/cmd/Adm/group | 1 | ||||
| -rw-r--r-- | usr/src/pkgdefs/SUNWcsr/prototype_com | 1 | ||||
| -rw-r--r-- | usr/src/pkgdefs/common_files/i.group | 17 | ||||
| -rw-r--r-- | usr/src/tools/protocmp/stdusers.c | 1 |
5 files changed, 21 insertions, 0 deletions
diff --git a/usr/src/Targetdirs b/usr/src/Targetdirs index 8f847e85e1..e038856497 100644 --- a/usr/src/Targetdirs +++ b/usr/src/Targetdirs @@ -319,6 +319,7 @@ ROOT.BIN= \ /usr/xpg4/lib \ /usr/xpg6 \ /usr/xpg6/bin \ + /var/games \ /var/ld \ /var/news \ /var/preserve \ diff --git a/usr/src/cmd/Adm/group b/usr/src/cmd/Adm/group index 0061cbf7ab..2e056fbf81 100644 --- a/usr/src/cmd/Adm/group +++ b/usr/src/cmd/Adm/group @@ -11,6 +11,7 @@ nuucp::9:root staff::10: daemon::12:root sysadmin::14: +games::20: smmsp::25: gdm::50: mysql::70: diff --git a/usr/src/pkgdefs/SUNWcsr/prototype_com b/usr/src/pkgdefs/SUNWcsr/prototype_com index 21df5b74d4..c187346702 100644 --- a/usr/src/pkgdefs/SUNWcsr/prototype_com +++ b/usr/src/pkgdefs/SUNWcsr/prototype_com @@ -447,6 +447,7 @@ e preserve var/adm/utmpx 644 root bin e preserve var/adm/wtmpx 644 adm adm d none var/audit 755 root sys d none var/cron 755 root sys +d none var/games 755 root bin d none var/idmap 755 daemon daemon d none var/inet 755 root sys d none var/ld 755 root bin diff --git a/usr/src/pkgdefs/common_files/i.group b/usr/src/pkgdefs/common_files/i.group index 421fb71c08..04e943e57c 100644 --- a/usr/src/pkgdefs/common_files/i.group +++ b/usr/src/pkgdefs/common_files/i.group @@ -198,6 +198,23 @@ do "$MYSQLGROUP_LINE" | ed -s $dest > /dev/null fi # + # Add the 'games' group if it doesn't already exist. + # + GAMESGROUP_LINE="games::20:" + cur_name=`awk -F: '$3 == 20 {print $1}' $dest` + cur_id=`awk -F: '$1 == "games" {print $3}' $dest` + if [ ! -z "$cur_name" -a "$cur_name" != "games" ]; then + echo "ERROR: Reserved GID 20 already assigned" \ + "to '$cur_name'" >> /tmp/CLEANUP + elif [ ! -z "$cur_id" -a "$cur_id" != "20" ]; then + echo "NOTE: games group already assigned" \ + "to id '$cur_id'" >> /tmp/CLEANUP + elif grep "$GAMESGROUP_LINE" $dest 2>&1 >/dev/null; then + : + else + printf '/^smmsp::25:\ni\n%s\n.\nw\nq\n' \ + "$GAMESGROUP_LINE" | ed -s $dest > /dev/null + fi fi done exit 0 diff --git a/usr/src/tools/protocmp/stdusers.c b/usr/src/tools/protocmp/stdusers.c index 496db1f254..6feba55b85 100644 --- a/usr/src/tools/protocmp/stdusers.c +++ b/usr/src/tools/protocmp/stdusers.c @@ -66,6 +66,7 @@ const struct stdlist groupnames[] = { { "staff", 10 }, { "daemon", 12 }, { "sysadmin", 14 }, + { "games", 20 }, { "smmsp", 25 }, { "gdm", 50 }, { "mysql", 70 }, |
