You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Public folders share name

I have been messing around with trying to figure out why my iMac and Macbook won't see my Windows Vista machine and why the vista machine will see the iMac but not the Macbook. In the process I removed the public folder shares for the two user accounts I have on the iMac. Now when I tried to re-add them they go in fine but when I look at the share names from my Macbook its Public and Public-1 How can I get them back to be Username's Public Folder?

24" iMac C2D, 250Gb, 2gig Ram, GeForce 7600GT, Mac OS X (10.5.4), MacBook C2D White, 2ghz, 2gig ram, 80 gb :: TV :: 8GB iPhone

Posted on Sep 16, 2008 12:59 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 16, 2008 3:27 AM

G'day Spectre,

I hope you are up for some command line action to fix this up!

These names are managed by directory services, and you will need to use a dscl session to correct them. I recommend a thorough back up of your system before doing this! I have assumed that your shortname is spectre and your long name is Spectre... just change it as needed in the commands.

Steps:

1. Open Terminal from an administrator account
2. Enter:
sudo dscl .

Do not miss the "dot" at the end, or the next command won't work.

3. You will be prompted for your administrator password. Enter it and press return.

4. At the new command prompt ">", enter
cd /SharePoints
list

5. You will probably see something like "Public" and "Public-1". Your command prompt will now be "/SharePoints>"

6. Enter
cd Public
read

7. You will see a detailed listing with something like:

dsAttrTypeNative:afp_guestaccess: 1
*dsAttrTypeNative:afp_name: Public*
dsAttrTypeNative:afp_shared: 1
dsAttrTypeNative:directory_path: /Users/spectre/Public
*dsAttrTypeNative:ftp_name: Public*
dsAttrTypeNative:sharepoint groupid: (long hex string)
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

Take note of the bold items above (afp_name, ftp_name, smb_name, RecordName).

8. Enter:
create . afp_name Spectre\'s\ Public\ Folder
create . ftp_name Spectre\'s\ Public\ Folder
create . smb_name Spectre\'s\ Public\ Folder
change . RecordName Public Spectre\'s\ Public\ Folder
read

Note the backslashes (\) which are essential to get the command to work correctly.

9. You should now see a listing with all of the "Public" names replaced by "Spectre's Public Folder". Obviously you should substitute the appropriate "long name" for "Spectre".

10. Enter:
cd /SharePoints
list


11. You should now see "Spectre's Public Folder" and "Public-1".

12. Repeat steps 6 to 10 with Public-1

13. When you have finished, exit dscl by entering:
quit


14. You should now see the proper folder name from AFP, SMB or FTP clients....

Cheers,

Rodney

p.s. Credit to Axel Luttgens on nabble.com - which is where I found the details of this. I have experimented with it on my own machine, and confirmed that it works.
4 replies
Question marked as Top-ranking reply

Sep 16, 2008 3:27 AM in response to Spectre

G'day Spectre,

I hope you are up for some command line action to fix this up!

These names are managed by directory services, and you will need to use a dscl session to correct them. I recommend a thorough back up of your system before doing this! I have assumed that your shortname is spectre and your long name is Spectre... just change it as needed in the commands.

Steps:

1. Open Terminal from an administrator account
2. Enter:
sudo dscl .

Do not miss the "dot" at the end, or the next command won't work.

3. You will be prompted for your administrator password. Enter it and press return.

4. At the new command prompt ">", enter
cd /SharePoints
list

5. You will probably see something like "Public" and "Public-1". Your command prompt will now be "/SharePoints>"

6. Enter
cd Public
read

7. You will see a detailed listing with something like:

dsAttrTypeNative:afp_guestaccess: 1
*dsAttrTypeNative:afp_name: Public*
dsAttrTypeNative:afp_shared: 1
dsAttrTypeNative:directory_path: /Users/spectre/Public
*dsAttrTypeNative:ftp_name: Public*
dsAttrTypeNative:sharepoint groupid: (long hex string)
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

Take note of the bold items above (afp_name, ftp_name, smb_name, RecordName).

8. Enter:
create . afp_name Spectre\'s\ Public\ Folder
create . ftp_name Spectre\'s\ Public\ Folder
create . smb_name Spectre\'s\ Public\ Folder
change . RecordName Public Spectre\'s\ Public\ Folder
read

Note the backslashes (\) which are essential to get the command to work correctly.

9. You should now see a listing with all of the "Public" names replaced by "Spectre's Public Folder". Obviously you should substitute the appropriate "long name" for "Spectre".

10. Enter:
cd /SharePoints
list


11. You should now see "Spectre's Public Folder" and "Public-1".

12. Repeat steps 6 to 10 with Public-1

13. When you have finished, exit dscl by entering:
quit


14. You should now see the proper folder name from AFP, SMB or FTP clients....

Cheers,

Rodney

p.s. Credit to Axel Luttgens on nabble.com - which is where I found the details of this. I have experimented with it on my own machine, and confirmed that it works.

Sep 16, 2008 4:59 AM in response to RodneyW

Excellent that fixed that problem. For some reason though I can only see one of those Public folder shares from my Windows Vista machine but can see all of them from my Macbook. Any thoughts on that one? Also when I try to connect to my shares from Windows to my Macbook it asks for username and password but when I go to my iMac from windows it doesn't ask for anything just shows me the shares and lets me open them.

Both permissions are set the same on the iMac and Macbook.

Public folders share name

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.