Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Determining which volumes are physically read-only?



How can I determine, at a file-and-volume-high-level-API-level, which volumes
are physically read-only (i.e. CD-Rs and DVD-Rs) and thus cannot be written to
_even by Root_ (or by a process given Root-level privilege by
AuthorizationExecuteWithPrivileges?)

So far, all the miscellaneous UNIX system APIs I've played with do not seem to
take into account the physical characteristics of the device when displaying
access. For example:

Software-Engineering-G5:/Volumes d_smith$ ls -l
total 8
drwxrwxr-t  37 d_smith  unknown  1258  1 Feb 03:01 Mac OS X Install DVD
drwxrwxr-t  47 root     admin    1598  2 Mar 09:19 Part_1_Dan_Smith
drwxrwxr-t  32 root     admin    1088  2 Mar 09:19 Part_2_SQA
lrwxr-xr-x   1 root     admin       1  1 Mar 08:04 Part_3_Panther_Dan_Smith -> /
drwxrwxr-t  58 root     admin    1972  2 Mar 09:19 Part_4_Dan_Smith

Notice that UNIX seems to be saying that I am the owner of Mac OS X Install
DVD... and that I have write access to it.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.