Multiple Share Names for folder OSX Server Lion

Posted on 2012-08-26
Last Modified: 2012-09-06
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.
Question by:Peterson50

    Author Comment

    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?
    LVL 13

    Expert Comment

    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.

    Author Comment

    Just do I understand this, the third line is give a sharepoint location named imagesdrawing with sharing name of itunesmedia
    LVL 13

    Accepted Solution

    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

    Author Comment

    the afp_name or ftp_name or smb_name is its alias or alternate share name?

    LVL 13

    Assisted Solution

    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.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    With the major release of Apple's 7th addition to the Mac OS X family, Mac OS X 10.6 Snow Leopard, there are a lot of enhancements which have arrived with this new OS X upgrade. With the number of enhancements and refinements I can provide deta…
    In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now