unix command

This is a discussion on unix command within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I'm wondering if there is a command in unix that would chack if someone has copied a file from me. ...

  1. #1
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572

    unix command

    I'm wondering if there is a command in unix that would chack if someone has copied a file from me. for example, if I had set my permissions so that everyone can read a particular file, and then someone actually coppied that file using cp command, to their own directory.

    Is there any way I can check that they did it?

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  2. #2
    Registered User
    Join Date
    Aug 2003
    Posts
    470
    No, I think most unix kernels will only store the modification date and the last access date.

  3. #3
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926
    It is on the tip of my tongue so you might have someone come up with an epiphany if I say it. I know that it is kept in a file somewhere. Either /etc/blah or /var/blah. I can't think of it. It tells you who logged in at what times and everything. I hate mind blocks. try using grep on those files?? If you are extremely lucky you have linux administration for dummies with you it is in there.

  4. #4
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    >>Either /etc/blah or /var/blah. I can't think of it. It tells you who
    >>logged in at what times and everything. I hate mind blocks. try
    >>using grep on those files?? If you are extremely lucky you have
    >>linux administration for dummies with you it is in there

    this is on a university network, so I don't have acces to /var or /etc....and grep doesn't do anything for me either....

    any other suggestions?

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  5. #5
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    Originally posted by axon
    >>Either /etc/blah or /var/blah. I can't think of it. It tells you who
    >>logged in at what times and everything. I hate mind blocks. try
    >>using grep on those files?? If you are extremely lucky you have
    >>linux administration for dummies with you it is in there

    this is on a university network, so I don't have acces to /var or /etc....and grep doesn't do anything for me either....

    any other suggestions?
    edit: :bonk: never mind. Answer being, no. Not possible.
    Last edited by -KEN-; 02-22-2004 at 01:32 AM.

  6. #6
    Registered User
    Join Date
    Aug 2003
    Posts
    470
    Well, I'm certain that there are system adminstrator tools that will log which user executes, writes, and modifies certain files. But I don't think the non-root user can do that.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 26
    Last Post: 07-05-2010, 11:43 AM
  2. Unix Command Interpreter Help
    By ashford74 in forum C Programming
    Replies: 14
    Last Post: 09-26-2008, 04:28 AM
  3. using return from UNIX command
    By djp in forum Linux Programming
    Replies: 1
    Last Post: 06-24-2003, 09:08 AM
  4. command in unix for checking memory leaks
    By sanju in forum Linux Programming
    Replies: 1
    Last Post: 01-22-2003, 06:51 AM
  5. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 05:10 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21