Find all SUID/SGID programs on your system, and keep track of what they are, so you are aware of any changes which could indicate a potential intruder. Use the following command to find all SUID/SGID programs on your system:
root# find / -type f \( -perm -04000 -o -perm -02000 \)
Example
#find / -type f \( -perm -04000 -o -perm -02000 \)
/usr/bin/wall
/usr/bin/newgrp
/usr/bin/chage
/usr/bin/chfn
/usr/bin/chsh
/usr/bin/expiry
/usr/bin/gpasswd
/usr/bin/passwd
….
….
……..
You can remove the SUID or SGID permissions on a suspicious program with chmod, then restore them back if you absolutely feel it is necessary.
Installing Parallels Plesk Panel on Linux and FreeBSD
To install Parallels Plesk Panel software on a server
1. Download the Parallels Products Installer utility that suits your operating system from http://www.parallels.com/en/download/plesk9/ and save it on your server’s hard drive.
2. Change your working directory to the directory where the Parallels Products Installer utility resides, for example:
3. Set the execution permission for Parallels Products Installer:
# chmod +x parallels_products_installer_file_name
4. Run the Parallels Products Installer:
# ./parallels_products_installer_file_name
5. Read installation notes displayed on the screen and type ‘n’ to proceed to the next screen. Press ENTER.
Log in to the Parallels Plesk Panel running on your host at https://machine.domain.name:8443/ or https://IP-address:8443/. Use the username ‘admin’ and password ’setup’ (both are case sensitive). For security reasons, change the password upon initial login.
Requirements:
Before installing Parallels Plesk Panel on FreeBSD, you should add the ‘kern_securelevel_enable=”NO”‘ entry to the /etc/rc.conf file on your server’s file system, and then restart your server.
Plesk Directories that usually take much disk space
/var/www/vhosts (/srv/vhosts on SuSE) - domains.
/var/qmail - mail.
/var/lib/mysql - Mysql databases.
/var/lib/psa/dumps - Plesk clients’/domains’ backups.
/var/lib/pgsql/data - Postgres databases.
/var/tomcat* - Tomcat applications.
/var/lib/mailman - Mailman lists.
Please check file /etc/psa/psa.conf for all other directories used by Plesk control panel.
Plesk Contorl Panel under FreeBSD uses the /usr/local partition for storing large quantity of data and /var/db partition for databases.
So the /usr and /var partitions have to be larger in this case.
On Debian and Ubuntu, Plesk itself is located in /opt/psa.
DirectAdmin Installation
Control panel for web hosting companies running Red Hat 7.x, 8.x, 9.x, Red Hat Enterprise and FreeBSD.
Requirements
- Clean OS install
- At least one external IP address (NAT/LAN-based systems will NOT work)
- SSH installed, gcc and g++ installed
- Client account at https://www.directadmin.com/clients
Installation!
You *have* to add “AllowUsers username” to /etc/ssh/sshd_config before you log out from root or you’ll lose root on the server forever, and you’ll have to format.
Login as root and download the setup.sh file
# wget http://www.directadmin.com/setup.sh
Use “fetch” instead of “wget” on FreeBSD systems.
Change permissions on the setup.sh file
Run the setup script!
You will be prompted for a client ID number, license ID number, and hostname.
Important: The hostname should not be the same as the primary domain name. e.g. example.com is not a good hostname, where server.example.com is. Having the same host/main domain name will cause e-mail and FTP problems. Also, please make sure the hostname resolves once you setup DNS.