Statistics
| Branch: | Tag: | Revision:

root / tools / users-setup.in @ cdd27f7f

History | View | Annotate | Download (651 Bytes)

1 cdd27f7f Michele Tartara
#!/bin/sh
2 cdd27f7f Michele Tartara
#Create common groups
3 cdd27f7f Michele Tartara
addgroup --system @GNTDAEMONSGROUP@
4 cdd27f7f Michele Tartara
addgroup --system @GNTADMINGROUP@
5 cdd27f7f Michele Tartara
6 cdd27f7f Michele Tartara
#Create user-specific groups
7 cdd27f7f Michele Tartara
addgroup --system @GNTMASTERUSER@
8 cdd27f7f Michele Tartara
addgroup --system @GNTRAPIUSER@
9 cdd27f7f Michele Tartara
addgroup --system @GNTCONFDUSER@
10 cdd27f7f Michele Tartara
11 cdd27f7f Michele Tartara
#Create users
12 cdd27f7f Michele Tartara
adduser --system --ingroup @GNTMASTERDGROUP@ @GNTMASTERUSER@
13 cdd27f7f Michele Tartara
adduser --system --ingroup @GNTRAPIGROUP@ @GNTRAPIUSER@
14 cdd27f7f Michele Tartara
adduser --system --ingroup @GNTCONFDGROUP@ @GNTCONFDUSER@
15 cdd27f7f Michele Tartara
adduser --system @GNTNODEDUSER@
16 cdd27f7f Michele Tartara
17 cdd27f7f Michele Tartara
#Add users to extra groups
18 cdd27f7f Michele Tartara
for u in @GNTMASTERUSER@ @GNTCONFDUSER@ @GNTRAPIUSER@
19 cdd27f7f Michele Tartara
do
20 cdd27f7f Michele Tartara
  adduser $u @GNTDAEMONSGROUP@
21 cdd27f7f Michele Tartara
done
22 cdd27f7f Michele Tartara
23 cdd27f7f Michele Tartara
for u in @GNTMASTERUSER@ @GNTRAPIUSER@
24 cdd27f7f Michele Tartara
do
25 cdd27f7f Michele Tartara
  adduser $u @GNTADMINGROUP@
26 cdd27f7f Michele Tartara
done