- This topic has 6 replies, 3 voices, and was last updated 18 years ago by
Patrick Fergus.
-
AuthorPosts
-
October 21, 2008 at 12:22 am #374512
pteeter
ParticipantI found this old thread…
https://www.afp548.com/forum/viewtopic.php?forum=29&showtopic=9668&highlight=region%20code
Anyone have any further ideas on how best to preset the DVD Region Code for use with InstaDMG?
I haven’t even investigated it yet. I will, I will.
Just wondering if anyone has already looked into it.
October 21, 2008 at 11:00 pm #374518pteeter
ParticipantOK, I believe you. Though research turns up some fun firmware hacks to make an optical drive region free. 😈
So the section of /etc/authorization would be (in Leopard):
<key>system.device.dvd.setregion.initial</key> <dict> <key>class</key> <string>user</string> <key>comment</key> <string>Used by the DVD player to set the region code the first time. Note that changing the region code after it has been set requires a different right (system.device.dvd.setregion.change).</string> <key>group</key> <string>admin</string> <key>shared</key> <true/> </dict>So to work around this for non-admin users, change the class to ‘allow’ and lose the ‘group’ and ‘shared’ keys?
Anyone got suggestions for editing this – payload free + postflight script? Or maybe best practice is to copy in a pre-built file?
October 23, 2008 at 1:44 am #374531Patrick Fergus
Participantpteeter,
I think I’m doing this with a payload free package, but it’s at work and I’m not. This turned up from a Google search, so YMMV:
#!/bin/sh "$3"/usr/libexec/PlistBuddy -c "Set :rights:system.device.dvd.setregion.initial:class allow" "$3"/etc/authorizationTomorow I’ll double-check what I’m actually doing.
– Patrick
October 23, 2008 at 3:30 am #374532pteeter
ParticipantYou plistbuddy stalwarts.
/usr/libexec/PlistBuddy it is.
Good call.
October 23, 2008 at 3:11 pm #374534Patrick Fergus
ParticipantYep–that’s what we’re doing with our build.
FWIW I’m more comfortable with defaults, but defaults won’t touch anything beyond the simplest plists.
– Patrick
November 3, 2008 at 7:57 pm #374634mleacy
ParticipantSomewhat off-topic, but does anyone know where to find a list of the valid keys?
I’d love to get some granular control and pick and choose what non-admins can do.
November 3, 2008 at 9:35 pm #374639Patrick Fergus
ParticipantThis article has some information:
https://www.afp548.com/article.php?story=20041027093216241
However, we’d love a lot more granularity as well.
– Patrick
-
AuthorPosts
- You must be logged in to reply to this topic.