Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Device file permissions on mac os x

Posted on 2004-10-28
Medium Priority
Last Modified: 2013-12-26
I m wanted to read hard disk but unable to read. I m able to read any .txt and .doc file on mac os x.

I have two hard disks attached with my system
#: type name size identifier
0: FDisk_partition_scheme *18.6 GB disk0
1: DOS_FAT_32 NO NAME 9.8 GB disk0s1
#: type name size identifier
0: Apple_partition_scheme *55.9 GB disk1
1: Apple_partition_map 31.5 KB disk1s1
2: Apple_Driver43 28.0 KB disk1s2
3: Apple_Driver43 28.0 KB disk1s3
4: Apple_Driver_ATA 28.0 KB disk1s4
5: Apple_Driver_ATA 28.0 KB disk1s5
6: Apple_FWDriver 256.0 KB disk1s6
7: Apple_Driver_IOKit 256.0 KB disk1s7
8: Apple_Patches 256.0 KB disk1s8
9: Apple_HFS Macintosh HD 55.9 GB disk1s9

and the file permissions of these device files are
brw-r----- 1 root operator 14, 0 28 Oct 11:41 /dev/disk0
brw-r----- 1 root operator 14, 1 28 Oct 11:41 /dev/disk1

I have tried to change the permissions through root but message is
chmod o+r /dev/disk0
chmod: /dev/disk0: Operation not permitted

How i can change the file permissions.
plz tell how i have to proceed and give solution to the problem described.
Question by:manojchauhan
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 23

Expert Comment

ID: 12434770
You already asked this question using a slightly different membername (forbidden on EE, BTW).

Author Comment

ID: 12441487
hi sir
   Plz give reply to my question.
   I am using my friends id to solve my problem, he has two ids of expert exchange

Expert Comment

ID: 12444567

First of All, you can never change the permission of device file (even with root permission).
This said, if you want to open a device file from your application you can use the following commands:
Open , read, write and close.

according to apple:
"If you know the name of a device file (for example, disk0s2 or mt0) your application can use POSIX functions such as open, read, write, and close to access and control the associated device."

See this link for more details:

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 12460656
dear sir
        thanks a lot for giving such a valuable comment. But i  have  changed the device file permissions login through super user. and after giving all rights to the /dev/rdisk0 i m now able to read the hard disk.
      Again thanx a lots for sparing such a valuable time for my question.
with regards

Expert Comment

ID: 12462734
Hi again,

I'm new to unix but for this question I asked one of my colleagues who is supposed to be an expert in UNIX and he ensured me that it is impossible to change device file permission.
Anyway, I learned something new.
Thank you for this information.


Accepted Solution

GhostMod earned 0 total points
ID: 12519843
PAQd, 125 points refunded.

Community Support Moderator

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question