Security :: Script To Monitor Sizes Of List Of Files And Send Alert If Size Changes?

Mar 28, 2011

I am looking for a utility that would do the following:1. Be run manually on a list of files whose sizes should not change, to get a control file containing the sizes of each file.2. Subsequent manual runs would report any changes in size of any of the files in the list, and allow option to accept the new sizes.3. Be run as a cron job to check for changes in the file sizes and send an email alert if a change has occurred since the last time it was run.The purpose is to detect possible hacks of key files on a website. It would not include files expected to change, but just those that should not change. It would be run manually a few times to get the control list one wants to monitor.

View 3 Replies


ADVERTISEMENT

CentOS 5 :: Check Directory For New Files And Send Email Alert

Sep 12, 2009

i have CentOS 5.2 based server running openssh, which gives sftp service to the outside users(from internet), the users from some public ip-addresses uploads and download files from sftp-server directories. I want that whenever a user uploads a new file in certain directory of server, the server should send me an email alert

View 1 Replies View Related

Fedora Security :: SELinux Troubleshooter Flags New Alert, ... But List Is Empty?

Feb 6, 2010

Everytime I login the SELinux Troubleshooter panel applet alerts me that I have 1 alert to view, however when I click on the icon and bring up the Troubleshooter there are no alerts

View 2 Replies View Related

Security :: Files Sizes And Checksums Changed, But Not Time Stamps?

Nov 24, 2010

For the second time in a week, I have set up an unmanaged CentOS 5.5 Storm Server at StormOnDemand, only to discover a ton of unauthorized changes to binaries (updated file checksums and sizes) on the server shortly thereafter.The time stamps do NOT change.If the time stamps did change, I would be hunting down ahat was doing some auto-updates. But the time stamps are not changing.This leads me to believe that either these servers are suffering from:1. A virus or hacker is compromising the box.2. system corruption.3. Something else? To eliminate the possibility of number 1, I toasted the first server and started over with a new server and enabled their firewall from the start to only allow access for two IPs via SSH... my IP and my biz partner's.

Then, one of the first things we installed was a system we created that maintains a snapshot of most directories on the system so that it can be used to watch the live directories for changes. At 4:07am (server time) this morning, we received notice from this system that a massive number of files had changed in these directories. Again, no file time stamps changed.So, my question is this... is there any legitimate reason in a fairly standard CentOS 5.5 install that would cause so many files to change?

View 2 Replies View Related

Ubuntu :: Dispaly All Files List Morethan 20 Mb Size In Terminal?

Jul 1, 2010

I want to know how to get the details of all files in my system more than 20mb or some specific amount of file size in Ubuntu terminal by using commands.

View 1 Replies View Related

General :: Generate Random List And Determine Size Of Arbitrary Block Of Files In Dir?

Mar 4, 2010

I want to generate a temporary random list from a directory of files and then determine the size of an arbitrary block of files from this list (say 1-25 or 26-50) and add their names to a file along with some other info for each name. I can generate a random list with file sizes like this: ls -l | sort -R | cut -d " " -f 6 but i'm not sure how to add up the sizes of just a certain block of these files and at the same time save the file names.

View 2 Replies View Related

Ubuntu :: Command To List Directories And Sizes?

Mar 23, 2010

I need a command to list the total sizes for all the directories in a mounted drive.I tried df and du.df list the total size for the mounted drivedu depending on what option I give it either list the total size or list all the sizes for every file on the drive.All I want to know is the sizes of all the directories on the mounted drive.This is a windows vista hard-drive and for some reason ubuntu is reporting a 50 GB partition and only 10GB free, I want to know what's taking up all the free space. I can't find anything in the file browser, so far I've only managed to count up about 10GB of used space so where is the other 30GB.

View 3 Replies View Related

CentOS 5 :: Tool To Standardize All .jpg Sizes And Make Them Smaller In Size

Jul 4, 2010

If I open my 3.3MB .jpg file in Microsoft Paint and re-save it as .jpg it will right away loose it's size and go down to 1.5MB and still keep the good quality.

I have 100s of these picture files, so I can't set down and do it one by one in Paint.

I am wondering if there is any command in Centos 5.4 or tool that I can use to not only make these files size smaller but also to standardize their size to let's say 800 X 600. The latter is not really needed but it will be bonus if someone can guide me.

I am running a php photo gallery script and it takes way to long to load the picture hence the requirement to lower the size for all the files.

I know that there is "mogrify" and "convert" but I think they don't work without GIMP. I don't have GIMP installed and I do install it I think it goes on to install a lot of gnome libraries which I am afraid might break my server or overload it too much. My CentOS doens't have any GUI or gnome package to it and I want to keep it simple.

View 1 Replies View Related

General :: Script To Send The Swap Is Running Out Of Requirement An Alert To Mail?

Jul 16, 2011

script to send the swap is running out of requirement an alert to mail?

View 1 Replies View Related

Ubuntu Security :: Virus Scan Of Files To Send Onto Windows

Jan 31, 2010

I know that there is little need for me to install an anti-virus etc - but - I was thinking, it is a good idea to scan folders and files that I send to colleagues that run windows.Whats the best way and programme to do this? I guess I simply install an AV programme and thats it!

View 5 Replies View Related

Software :: Monitor All USB Activities Over The Network From A Red Hat Server With Alert Notification

Mar 22, 2011

I need a software to monitor all USB activities over the network from a red hat server with alert notification i have searched a lot and never found a thing

View 2 Replies View Related

General :: List Folder Size And Number Of Files And Folders In Folder?

Nov 23, 2010

In Linux bash shell, for a given directory, how can I list:The create date for that directory The number of files in that directory The number of subdirectories in that directory.

View 3 Replies View Related

Ubuntu Security :: Display A List Of All The Files Changed During Current Session?

Jan 25, 2011

is there a way to display a list of all the files changed during current session?

View 4 Replies View Related

Security :: Intruder Alert In /var/log/messages

Dec 13, 2010

I have noticed some possible security issues in my /var/log.messages log but i'm not sure how to read the messages.

I'm getting the following lines:

Code:

View 2 Replies View Related

General :: Set Nagios Directives To Only Send One E-mail Per Alert Without It Flooding Mail Boxes?

Jul 20, 2011

I have got a nagios server running on my network, The configuration seems to be okay but each time there is a service alert notification, and an e-mail is sent to the contact group, Nagios continuously sends e-mail over and over again. Do anyone know of a way to set Nagios directives to only send one e-mail per alert without it flooding mail boxes.

View 3 Replies View Related

Ubuntu Security :: Malware Alert In Chromium?

May 20, 2010

I was on funnyjunk.com yesterday, looking at funny pictures. I clicked the next button, and a page popped up displaying that the website had malware hosted by hit.d1.net, however when I had Windows XP the MacAffee Siteadvisor Displayed that there was no malware. Is this Real or Fake? Just wondering if it is one of those fake spyware alerts, like from windows.

View 2 Replies View Related

Security :: Email Alert On Password Change

Jan 18, 2010

I wanted to know if anyone had an idea or has heard of creating an email alert when a user changes the password on a samba user?I would like to be able to receive and alert if a user changes their samba password. Could anyone point me in the right direction? I will be attempting this on Arch Linux.

View 2 Replies View Related

Server :: Reduce RAID5 Partition Sizes / Reduce The Size Of Md1 And Grow Md0?

Feb 14, 2010

I have a rack of four 1TB drives all partitioned identically with three primary partitions. On each drive

- the first partition is only 64MB;
- the second is a large 900GB partition and
- the last holds all the remaining space

mdadm has been used to set up
/dev/md0 - RAID1, comprised of /dev/sda1 and /dev/sdb1
/dev/md1 - RAID5, comprised of /dev/sda2, /dev/sdb2, /dev/sdc2, /dev/sdd2
/dev/md2 - RAID5, comprised of /dev/sda3, /dev/sdb3, /dev/sdc3, /dev/sdd3

OK, so it was a silly mistake to make - but I am now need to increase the size of /dev/md0. My thinking is to reduce the size of md1 so that I can grow md0.

On md1 I have two logical volumes. I've successfully reduced the size of the volume so that I can reduce the size of md1. Now I'm at the nervous stage; I can find little written on the topic of shrinking RAID5 arrays - and even if I do this I'm unsure if I can move partitions around to regain the space I so desire.

View 1 Replies View Related

Fedora :: SELinux Trouble Shooter About A Security Alert?

Jul 30, 2010

I sue Fedora 13. Since a few times ago, every time when I start the computer, it appears a message of SELinux trouble shooter about a security alert. But most of times there are no errors to show.

View 9 Replies View Related

Ubuntu Security :: No Alert Found In Result From Snort

Mar 3, 2010

I have installed snort + mysql + acid base, I add some rules into /etc/snort/rules/local.rules to test the alert:

alert icmp 192.168.1.20 any -> 192.16.1.21 any (flags:A;ack:0;msg:"NMap icmp ping")
alert icmp 192.168.1.20 any -> 192.16.1.21 any (content:"abcdefgh";;msg:"ping de windows")
alert icmp 192.168.1.20 any <> 192.16.1.21 any (flags: S; msg: "HOULA SYN Packet!"

After I restart snort and I tied 2 pc by cross cable (192.168.1.20 for windows and the victim is 192.168.1.21 for Linux where the snort is installed), my HOME_NET 192.168.1.21 and the EXTEREL_NET !$HOME_NET. The problem is when I run:
snort -dvi eth0 -c /etc/snort/snort.conf

I see the packet transmitted and received (the received conten "abcdefgh" ), when I stopped snort CTRL+C I don't found any alert in the result!!! Run time prior to being shutdown was 218.523030 seconds.

Packet Wire Totals:
Received: 1346
Analyzed: 1342 (99.703%)
Dropped: 0 (0.000%)
Outstanding: 4 (0.297%) .....

dcerpc2 Preprocessor Statistics
Total sessions: 0
database: Closing connection to database "snort"
database: Closing connection to database "snort"
Snort exiting

View 4 Replies View Related

Security :: Ossec HIDS: Alert Timestamp Is Not Human Readable?

May 23, 2010

i have installed Ossec and save it on my sql database but the timestamp of alert is not human readable, how to make it readable ? is there algorithm to make it readable?

View 1 Replies View Related

Software :: Shared Libraries Dependencies - Ldd - Cmov - (files Have Different Sizes)

Jan 6, 2010

Question about shared libraries dependancies & ldd: Lets find dependancies for /bin/echo :

$ldd /bin/echo
linux-gate.so.1 => (0xb7f70000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7e01000)
/lib/ld-linux.so.2 (0xb7f71000)

Lets focus on libc6 :

[Code]....

What is this directory /lib/i686/cmov? How does ldd to link /lib/libc.so.6 to /lib/i686/cmov/libc.so.6? Why having 2 libc6 on the system (files have different sizes, so are different)?

View 2 Replies View Related

General :: Log Files - Increases - Get Automatic Email Alert

Mar 10, 2011

Is there any way to find out log files increases we will get automatic email alert. for example if the log file size is 2 MB once the file exceeded 2MB then we will get email alert. is there any script.

View 5 Replies View Related

Ubuntu :: Limit Log File Sizes - Log Files Are Taking Up Entire Harddrive

Mar 15, 2010

I just recently reinstalled (clean) Ubuntu 9.10 Karmic Koala last week. In that time, over 40GB of log files were created until the FileSystem was full. I then received a low disk space message and ran disk usage analyzer to find out that almost all of the 44GB I had free were taken up by the /var/log directory. I then preceded to delete the 5 largest files which freed up over 40 GB of space.

Basically I believe that I have two problems:

1.) The log files are logging too much information (40 GB in one week).

2.) I need a way to automatically limit the size of the log files. I have tried searching online for this solution and briefly came across logrotate but I don't believe that this will completely solve my problem as it only compresses and backs up older logs. I need something that will remove old log entries altogether. If logrotate is capable of this can someone please walk me through the process? I do not remember all five log files that were in question but they did include: messages, syslog, and daemon.log. I believe kern.log may have been involved too.

View 2 Replies View Related

Red Hat / Fedora :: Small Script, Which Finds The Size Of "/" And "/var" FS, If It Exceeds 80% It Should Alert?

Apr 6, 2011

I wrote a small script, which finds the size of "/" and "/var" FS, if it exceeds 80% it should alert me. The below is my script.

hname=`hostname`
FS="/ /var"
Size="80"

[code]....

View 4 Replies View Related

Software :: Send A List Of Items To Apt-get?

Jun 19, 2009

Is it possible to send a list of items to apt-get for example,

cat mylist.txt

A
B
C

and pipe it to apt-get remove?

View 3 Replies View Related

Programming :: Downloading A List Of Files From A Remote Server Using A List?

Feb 10, 2009

I am trying to get this script to work. The purpose is to download a list of modules from the slax.org the list consist of a list of module numbers. What I am trying to do is Download the file or the file name corresponding to the number in the list.the list is comma delimited. this is what I have done so far and I am a stand still.

#!/bin/sh
# Wget script to retrieve modules from slax.org modules
#
# ----Begin of user defined values -----
# Path to wget

[code].....

View 7 Replies View Related

Ubuntu Security :: Bad Login Protocols - Graphical Login For Gnome Sizes Itself To Accommodate A User's Exact Password Length

Dec 14, 2010

I'm seeing really bad user login format under a standard installation and am wondering why ubuntu does this as default. I have noticed that the graphical login for gnome sizes itself to accommodate a user's exact password length. This indicates to me that somewhere on the unencrypted part of a standard installation with user encryption contains at least some indication of the content of the password length which seems a security flaw even if not a complete hole, it majorly reduces the number of attempts a cracker would have to cycle through.

And that's assuming that *only* the length is contained. Furthermore it seems that it would be MUCH better to simply display the number of characters entered into the pw field and allowing the gui to expand itself from an fixed size as the field is filled out so the the user still receives visual feedback for entering characters. Either a simple character count display should be entered into the field or a 10 dot to new line so that one can visually quickly count the number enter by multiplying from a 10base graphical observation.

View 9 Replies View Related

CentOS 5 :: Whenever Send Emails To List / 511 511 Sorry / No Mailbox Here By That Name

Oct 8, 2009

Howdy. I'm trying to get mailman up and running. I have CentOS 5 (hiab) and qmail. I did yum install mailman and that went fine, I set up apache and can see the mailman pages via htttp.The issue now is with sending mail, whenever I send emails to the list I get: 511 511 sorry, no mailbox here by that name

So I'm assuming my alias files/.qmail fies are in the wrong spot. The contents of my .qmail are (respective to the -admin, -bounces, -etc)

View 3 Replies View Related

Slackware :: Way To List All Packages By Size?

Apr 2, 2011

pkgtool just lists it in alphabetical order.

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved