Securing Ubuntu
Securing Ubuntu
SUID stands for Set User ID. This means that if the
SUID bit is set for any application then your user ID
would be set as that of the owner of application/file
rather than the current user, while running that
application. That means in case I have an
application whose owner is ' root ' and it has its
SUID bit set, then when I run this application as a
normal user, that application would still run as root.
Since the SUID bit tells Linux that the the User ID
root is set for this application and whenever this
application executes it must execute as if root was
executing it (since root owns this file). Disabling this
for a drive prevents this operation.
2. Physical Security
Typically used in lab environments or where a
server in not in a completely secured location.
1. Configure BIOS.
· Disable booting from CDs/DVDs, floppies, and
external devices.
· Set BIOS password to protect the settings.
2. Set a password for the GRUB bootloader.
· Generate a password hash using the
command / /usr/sbin/grub-md5-crypt. Add the hash to
the first line of /boot/grub/menu.lst as follows:
password --md5 passwordhash
· Remove rescue-mode boot section from
/boot/grub/menu.lst
#!/bin/sh
/usr/bin/apt-get update
for NTP
Create the file /etc/cron.d/ntp with the following line:
15 * * * * root /usr/sbin/ntpdate server
· PermitRootLogin no
· Protocol 2
· AllowGroups sshusers
· Set permissions
vi /etc/pam.d/common-password
change the detail from this:
password requisite pam_unix.so nullok obscure md5
to
password requisite pam_unix.so nullok obscure md5
min=8
Change min=8 with your company password policy
length.
- Edit /etc/php.ini
จำกเว็บไซต์
http://www.nessus.org/download/nessus_download.php
ไฟล์มีขนำด
จำกนั้นเข้ำ Terminal
# killall nessusd
# max_host = 20 ใน ลินก
ุ ซ์ ถ้ำในวินโดวส์ 19 พอ
# /opt/nessus/sbin/nessus-update-plugins
# /opt/nessus/bin/nessus-fetch --check
ปิ ดกำรทำำงำน iPV6
http://www.webupd8.org/2009/11/how-to-disable-ipv6-
in-ubuntu-910.html
GRUB_CMDLINE_LINUX=”ipv6.disable=1”
# apt-get update
ติดตั้ง phpmyadmin
# apt-get install phpmyadmin
# /etc/init.d/apache2 restart
# apt-get update
# mkdir /ssl-key
Cd /ssl-key
ข้อม่ลจำก
http://www.oknation.net/blog/itlabour/2009/04/04/entry-1
Server www.rangsun.test:443