Version 1 (modified by 9 years ago) (diff) | ,
---|
Default CentOS 7 configuration
#Install default packages $ yum update $ yum install docker $ yum install collectd $ yum install mailx #Create sysop users $ useradd sanmai $ usermod -aG wheel sanmai $ useradd dietuyt $ usermod -aG wheel dietuyt $ useradd wilelb $ usermod -aG wheel wilelb #Set passwords for the users: passwd <user> #Configure sshd #no root login PermitRootLogin no #no username/password login PasswordAuthentication no #forward mail from root to sysops@clarin.eu $ echo “root: sysops@clarin.eu” >> /etc/aliases $ newaliases $ service postfix restart #test the configuration $ echo test | mail -s "test message" root ##Sudo configuration (visudo) #Host_Alias LOCAL=localhost,lvps92-51-161-129.dedicated.hosteurope.de User_Alias ADMINS = sanmai,wilelb,dietuyt ## Administrators ADMINS ALL=(ALL) /bin/su
Auto start service on boot
systemctl enable httpd.service