Statistics
| Branch: | Tag: | Revision:

root / tools / users-setup.in @ d34b3b8e

History | View | Annotate | Download (753 Bytes)

1
#!/bin/sh
2
#Create common groups
3
addgroup --system @GNTDAEMONSGROUP@
4
addgroup --system @GNTADMINGROUP@
5

    
6
#Create user-specific groups
7
addgroup --system @GNTMASTERUSER@
8
addgroup --system @GNTRAPIUSER@
9
addgroup --system @GNTCONFDUSER@
10
addgroup --system @GNTMONDUSER@
11

    
12
#Create users
13
adduser --system --ingroup @GNTMASTERDGROUP@ @GNTMASTERUSER@
14
adduser --system --ingroup @GNTRAPIGROUP@ @GNTRAPIUSER@
15
adduser --system --ingroup @GNTCONFDGROUP@ @GNTCONFDUSER@
16
adduser --system --ingroup @GNTMONDGROUP@ @GNTMONDUSER@
17
adduser --system @GNTNODEDUSER@
18

    
19
#Add users to extra groups
20
for u in @GNTMASTERUSER@ @GNTCONFDUSER@ @GNTRAPIUSER@ @GNTMONDUSER@
21
do
22
  adduser $u @GNTDAEMONSGROUP@
23
done
24

    
25
for u in @GNTMASTERUSER@ @GNTRAPIUSER@
26
do
27
  adduser $u @GNTADMINGROUP@
28
done