Wrong name for Public folder SOLVED

Bill Cheeseman bill at cheeseman.name
Sat Apr 19 13:17:26 PDT 2008


on 2008-04-19 2:10 PM, Bill Cheeseman at bill at cheeseman.name wrote:

> I'm really not clear about how to change the record on the bad machine.
> 
>    -change record_path key old_val new_val
> 
> looks promising, but there's the little problem of the sharepoints having
> different names on different machines, "Pubic" vs. "Public Folder",
> according the -list command. I assume "Public Folder" is correct, but I
> don't see how to change "Public" to "Public Folder" on the bad machine.

I've fixed the problem, albeit in a somewhat roundabout manner. I'll spell
it out here for the archives, should anybody else ever fall into this
problem and care enough to do something about it.

Axel got me started, for which I thank him, and I found additional clues
here: 
   <http://systemsboy.blogspot.com/2008/03/netboot-part-4.html>
   <http://www.macgeekery.com/hacks/software/netinfo_dead>

The most important thing was to know that the Directory Service plist files
for sharepoints are located at /var/db/dslocal/nodes/Default/SharePoints.

I used a combination of 'cp' and 'mv' with 'sudo' in Terminal, and my
favorite tool to change permissions, Path Finder, because I can never
remember how to use chown. I was able to copy Public.plist into a working
folder; to change its privileges so that I could edit it; using Property
List Editor, to change every string value "Public" to "Bill Cheeseman's
Public Folder"; change its privileges back to their original values; copy it
back into the SharePoints folder replacing the original; and change its name
to "Public Folder.plist".

It would undoubtedly have been easier for a more knowledgeable shell
scripter to do it with a simple script in Terminal. Probably just the 'dscl'
command to 'change' the share name in several places in the plist file,
together with the 'mv' command to change the plist file's name.

After logging out and back in, System Preferences now shows my Public Folder
as "Bill Cheeseman's Public Folder" when I log on to the problem machine as
guest on my home network.

--

Bill Cheeseman - bill at cheeseman.name
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com

PreFab Software - www.prefabsoftware.com




More information about the MacOSX-admin mailing list