[X-Unix] Terminal Syntax for Writing to /private/etc/authorization
Rod Buchanan
lists_lrb at mac.com
Thu Oct 12 15:54:11 PDT 2006
On 10/12/06 2:39 PM, "Rick Gordon" <rick at rickgordon.com> wrote:
> This really breaks down into two questions:
>
> 1) Even trying to read the file (which is in XML plist format) doesn't seem to
> work with the following syntax:
>
> sudo defaults read /private/etc/authorization
>
> I get a "Domain /private/etc/authorization does not exist" error.
Try this:
$ plutil -convert binary1 -o /tmp/auth.plist /etc/authorization
(copy file to binary file auth.plist in /tmp)
$ defaults read /tmp/auth
(display .plist file)
> 2) Assuming I could get around that, how does the defaults command deal with
> nested entries in a plist file? For instance, I'm looking for a quick and
> convenient way (other than opening authorization in the Property List Editor
> via Pseudo) to toggle the entry "rights > system.privilege.admin > group"
> from admin to wheel, or vice versa.
This I'm not sure how to do.
--
Rod
Windows NT crashed.
I am the Blue Screen of Death
No one hears your screams.
-- Salon Haiku Contest, 1998
More information about the X-Unix
mailing list