LinuxQuestions.org
Visit Jeremy's Blog.
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 03-14-2010, 04:35 PM   #1
mattseanbachman
Member
 
Registered: Feb 2010
Posts: 40

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


Hello,

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.

Thanks,
Matt

Last edited by mattseanbachman; 03-14-2010 at 04:37 PM. Reason: clarification
 
Old 03-14-2010, 05:27 PM   #2
paulsm4
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:

http://linux.about.com/od/commands/l/blcmdl8_mount.htm
http://linux.about.com/od/commands/a/blcmdl8_mountx.htm
http://www.brighthub.com/computing/l...les/40361.aspx

'Hope that helps .. PSM
 
Old 03-14-2010, 07:00 PM   #3
mattseanbachman
Member
 
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
Quote:
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.
 
  


Reply


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


All times are GMT -5. The time now is 11:34 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration