Changes between Initial Version and Version 1 of SystemAdministration/Default_VM_setup


Ignore:
Timestamp:
11/10/15 07:49:00 (9 years ago)
Author:
Willem Elbers
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SystemAdministration/Default_VM_setup

    v1 v1  
     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
     21PermitRootLogin no
     22#no username/password login
     23PasswordAuthentication 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
     35User_Alias     ADMINS = sanmai,wilelb,dietuyt
     36## Administrators
     37ADMINS  ALL=(ALL) /bin/su
     38}}}
     39
     40Auto start service on boot
     41{{{
     42systemctl enable httpd.service
     43}}}