eos_mgm_setup.sh 745 Bytes
Newer Older
1
#!/usr/bin/env bash
2
3
4

source /etc/sysconfig/eos

jmakai's avatar
jmakai committed
5
chown daemon:daemon /etc/eos.krb5.keytab
6
7
8
9
10
11
12
13

if [ -e /opt/eos/xrootd/bin/xrootd ]; then
   XROOTDEXE="/opt/eos/xrootd//bin/xrootd"
else
   XROOTDEXE="/usr/bin/xrootd"
fi

${XROOTDEXE} -n mgm -c /etc/xrd.cf.mgm -m -l /var/log/eos/xrdlog.mgm -b -Rdaemon
14

15
# Enable sss authentication for the FSTs to connect to the MGM
16
eos -b vid enable sss
17
eos -b vid enable krb5
18
19
# Allow commands executed from the FSTs to change to root role
eos -b vid set membership 2 +sudo
20
21
22

# Make instace root directory world accessible
eos -b chmod 2777 /eos/dockertest/
23
24

# let the force be with admin1 (typically krb-authenticated on clients)
25
adduser admin1
26
eos -b vid set membership admin1 +sudo
27
eos -b space define default 8 1