At some point in the past, I started a process which (a) survives reboots, (b) touches the file ~/1, and (c) has no adverse effects of which I am aware. I do not, however, have any idea what is touching ~/1 any longer, and it's starting to annoy me, much like a single mosquito in the room. Neither my account's crontab nor root's has any obvious redirects to this file, nor anything that would ...
First thing I would do is: find /etc -type f -print0 | xargs -0 grep /home/me/1 and a couple variants. See if that file is mentioned anywhere in your startup scripts or configuration files. Then install inotify-tools and use inotifywatch to see what does it.
quote: Originally posted by norton_I: First thing I would do is: find /etc -type f -print0 | xargs -0 grep /home/me/1 and a couple variants. See if that file is mentioned anywhere in your startup scripts or configuration files. I ran that with no results. I'm running it on a slightly larger search space, but results will take a while. quote: Then install inotify-tools and use ...
Hmm... I thought inotifywatch had a way to record PIDs of the offending process, but I guess not. Your plan looks good, though if the file is just being touched, it may be too fast to see. The other thing that comes to mind is to create a tarpit by symlinking /home/me/1 to something that will block. You could use a broken network mount, I can't think of anything less hacktastic
It's in your home directory, so it's probably one of your processes, not root's. It's called 1 so it's probably a typo in a bash script somewhere - something like "- 1" instead of "-1" or something.
quote: Originally posted by bombcar: It's called 1 so it's probably a typo in a bash script somewhere - something like "- 1" instead of "-1" or something. Quite likely. I get '1' files every now and then from mistyped stdout redirects or using syntax for the wrong type of shell. Might be worth looking into (eg. it could be a cron job after all).
It should work to add that file to the list of files for auditd, and then look at the audit log. It's been forever since I messed with auditd, so I don't remember the syntax.
Sorry for the long delay in updating (over 24 hours!? Outrageous!). I'm giving auditd a chance; inotify fired off once or twice, but the output from ps aux was ... inconclusive. Thanks!
Sorry for the long delay in updating (over 24 hours!? Outrageous!). I'm giving auditd a chance; inotify fired off once or twice, but the output from ps aux was ... inconclusive. Thanks!
Hmm... I thought inotifywatch had a way to record PIDs of the offending process, but I guess not. Your plan looks good, though if the file is just being touched, it may be too fast to see. The other thing that comes to mind is to create a tarpit by symlinking /home/me/1 to something that will block. You could use a broken network mount, I can't think of anything less hacktastic
quote: Originally posted by euzeka: Quite likely. I get '1' files every now and then from mistyped stdout redirects or using syntax for the wrong type of shell. Might be worth looking into (eg. it could be a cron job after all). This. The likely syntax should look like this: job > /dev/null 2>&1 But you would have an output file "1", that could be size zero depending on output, if you used this incorrect...
It's in your home directory, so it's probably one of your processes, not root's. It's called 1 so it's probably a typo in a bash script somewhere - something like "- 1" instead of "-1" or something.
quote: Originally posted by bombcar: It's called 1 so it's probably a typo in a bash script somewhere - something like "- 1" instead of "-1" or something. Quite likely. I get '1' files every now and then from mistyped stdout redirects or using syntax for the wrong type of shell. Might be worth looking into (eg. it could be a cron job after all).
It should work to add that file to the list of files for auditd, and then look at the audit log. It's been forever since I messed with auditd, so I don't remember the syntax.
@ zarathos getting images from posts, default user... @ zarathos getting images from posts, default user functions for themes that can take away meta data for pages without touching theme file
7:54 AM Dec 22nd, 2008
from TweetDeck
What is with file search on XP? It seems like it searches... What is with file search on XP? It seems like it searches all types offiles, has no sense about what is searches first, takes FOREVER, on windows98 a file search took about 1/1000 the time.
Thread profile page for "What's touching this file?" on http://www.arstechnica.com.
This report page is a snippet summary view from a single thread "What's touching this file?", located on the Message Board at http://www.arstechnica.com.
This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity