• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 835
  • Last Modified:

Multiple Share Names for folder OSX Server Lion

Running OSX Lion with Server and it works fine.  Is there a way for a share to have multiple share names, such as Windows Server which allows you to have multiple share names for same folder.  We have a dedicated itunes folder, which would be a pain if we had to rename it to the name that the itunes on multiple computers are looking for.  Trying to avoid having to do a consolidation to the new network location when if we can just change the share name that would work also.
0
Peterson50
Asked:
Peterson50
  • 3
  • 3
2 Solutions
 
Peterson50Author Commented:
another question if the user iTunes library is on a local drive called media, and it is moved to a shared folder on osx server called media and then the local drive is disconnected and the shared folder mounted will iTunes see the media properly even though it has been moved from a local to shared volume of same name?
0
 
XaelianCommented:
sudo dscl . -create SharePoints/iTunesMedia
sudo dscl . -create SharePoints/imagesdrawings afp_guestaccess 1
sudo dscl . -create SharePoints/imagesdrawings afp_name iTunesMedia
sudo dscl . -create SharePoints/imagesdrawings afp_shared 1
sudo dscl . -create SharePoints/imagesdrawings DIR_path /Library/iTunes/media
sudo dscl . -create SharePoints/imagesdrawings ftp_name iTunesMedia
sudo dscl . -create SharePoints/imagesdrawings smb_createmask 644
sudo dscl . -create SharePoints/imagesdrawings smb_DIRmask 755
sudo dscl . -create SharePoints/imagesdrawings smb_guestaccess 1
sudo dscl . -create SharePoints/imagesdrawings smb_name iTunesMedia
sudo dscl . -create SharePoints/imagesdrawings smb_shared 1

Just use this code in the terminal. Everything that's placed in bolt, you need to change to a different name.

For your other question? iTunes won't see it. You need to configure it to use the Network share. If you want to re-use the local folder, you need to change it again.
0
 
Peterson50Author Commented:
Just do I understand this, the third line is give a sharepoint location named imagesdrawing with sharing name of itunesmedia
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
XaelianCommented:
I'm sorry, made an error, here is the real code:

sudo dscl . -create SharePoints/iTunesMedia
sudo dscl . -create SharePoints/iTunesMedia afp_guestaccess 1
sudo dscl . -create SharePoints/iTunesMedia afp_name iTunesMedia
sudo dscl . -create SharePoints/iTunesMedia afp_shared 1
sudo dscl . -create SharePoints/iTunesMedia DIR_path /Library/iTunes/media
sudo dscl . -create SharePoints/iTunesMedia ftp_name iTunesMedia
sudo dscl . -create SharePoints/iTunesMedia smb_createmask 644
sudo dscl . -create SharePoints/iTunesMedia smb_DIRmask 755
sudo dscl . -create SharePoints/iTunesMedia smb_guestaccess 1
sudo dscl . -create SharePoints/iTunesMedia smb_name iTunesMedia
sudo dscl . -create SharePoints/iTunesMedia smb_shared 1

Didn't change everything from my script
0
 
Peterson50Author Commented:
the afp_name or ftp_name or smb_name is its alias or alternate share name?

Thanks
0
 
XaelianCommented:
No it's the name if you want to access it with afp (apple file protocol), ftp, smb (windows file protocol) if you only want to share it with apple you won't need the ftp and smb name.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now