General :: How To Monitor Changed File

Jul 3, 2010

How do I monitor which files have been changed after, say, I run the passwd command? (I know, depending on the options used, it changes /etc/shadow and/or /etc/passwd). But I would like to if there is any clever ways of monitoring this. This is how I do it which is a bit crude, and I have to know which directory to monitor. Before running the command, I run

Code:

for i in $(ls -A) do; md5sum $i >> /tmp/before; done

And after running the command, I run

Code:

for i in $(ls -A) do; md5sum $i >> /tmp/after; done

Then I do a diff to see if any file has been changed

Code:

diff /tmp/{before,after}

View 1 Replies


ADVERTISEMENT

General :: Resolution In 1 Monitor Suddenly Changed?

Jun 21, 2010

I am using Ubuntu 10.04 and had the dual monitors all set up using NVidia. When I was leaving my office I intended to lock my screen but instead switched to guest user . . . and now 1 of my monitors from my dual monitor set up has bunk resolution?

I have restarted and am logged in as administrator but I have no idea how to fix the resolution? The dual monitors have always been a problem for me. what in the x11/xorg.conf file I need to change?

View 1 Replies View Related

General :: Can Distros Activity-monitor/ Pointer Be Changed

Dec 6, 2010

Fedora 13 is currently my Linux Distro of choice but I find the Pointer/Activity-monitor is annoying. Usually it has two states ,the solitary round thing or the pointer. Every now and again they are combined into the Ubuntu combination symbol of the two joined into one image. Is there a way to change this image/moving-icon? I like Mandriva's the best and would prefer it worked on all Browser windows so that New Firefox versions did not disable it.Thanks in advance!

The term I needed to find additional info was (Mouse Themes). The (Wait Cursor) is usually included with this.Download the theme you want and go to System> Preferences> Appearance> Customize> Pointers to change to one that is alreadly installed.To install themes, System> Preferences> Appearances> Install. Apparently more than one them can be used on a distro so the Browsers will use its own while Nautilus will use another. Fedora's default one does not funtion properly. It will not change to the pointer if a web page is still loading if you need to sellect something. I learned that Mandriva uses the (Bluecurve) variation for default which is like Ubuntus where it does not have to change between two different images and hense does not lose functionallity.

View 1 Replies View Related

General :: Tool To Run A Command When File Changed?

Sep 16, 2010

Does anybody know of tool for Linux that can watch a custom subtree of the filesystem for changes, and executes a custom command when a change occurs ? Such a tool would be very useful to quickly setup automatic building or uploading of source files.

View 1 Replies View Related

General :: Check If A Website File Has Changed?

Jan 18, 2010

I have a site that I login to to check updates. It does not have RSS because users need to authenticate themselves before getting access to the page. Is there a way to write a script that can login to the page and check whether the HTML has changed and then send me an email?

View 13 Replies View Related

Ubuntu :: Changed A Screen Resolution The Monitor Went Blank?

Aug 19, 2010

I changed may graphic card, earlier I used NVIDIA FX5500 with nvidia driver, now I was trying to use ATI Radeon 7500, but there are problems with graphic configuration. At first attempt server started but after I changed a screen resolution the monitor went blank. I restarted a computer but after the X server started immediately the monitor wnet blank. I found that for completely for me unknown reasons Xorg was trying to use an NVIDIA glx module with radeon driver. I removed this nvidia driver, I expected ubuntu would be able automatically to set up a proper configuration, but instead of ubuntu complained about a missing driver. I also tried manually to set up some basic config using Xorg -configure but after that the Xorg server was stuck.

View 10 Replies View Related

General :: Change A Line In A Rsync Script And Send The File Changed?

Nov 19, 2010

I'm configuring an rsync between 2 machines, A_Server --> B_Server, using the following script:

Code:
#!/bin/bash
#
# Script de backup a trav�s de Rsync desde RMP-1 hasta RMP-2.
#

[Code]....

The Rsyn is working OK. What i need is to change one of the lines of the /tmp/prueba.txt before sending it to the remote machine (obviously not changing the file in the local machine), i mean, send prueba.txt to the remote machine deleting one line and adding another one...how can i do this?

View 1 Replies View Related

Ubuntu Networking :: File 'path Omyfile' Has Been Changed On The File System?

May 28, 2010

I have asked this over on Launchpad and have found bugs filed on the eclipse bug tracker but it seems to be going nowhere so I guess ill ask here.

I am using Eclipse for some development work and having saved a file, defocus the eclipse window (to test changes in a browser) when I refocus the eclipse window I get the following error...

The file 'path omyfile' has been changed on the file system.Do you want to replace the editor contents with these changes?

I have searched and searched and this seems to be a CIFS/SAMBA problem. I even found one solution suggesting that changing his mounts from cifs to smbfs fixed his problem however that would appear not to be an option for me since using smbfs in the fstab causes cifs mounts. This problem would seem to occur in Bluefish as well as some other IDE's so it is not an Eclipse issue.

---------- LINKS TO RELATED ----------
Launchpad Question
Eclipse Bug
--------------------------------------

View 2 Replies View Related

Slackware :: Occasional "Monitor Output Has Changed" Error Message

May 19, 2011

Occasionally, when startx, I got the error message: "Monitor output has changed" error message ( and sometimes it appear while I am working in X too but rarer). Whenever this happened, my screen changes to "1024x768" resolution when normally it is "1280x800". I click on "Configure", a "Configure Display" windows appear and I have to change the screen to Size"1280x800" back (since it would give me 1024x768"). Besides, the number of error messages will be up to 50s, 60s message. (This "Configure Display" is what you get when you go to "Application->System->"Screen Resize and Rotate" (KRandRTray)) My computer is Toshiba Satellite L500, the distro is Slackware 13.37. It was just installed so all the configuration is out of the box.

View 10 Replies View Related

General :: Monitor Connections To & File Access On Computer?

Jul 14, 2011

Where can I find a complete list of all the logs in the system?

I would like to know the following:

Which were the last connections to my machine (IP addresses) What were the files accessed by that IP address

I am using CentOS (don't remember the exact version it's probably 5.6 or 6.0).

View 2 Replies View Related

General :: Is AIDE A Good File System Monitor?

Jun 21, 2011

I am in the process of looking at file integrity checkers. So far I have found AIDE.

1. What are the ups and downs of AIDE?

2. Is it pretty easy to use?

3. Is there any other open source tools that are better than AIDE?

View 1 Replies View Related

Debian :: TAR - File Has Changed While Reading

Dec 17, 2010

I am using a backup system with cron + tar. Since the server is very busy, I get often the cron-email: "The file XYZ has changed while reading". This message is a bit annoying and I see it as critical point in my backup system. I believe that this file is then not in my backup. (Is that correct?) Let's imagine the hard disk dies and I have to recover the system and my personal data, and in the night the mysql-table XYZ was not in the backup, because it was in read-usage. I would then have lost this table forever. Is there any way to tell TAR, that it should force the file to be included (if in read-usage, then wait 2 seconds and try again)?

View 9 Replies View Related

Ubuntu :: Changed File Permissions Of FS To 644

May 10, 2011

I've made a really critical and simple mistake and now I am trying to recover my computer. I accidentally logged into root and was trying to change permissions for the current directory with "." but instead used a "/" which started changing permissions of everything from / recursively. I quickly realized the mistake I made after it started and aborted the process by pressing ctrl+C. However I know many things are still not right because, even though I tried to reboot and change the permissions back to 0755 from the recovery mode root console. I still get errors when gnome tries to start..Here is the exact error I am getting. "There is a problem with the configuration server (/usr/lib/libgconf2-4/gconf-sanity-check-2 exited with status 256". I'm pretty sure because of the way I aborted or because of the time the filesystem was running with 644 permissions, some amount of damage was done. Any way to recover it to normal? Or is there a way to recover it from the Ubuntu CD?

View 3 Replies View Related

Fedora :: Upgrading 10 To 11 - File System Got Changed

Aug 28, 2009

i heared that in fedora 11 with new kernel version comes ext4 as default file system. when i was upgrading fedora 9 --> 10, i just changed repos in /etc/yum.repos.d. now the question, if i upgrade my system, will my file system got changed, and if it does, will my data got damaged?

View 4 Replies View Related

Ubuntu Servers :: Permissions For A Log File Being Changed?

Feb 23, 2010

I have a recently setup my first linux server (hardy) and am having problems with the permissions for a log file being changed. I believe this is caused by syslogd, but am not sure how to correct it. Bacula will report it is unable to start a backup because it is unable to open the log file (/var/lib/bacula/log) "permission denied". After changing the owner from syslog to bacula, the backup will resume. However, the following day I encounter the same problem because the owner of the log has been changed back to syslog.I see where the permissions for logs are altered in sysklogd, but I am not certain how to make bacula exempt or if this is the right approach.

View 1 Replies View Related

Security :: Fix A Source File That Had Definately Not Changed?

Jul 9, 2010

I am running a Fedora 10 Virtual Server and get have a feeling I have been hacked. I needed to fix a source file that I had definately not changed myself. It was a PHP file concerned with usernames and passwords so that made me even more suspicious. I have been investigating and found the following. If you need other information give me the command I should run and I will update, I am no expert in this area and use the server to host my website and SVN. I am the only person that has access to the server.

Code:
# lsof -u nobody
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME

[code]....

View 4 Replies View Related

Ubuntu Security :: Rkhunter File Properties Changed?

Sep 12, 2010

Rkhunter file properties changed

View 2 Replies View Related

Ubuntu :: File Ownership Changed - How To Revert Back

Jul 6, 2011

It seems I had some kind of intrusion and I found 6 files changed its ownership to user 1035 and group 1035, I don't know how but I need to change them back to its original owner (root) because one of them is the ls command and the other is the ifconfig how can I revert them to its original state? I cant do it with chown.

View 3 Replies View Related

Programming :: Script To Evaluate If A Passwd File Has Changed

Apr 6, 2010

creating a script which evaluates whether or not the passwd file has changed.

View 4 Replies View Related

Software :: Cannot Install Binary File Due To Changed MD5 Checksum

May 17, 2011

I am trying to install True Combat: Elite on my Fedora 14 machine, but when I try to install it, it tells me there is an error in the md5 checksum of the binary installer. Output:

[alex@sofy01 Desktop]$ sudo linux32 ./true.combat.elite_0.49-english.run
Verifying archive integrity...Error in MD5 checksums: 3723510cf281bc315a9009cd1ca4f0e4 is different from 7cd28449f1231ff747e08fb76d4615c3

This file was copied from a flash drive onto my hard drive. Is there any way to skip md5 checks because I really do not want to download this 200+ MB file again.

View 4 Replies View Related

OpenSUSE Network :: Audit Original User That Changed File After Su?

Jul 22, 2010

Need to track which users are making changes to production files. I have a small number of administrators with access to su, but need to be able to identify which administrator is making changes to which files after they have su.I have read several post and articles regarding auditd tool, but it is not clear to me whether this tool can generate a log that shows the original user and file being altered.

View 3 Replies View Related

Ubuntu :: Cannot Login After File Owner Changed From Root To User

Mar 21, 2011

I used to use the root account for everything for more than a year then I moved to a user account for security reasons but almost all files had root as owner so I could not go 5 minutes without having to change to root and then change the owner of a file to my username to make it usable. I got fed up with this so I just changed the owner of every file on the system to my username instead of root.

command chown -R myusername * in the base directory /

Everything was fine until I restarted and the login screen became non functional and I got 2 error messages related to xsession and gnome errors. I think this is because the login screen might have its own user account and it cant access the files for the login process because it is owned by myusername. So my question is what is the user-name of the login account and what folders/files need to have their owner changed so the login process can work? I'm on 10.04 lucid.

View 6 Replies View Related

Ubuntu :: Make Emacs Reload A File When Changed On Disk?

Apr 21, 2011

I've noticed that emacs does not notice when an open file is changed on disk (unlike ,say, geany). Is there any way of making it watch for changes of files on disk?

View 1 Replies View Related

OpenSUSE Install :: Accidentally Changed /usr/bin/php File On My Server By Running A Cp Command

Sep 14, 2010

I've accidentally changed /usr/bin/php file on my server by running a cp command. I know this is bad, i just don't know how bad. Everything is working fine (websites using php), so i just wanted to know what this action could cause and also how can i restore original content.

View 4 Replies View Related

Ubuntu :: 10.04 - 'Date Modified' Changed On File Copy To NTFS Partition?

Jul 6, 2011

Prior to making a fresh install of 10.04, I made a back up of all my documents by copying them to a NTFS partition. I did this my selecting files in File Browser, then right clicking and selecting the Copy command.

When I came to move the files back after the fresh install, I was mortified to find that all the file modification dates had changed to the date I copied them! I've lost all the original file dates, which was the principal way I sorted my files. I guess there's no way of getting it back? It seems that Linux does not store File Creation dates either so I'm stuffed.

View 3 Replies View Related

General :: Screen Rate - Refresh Mode Of The Monitor In The Monitor Options Have Only One Option 60Hz

Mar 20, 2010

I am having problems with the refresh rate if the screen. In the refresh mode of the monitor in the monitor options have only one option 60Hz. I have LG 24 + ATI Radon 3870, and have already installed the ATI driver via Ubuntu download center.

View 1 Replies View Related

General :: Detect Monitor (Ubuntu 9.10, It Is Showing Unknown Monitor )?

Apr 20, 2010

I am now using Ubuntu 9.10. The prob is I am not able to increase the resolution of display. It is showing only 800 x 600 display. While trying to increase the resolution it is showing "Unknown Monitor". So, how can I detect the monitor so I can increase the resolution of my system.

View 3 Replies View Related

Fedora Servers :: Postfix - Something Changed In The Versions And It No Longer Works When Saved Main.cf File

Jun 22, 2009

I upgraded from Fedora 10 to Fedora 11, and it seems that when I saved my main.cf file, something changed in the versions and it no longer works. I've tried going through the file and tweaking it, but it's not working. Here is the postconf

[Code]...

View 7 Replies View Related

Debian :: Some Of The Icons On The Desktop Changed And All Of The Icons In The Drop Down Menu On The Bar At The Top Of The Screen Also Changed?

Jun 19, 2010

I recently installed virtual box on debian and after it had finished my terminal informed me that I could remove some "unnecessary" software by use of sudo apt-get autoremove. When I did this, some of the icons on the desktop changed and all of the icons in the drop down menu on the bar at the top of the screen also changed to ordinary folder symbols. The theme that I was using also went away. I restarted the computer and it booted back into a shell prompt with no GUI. I tried to get back to the GUI using alt+f7 but it didn't seem to exist

View 2 Replies View Related

General :: Hostname Changed By Some One?

Apr 12, 2010

I have some problem some one changed hostname on my system. If I do following I see

Code:
knoppix:~# cat /etc/hostname
debian
knoppix which is coming in left side in above output is not my hostname.
The hostname is debian.

How do I get that name back so that when I do cat /etc/hostname output is like following.

Code:
debian:~# cat /etc/hostname
debian

View 4 Replies View Related







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