Wrong name for Public folder SOLVED

Axel Luttgens luttgens at fusl.ac.be
Sat Apr 19 14:17:34 PDT 2008


Le 19 avr. 08 à 22:17, Bill Cheeseman a écrit :

> 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.
>
> [...]


If you allow, I'll complete your approach with a dscl-based one, here  
through an interactive dscl session.

To have something to work upon, I've (re)created a share point for my  
"Public" folder in the "Sharing" preference pane.
I then concentrated on the "afp_name" key -for the name shown to AFP  
clients- and on the record's name -for the name shown in the Sharing  
preference pane- :

luttgens$ sudo dscl .
Password:
  > cd /SharePoints
/SharePoints > list
Public
/SharePoints > cd Public
/SharePoints/Public > read
dsAttrTypeNative:afp_guestaccess: 1
dsAttrTypeNative:afp_name: Public
dsAttrTypeNative:afp_shared: 1
dsAttrTypeNative:directory_path: /Users/luttgens/Public
dsAttrTypeNative:ftp_name: Public
dsAttrTypeNative:sharepoint_group_id: 1372EF2E-7EC1-4A5C-83FE- 
DFEAF8F159B6
dsAttrTypeNative:smb_createmask: 644
dsAttrTypeNative:smb_directorymask: 755
dsAttrTypeNative:smb_guestaccess: 1
dsAttrTypeNative:smb_name: Public
dsAttrTypeNative:smb_shared: 1
AppleMetaNodeLocation: /Local/Default
RecordName: Public
RecordType: dsRecTypeStandard:SharePoints
/SharePoints/Public > create . afp_name Axel\'s\ public\ folder
/SharePoints/Public > change . RecordName Public Axel\'s\ public\ folder
/SharePoints/Public > cd /SharePoints
/SharePoints > list
Axel's public folder
/SharePoints > read Axel's\ public\ folder
dsAttrTypeNative:afp_guestaccess: 1
dsAttrTypeNative:afp_name:
  Axel's public folder
dsAttrTypeNative:afp_shared: 1
dsAttrTypeNative:directory_path: /Users/luttgens/Public
dsAttrTypeNative:ftp_name: Public
dsAttrTypeNative:sharepoint_group_id: 1372EF2E-7EC1-4A5C-83FE- 
DFEAF8F159B6
dsAttrTypeNative:smb_createmask: 644
dsAttrTypeNative:smb_directorymask: 755
dsAttrTypeNative:smb_guestaccess: 1
dsAttrTypeNative:smb_name: Public
dsAttrTypeNative:smb_shared: 1
AppleMetaNodeLocation: /Local/Default
RecordName:
  Axel's public folder
RecordType: dsRecTypeStandard:SharePoints
/SharePoints > quit
Goodbye


Axel


More information about the MacOSX-admin mailing list