Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

A daemon process running as a special user has created files which only its user can read. The directory is owned by me and I have write access to the directory. Is there any way that I can read or copy the files without sudo rights?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

You do not have the permission to read it - therefore, you cannot read it.

You have permissions to change the directory - you can rename or remove the file.

In a way, you can access the file's name, but not its content.

share|improve this answer
    
I hoped there was some clever way around it since I own the parent directory. But it makes sense that I should not be able to read it. Thanks! –  Krumelur Oct 26 '12 at 9:27
add comment

If it's a huge deal, you could just boot a live disc to read it in a round-about way...

Boot into the Live Disc (root login by default) and (all in the terminal):

  1. Make a mountpoint: mkdir /mnt/mountpoint
  2. Find your partition if you do not know it: fdisk -l
  3. Mount it: mount /dev/sdaX /mnt/mountpoint
  4. Go to the directory: cd /mnt/mountpoint/home/(username)/dir/fileYouCantRead
  5. Just read the file to the terminal in Less: cat fileYouCantRead | less

That'll get you the contents - if it matters enough to do the process.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.