Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7673477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:31:14+00:00 2026-05-31T16:31:14+00:00

Some files are only able to be read by root users. However, I am

  • 0

Some files are only able to be read by root users. However, I am curious to know if the theory of data recovery can be applied here to force read the file off of the disk. Is it possible to scan the bytes of the file, especially since we know that the file exists? (In contrast to recovery where the bits might be overwritten.)

The process I can think of is as follows:

//Get the starting block location of the file

//Read it

// get the next block location

// read it

// iterate until done...

I have two questions here. Is this possible if the file in question is only readable by users with permissions higher than your own? Even if so, how would I implement this in code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T16:31:15+00:00Added an answer on May 31, 2026 at 4:31 pm

    What you want also requires administrative access. If you try to read or write the raw block device files /dev/sd* or /dev/hd* on Linux systems, or their equivalents on other Unix systems, or using raw Windows API calls to read block devices, you’ll invariably find that they require administrative privileges. (CAP_SYS_RAWIO on Linux.)

    Furthermore, if the block device is currently mounted, the data you read that describes the filesystem layout might be changing out from underneath you — making this approach remarkably unreliable for mounted drives.

    If you wish to pursue this further, I strongly recommend looking at the debugfs(8) ext2, ext3, ext4 debugging tool. It implements the ext* family of filesystems entirely in userspace and allows working with block devices at a raw level.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have some files on our website that users of our software can download.
I am using Perl to load some 'macro' files. These macros can, however, be
Some servers only support ftp to upload files. When I export the a project
Some APIs only support output to files. e.g. a library that converts a BMP
Does anyone know of a way to get numerous read-only git repositories based off
So I have some code that can read the methods out of a .coverage
I need to both read in and write pdf files and in some cases
Is there any way to make some sections of the web.config file only apply
Some classes, like exceptions or templates, only need the header file (.h), often there
Some files in our repository are individual to each developer. For example some developers

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.