|
|
Change Permissions of /dev/disk* ??
|
|
|
|
Fresh-Faced Recruit
Join Date: Jun 2005
Status:
Offline
|
|
Hi all
I am able to change the permissions of disk0,disk1....disk* in the /dev
using :- chmod("/dev/disk0", 777); I am calling this function in my program, but
when i login through user other than system administrator (root) then i am not
able to change the permissions (because the function fails).
What should i have to do to sought out this problem.
Thanks and regards
|
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
You don't want to do that. Don't do that.
What are you trying to do?
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Jun 2005
Status:
Offline
|
|
Hi
I want to raw read the hard disk so for this i have to change the Permissions. After raw reading, my program will restores the original Permissions that exists earlier than the change.
Thanks and regards
|
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Jun 2005
Status:
Offline
|
|
Originally Posted by Angus_D
Hi
I have read the "Performing Privileged Operations With Authorization Services" but how I can use these authorization plz help me. I want to raw read the /dev/disk0 through the user other than root(system administrator). I am able to raw read the /dev/disk0 through root.
Thanks
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Mar 2001
Location: England
Status:
Offline
|
|
huh? why's it matter which user you use to _read_ the disk, as long as you have permission?
|
What the nerd community most often fail to realize is that all features aren't equal. A well implemented and well integrated feature in a convenient interface is worth way more than the same feature implemented crappy, or accessed through a annoying interface.
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
Originally Posted by Amorya
huh? why's it matter which user you use to _read_ the disk, as long as you have permission?
Well, normal users can't do raw reads from the disk for obvious security reasons.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Jun 2005
Status:
Offline
|
|
Hi
How can I use the authopen(1) for reading the /dev/disk* Programmically.
Thanks and Regards
|
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
You are clearly not qualified to be doing what you are doing. You will find that other people will be unwilling to do your work for you. If you would like to get someone else with more knowledge to do your work for you, you will probably have to pay them some money. There are quite a few Mac development consultants about.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|