Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 03-14-2010, 03:35 PM   #1
Registered: Feb 2010
Posts: 40

Rep: Reputation: 15
File-permissions on Read-only media: Allowing for access without chmod


I've hit a wall here; I'm attempting to find some way by which to view files and cd into directories on a device mounted read-only.

So I need the permissions to read, write, execute (and the same with directories), but chmodding is out of the question because I don't want to alter the drive one iota.

I guess what I could do--what I was thinking of initially--was to dupe the whole drive and then mess with permissions. This wouldn't affect the original (actually I'm working on a duplicate of the original, but I'm treating it as if it were the original) but I was hoping for something that would maintain data integrity. This is a forensic application and not altering the data is very important.

And also I am relatively new to some of this so if there's a solution right in front of my nose don't hesitate to point it out.


Last edited by mattseanbachman; 03-14-2010 at 03:37 PM. Reason: clarification
Old 03-14-2010, 04:27 PM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

If the physical media is read-only, then don't worry - you're not going to change anything. Even if you wanted to ;-)

The trick is to make sure you've got sufficient permissions to list files, cd into directories, and read file contents.

I'd briefly study the "mount" command and play with different settings. It's really fairly easy, once you get the hang of it:

'Hope that helps .. PSM
Old 03-14-2010, 06:00 PM   #3
Registered: Feb 2010
Posts: 40

Original Poster
Rep: Reputation: 15
Thought I'd post this response here as a clarification of what I was looking to do, in case I wasn't initially clear.

Well, it's not behind a hardware write blocker if that's what you implied by
If the physical media is read-only, then don't worry - you're not going to change anything.
Really the only write block protection I've been doing to it is to specify the switch -oro to tell it that it's read only. Then, when I want to cd into the mounted filesystem and view, say, the contents of a file that has permissions of 000 (I changed it that way on a test drive, for experimentation), it won't let me.

If I take off the write blocking I can, but that changes the drive! And thank you for the links I'll continue to investigate further.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
URGENT: linux permissions allowing access to all files derricke Linux - Server 7 10-20-2008 12:56 AM
Allowing normal users read-write access to Windows partitions Aphex_Twin2 Slackware 5 05-23-2005 09:22 AM
chmod won't change the file permissions midtown266 Linux - Newbie 12 11-28-2004 07:46 PM
File Permissions, CHMOD problems, image included. DeathGoth Programming 16 10-05-2004 09:51 PM
chmod and file permissions help qages Linux - General 5 01-27-2003 06:08 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:58 PM.

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