@Cestarian A help vampire will dump their homework assignment here expecting us to do their work for them. They won't try to do it themselves and ask for help with a specific part of it they are having trouble with; they'll copy paste the entire thing. Complete with the imperative "Write a script that does X".
They will ask how to replace foo with bar in a text file and get a nice informative answer explaining how to use sed and the substitution operator to run s/foo/bar/. They then turn around and post another question asking how to replace bar with baz without any attempt to use the knowledge they gained in the previous question.
They will refuse to give the information required in order for us to understand and help them and will then be abusive and rude towards the people who try to explain that they can't help without it.
They will refuse to ask questions on the main site and, instead, will ping random users in chat, bugging them for help.
They won't spend the 5 seconds on google that would have given them the answer. You take the title of their question, paste it into a search engine and the first 10 links provide the answer.
I've even seen people post photographs of their homework assignments. They don't even take the time to write it down as a question.
"Does anyone know of a method to discover all of the files read by a given Linux process tree?" Just asked on #clasp on Freenode. I'm thinking strace, but is there anything better?
@FaheemMitha Just turning auditing on, which you do with auditctl. Its man page is fairly extensive. The downside is that it does slow the machine down a bit.
@JennyD isn't that precisely what lsof is for? It's one of those commands I know of but have very rarely used. I only ever use it to see what's blocking my umount command, basically.
@FaheemMitha I'm sure you won't. And hardly bog standard. If neither you, nor I, nor Jenny who knows a hell of a lot more sysadmin stuff than we do can answer in a couple of words, it's not going to be quite as simple as that.
@FaheemMitha I'd be happy to help you figure out a suitable rule set, but I agree that it'd be better to do it as a question. I'd start by figuring out what exactly it is you want to keep track of - is it "what programs are touching this file", or "what files are being touched by this program"
@FaheemMitha nod It might also be a on-topic on SO, there might be some tools for whatever language is being used in the code base to figure stuff like that out.
yes my contents are sensitive. for abiword iit won't be an issue.
So far we used to write some data withing abiword, convert it to pdf, enc the pdf file, and then send the encrypted file through email, etc.
within***
there is a gap here that each time the writer had to "permenantly delete the un-encrypted pdf" manually (and usually they forget to do so. they simply put it in trash by mistake)
@MostafaShahverdy You could always save the PDF in /foo and have a cron job that deletes any file in /foo that is older than 5 minutes or so. Have the cron run every minute. Would that do?
@MostafaShahverdy I don't know if that's possible. I don't know how the print to pdf feature works. Would it just send the raw data to the /dev/tty or would it overwrite it and destroy the tty?
I assume you are trying to avoid actually writing the data to a file at any point, right?
This really should be asked as a question on the main site. Sounds interesting.
@FaheemMitha No, not if you don't save it. It might write to a tmp file internally or it might keep everything in memory, I'm not sure. Either way, it won't be a normal file.doc kept in the user's $HOME.
@FaheemMitha Not much, but it's a step in the right direction. I'm still not sure if any actual files are created on the HDD. Presumably, Mostafa wants to avoid the possibility of data recovery software being able to find it. If the tmp file was never saved to disk but only in memory or tmpfs, that shouldn't be a problem, right?
@MostafaShahverdy Faheem's point is that no matter what you do Abiword will be writing to a file somewhere. If that somewhere is in memory, you should be OK, if it's on the disk, the whole operation is pointless.
Generally sticking stuff in RAM without asking the user is kind of bad manners. I don't think editors/word processors generally do that. Because often RAM is limited.
@MostafaShahverdy Not really, it's just an idea. I don't know if it would even work. I thought that maybe you could create the named pipe and use the print to file thing to write to it.
Hmm. I just tried and it doesn't seem to work. Might be doing it wrong though. I really don't know much about named pipes.