Dies ist eine alte Version des Dokuments!
Jeder CentOS 7-Server mit Minimal-Installation aufgesetzt
Bei internen Servern wird SELinux von enforcing auf disabled umgestellt. Reboot erforderlich.
[root@server]# vi /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of three two values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted
[root@virtserv]# useradd -u 1010 -m backuppc [root@virtserv]# su - backuppc [backuppc@virtserv ~]$ ssh scheffe@backuppc4 The authenticity of host 'backup (192.168.213.140)' can't be established. RSA key fingerprint is 8f:a7:68:fc:79:0d:ee:aa:f9:12:0d:94:9f:a6:df:de. Are you sure you want to continue connecting (yes/no)? no Host key verification failed. [backuppc@virtserv ~]$ cd .ssh/ [backuppc@virtserv .ssh]$ vi authorized_keys ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEArYzOt9RYxEvLeZ2s1pr94f1AaS6ebhol3fi+oZasUBIJezVK29dX6t+i+U0cejxr+mR8wCHfQHB02iOyxQ6fk0jn119UuViqFwSVpTIpQRl61MoZFnpThbwHihPsmggHATnuGn7V0F5ZN/9szh2OZDuqnP3rS7e7kr/wqgwNqcoBTSZSCv88WPR8k4sdNdqWS9WruEUVIwtMbwz/NH0OVpOYvDWi4LzLVhc9rTLTU1ShfpEQDbrv5Lhfcl273eHpXdF1eH3SlqhJbciRuFR9sL6pUsSXFUncuGQOK8xBx9nt4D5qEuPX2Lhf/3MXcgld1CeafaXJK5N47cTLc7BFgw== backuppc@backup.lan.klotzbuecher.biz [backuppc@virtserv .ssh]$ chmod 600 authorized_keys
folgendes in /etc/postfix/main.cf am Ende hinzufügen. Dadurch kann der Server Mails am Mailserver einwerfen, jedoch keine empfangen.
mydomain = lan.klotzbuecher.biz myhostname = server.lan.klotzbuecher.biz myorigin = $mydomain mynetworks = 127.0.0.0/8 smtp_generic_maps = hash:/etc/postfix/generic smtp_tls_security_level = may relayhost = mailserv.lan.klotzbuecher.biz
cat /etc/sudoers.d/backuppc # Allows backuppc to do backups and restores # BackupPC 3 #backuppc ALL=NOPASSWD: /usr/bin/rsync --server * # BackupPC 4 backuppc ALL=NOPASSWD: /usr/bin/rsync *
Globale Einstellungen für vim können in der /etc/vim/vimrc durcgeführt werden.
Passt die Farben für dunklen Hintergrund an.
set background=dark