| 1 | = Default CentOS 7 configuration = |
| 2 | |
| 3 | {{{ |
| 4 | #Install default packages |
| 5 | $ yum update |
| 6 | $ yum install docker |
| 7 | $ yum install collectd |
| 8 | $ yum install mailx |
| 9 | |
| 10 | #Create sysop users |
| 11 | $ useradd sanmai |
| 12 | $ usermod -aG wheel sanmai |
| 13 | $ useradd dietuyt |
| 14 | $ usermod -aG wheel dietuyt |
| 15 | $ useradd wilelb |
| 16 | $ usermod -aG wheel wilelb |
| 17 | #Set passwords for the users: passwd <user> |
| 18 | |
| 19 | #Configure sshd |
| 20 | #no root login |
| 21 | PermitRootLogin no |
| 22 | #no username/password login |
| 23 | PasswordAuthentication no |
| 24 | |
| 25 | #forward mail from root to sysops@clarin.eu |
| 26 | $ echo “root: sysops@clarin.eu” >> /etc/aliases |
| 27 | $ newaliases |
| 28 | $ service postfix restart |
| 29 | |
| 30 | #test the configuration |
| 31 | $ echo test | mail -s "test message" root |
| 32 | |
| 33 | ##Sudo configuration (visudo) |
| 34 | #Host_Alias LOCAL=localhost,lvps92-51-161-129.dedicated.hosteurope.de |
| 35 | User_Alias ADMINS = sanmai,wilelb,dietuyt |
| 36 | ## Administrators |
| 37 | ADMINS ALL=(ALL) /bin/su |
| 38 | }}} |
| 39 | |
| 40 | Auto start service on boot |
| 41 | {{{ |
| 42 | systemctl enable httpd.service |
| 43 | }}} |