Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Prevent users from ejecting CDs with dscl' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Prevent users from ejecting CDs with dscl
Authored by: lolopb on Jan 16, '08 07:55:11AM
I like simplicity and dscl allows one-liners, try this :

sudo dscl localhost -mcxset /Local/Default/Users/kids com.apple.finder ProhibitEject always -bool 1

It should work and, it's scriptable...

[ Reply to This | # ]

10.5: Prevent users from ejecting CDs with dscl
Authored by: deeproy on Jan 17, '08 03:48:33PM

I had tried this approach it doesn't work alone. You still need to set simultaneous_login_enabled, so this command would only work once mcx_flags are set.



[ Reply to This | # ]
10.5: Prevent users from ejecting CDs with dscl
Authored by: lolopb on Jan 19, '08 01:26:54PM

Are you sure ? I tested on my computer, it worked, kids account could not eject, even after many reboots and changing the optical media.

Have you really set the mcx to "always" as in my example.

I looked at what WorkGroup Manager and Parental Control set, they don't define the "has_mcx_enabled" and the settings apply anyway.



[ Reply to This | # ]