#!/bin/bash # script standardizes /etc/ssh/sshd_config, /etc/vsftpd.conf and removes oracle from /etc/ftpusers # jm - 25jul05 ##### # VALID /etc/vsftpd.conf # write_enable=YES # dirmessage_enable=YES # local_enable=YES # syslog_enable=YES # connect_from_port_20=YES # pam_service_name=vsftpd #################### cp /etc/vsftpd.conf /etc/vsftpd.conf-ORIG echo "## see /etc/vsftpd.conf-ORIG for comments - this file config info only" > /etc/vsftpd.conf echo "write_enable=YES" >> /etc/vsftpd.conf echo "dirmessage_enable=YES" >> /etc/vsftpd.conf echo "local_enable=YES" >> /etc/vsftpd.conf echo "syslog_enable=YES" >> /etc/vsftpd.conf echo "connect_from_port_20=YES" >> /etc/vsftpd.conf echo "pam_service_name=vsftpd" >> /etc/vsftpd.conf ##### ##### ##### ##### cp /etc/ssh/sshd_config /etc/ssh/sshd_config-ORIG ##### # --> cat /etc/ssh/sshd_config | grep -v ^# | grep -v ^$ # PasswordAuthentication yes # X11Forwarding yes # UsePrivilegeSeparation yes # Subsystem sftp /usr/lib64/ssh/sftp-server #################### # penguin1: --> cat /etc/ssh/sshd_config | grep -v ^# | grep -v ^$ # PermitRootLogin yes # X11Forwarding yes # X11DisplayOffset 10 # UsePrivilegeSeparation yes # Subsystem sftp /usr/lib64/ssh/sftp-server #################### |
The Art of Linux System Administration published by O'Reilly Media Study Guide for the LPIC-2 Certification Exams |
Wagoneers FULL SIZE JEEPS JeepMeister "Jeep is America's -Enzo Ferrari MeisterTech Diesels + |
One Page Overview of Linux Commands click for an image of the 5 essential Linux commands An Intro to Linux |
at Midway Auto on SR9 in Snohomish, or at Northland Diesel in Bellingham, WA |