LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-22-2007, 06:05 AM   #1
piokon
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Rep: Reputation: 0
How to check if someone viewed my files?


Hi!

Is there any way of checking if any other user on the same server (same home directory) who has access to my files (normal files with read-write permission) has been reading my files?

Maybe some kind of a log of users browsing my files and viewing them?

Thanks for any help,

Peter
 
Old 07-22-2007, 06:13 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
No, not really. There is a last access time on files, but it's easily turned off:

ls -lu
 
Old 07-22-2007, 06:15 AM   #3
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
There is usually a log of users logged in and what time. Sometimes network traffic logs can tell what sort of info in requested. Why not ask the sysadmin?

You can also tell if files have been tampered with by checking the timestamps. If someone views a file, the timestamp will say when. Keep a copy when you logout.

Note... anyone with user-access to your home directory is assumed to be reading your files. Do not assume anything else.

Why would this question even come up?
 
Old 07-22-2007, 07:51 AM   #4
piokon
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Original Poster
Rep: Reputation: 0
How to turn it off?

Quote:
Originally Posted by macemoneta
No, not really. There is a last access time on files, but it's easily turned off:

ls -lu
How should I do that?

Cheers,
Peter
 
Old 07-22-2007, 08:02 AM   #5
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Remount the partitions with the noatime option, or add it to /etc/fstab. While the last access time is useful for some types of backup, it is a performance hit. I generally turn it off on all partitions. See 'man mount' and 'man fstab'. For example:

mount -t ext3 /dev/hda3 / -o remount,noatime
 
Old 07-22-2007, 08:12 AM   #6
piokon
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by macemoneta
Remount the partitions with the noatime option, or add it to /etc/fstab. While the last access time is useful for some types of backup, it is a performance hit. I generally turn it off on all partitions. See 'man mount' and 'man fstab'. For example:

mount -t ext3 /dev/hda3 / -o remount,noatime

Great, thanks a lot!!

Peter
 
Old 07-22-2007, 01:31 PM   #7
piokon
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Ommit access timestamp

Btw, is there any possibility, that someone viewed my file (e.g. with command more) and didn't change access time - so when I check:
ls -ut
or
stat <file>

I don't see any change??

Cheers,

Peter
 
Old 07-22-2007, 03:26 PM   #8
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Yes, that's what I said in post #2.
 
Old 07-22-2007, 05:38 PM   #9
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
... with instructions in post #5

-noatime = no access time. From the mount(8) man page
Code:
noatime
                     Do not update inode access  times  on  this  file  system
                     (e.g,  for  faster  access  on the news spool to speed up
                     news servers).
... do read man pages when you are directed to them.

If the user does not have root access, then this is not a concern unless the admin has used this option on your home partition (to avoid aforesaid performance hit say.) Again: why not ask sysadmin?

If the user does have root access... then your only recourse to guarantee privacy is encryption.
 
Old 07-23-2007, 01:26 PM   #10
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Even encryption does not guarantee privacy, if the encryption is done on the computer (hint: keyloggers, memory dumps, etc.)

If you don't trust root with your work, don't use the system.
 
Old 07-24-2007, 03:47 AM   #11
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Even encryption does not guarantee privacy
... there is no such thing as guaranteed privacy - well not the way you mean it.
Just ask the Pharaohs.

However, there is such a thing as making it annoyingly difficult.
You can keep your keys on a removable drive...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
man documents, how is it viewed. pranavojha Linux - Newbie 5 03-26-2006 09:31 AM
vsftpd not list files when viewed from deifferent win machine win ftp application in anuj_sharma25 Linux - Newbie 2 11-22-2005 11:08 PM
Error viewed in srvrep BongoKarl Linux - Networking 0 07-12-2005 08:30 AM
How can GPRS Connection Status can be viewed. HELP PLEASE ! ! ! bedi-beparwah SUSE / openSUSE 1 03-15-2005 11:55 PM
Threads showing up as not viewed amp2000 LQ Suggestions & Feedback 1 12-17-2002 11:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration