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


Click here to return to the 'How to toggle permissions from the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How to toggle permissions from the command line
Authored by: sabi on Apr 18, '02 05:54:16PM
You can enable or disable permissions on a disk with the vsdbutil command:
% vsdbutil -h
Usage: vsdbutil [-a path] | [-c path ] [-d path] [-i]
where
        -a adopts (activates) on-disk permissions on the specified path,
        -c checks the status of the permissions usage on the specified path
        -d disowns (deactivates) the on-disk permissions on the specified path
        -i initializes the permissions database to include all mounted HFS/HFS+ volumes


[ Reply to This | # ]
Re: How to toggle permissions from the command line
Authored by: sjk on Apr 18, '02 08:24:16PM

Interesting... thanks for the tip. Gotta love the generous documentation.



[ Reply to This | # ]
How to toggle permissions from the command line
Authored by: overhack on Aug 05, '03 03:07:57PM

I discovered this by reading Mike Bombich's Apple Software Restore page:

The vsdbutil command doesn't just toggle the "Ignore ownership on this volume" for the time that the volume is mounted, but for all time. By running vsdbutil -a /Volumes/MountPoint you add the GUID of the mounted filesystem to the computer's database of "local" filesystems, a.k.a. those on which it recognizes ownership.

[ Reply to This | # ]

How to toggle permissions from the command line
Authored by: mattconnolly on Sep 15, '04 02:54:36AM

Does this work on network mount points?
I am having problems with read-only access when connecting via afp to a firewire drive on another mac. I have read/write access to the files on the drive, but for some reason, I only have read-only access on the mount point itself - so I can't create any new files.....

Matt



[ Reply to This | # ]