Results 51 to 61 of 61
-
04-22-2004, 06:44 AM #51Newbie
- Join Date
- Apr 2004
- Posts
- 5
ok...
OK i did this...
all of the code from the first page...
but the blocking certain ip's form ssh.. didnt wanna go that far...
BUT when it rebooted... i couldnt connect via ssh...
could ping all day but i had to have the host disable iptables so i could get in...
What can i show you to get some help...
-
06-11-2004, 01:52 AM #52Web Hosting Master
- Join Date
- Feb 2003
- Posts
- 560
Its also a good idea to lock down the compilers:
Disable Compilers:
chmod 000 /usr/bin/*cc*
Enable:
chmod 700 /usr/bin/*cc*
Hope that helps too!
-
06-13-2004, 08:11 AM #53Newbie
- Join Date
- Feb 2004
- Posts
- 15
(2)use the below script to mail the sysadmin to when another user with uid 0 is created
=========================================
The below script will mail user when another user with uid 0 is added
-------------------------script----------------------------------
#!/bin/sh
#
# This script must be owned by root or at least setuid 0
# It will scan the system and mail the root user when another user gains uid 0.
for id in `awk 'FS=":" {if(($3 == 0 && $1 != "root" )) \
print $1}' /etc/passwd`
do
echo 'ALERT Login ID' `echo ${id}` 'has uid 0 !!' `date "+Detected On Date :%D Time :%r"` | mail -s "ALERT: User `echo ${id}` has UID O" blessen@blessen.com
done
-----------------------------------------------------------------
========================================================
What shall you call this file and where should it be stored
-
06-18-2004, 10:50 PM #54Originally posted by xathras
What shall you call this file and where should it be storedTom Whiting, WHMCS Guru extraordinaire
Linux problems? WHMCS Problems? Give me a shout
Check out my WHMCS Addons
-
06-30-2004, 02:56 AM #55Junior Guru Wannabe
- Join Date
- Jun 2004
- Posts
- 46
I followed your tutorial, except for the DENYing SSH access (I never know what IP or DNS i'll be logging in from) proceded to reboot my server - and now it appears to be down permnantly, no access is able to get in from the ouside.. any ideas? it has been down for 20 minutes now...
-
06-30-2004, 03:38 AM #56
This is something that I use on all servers I manage (I wouldn't recommend, or write something that I don't ) and I've never had it cause any problems except for the complaints about not being able to ping it.
As far as why it is down and not returning, have the DC hook a console up to it, more information can always be obtained that way.Tom Whiting, WHMCS Guru extraordinaire
Linux problems? WHMCS Problems? Give me a shout
Check out my WHMCS Addons
-
06-30-2004, 03:55 AM #57Problem Solver
- Join Date
- Mar 2003
- Location
- California USA
- Posts
- 13,681
It might be doing a FSCK/
Steven Ciaburri | Industry's Best Server Management - Rack911.com
Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance
-
06-30-2004, 04:40 AM #58Junior Guru Wannabe
- Join Date
- Jun 2004
- Posts
- 46
well - I called the datacenter, they said the server was hung on a process - reboot, and it's running fine... cest la vie, hopefully that problem won't come up again.
-
07-01-2004, 10:05 PM #59Web Hosting Master
- Join Date
- Feb 2003
- Location
- Potsdam, NY
- Posts
- 648
Gecko been screwing the TAU server? Too much lizard porn
-
07-01-2004, 11:56 PM #60Junior Guru Wannabe
- Join Date
- Jun 2004
- Posts
- 46
lol, no 2uantum, I don't really work at TAU anymore.. although I still keep my stash of lizard porn on there.
-
08-28-2004, 04:15 PM #61Temporarily Suspended
- Join Date
- Aug 2004
- Posts
- 49
Thankyou. All of these tips worked on my server without flaws.