networking question - mac/pc, specific folder

Discussion in 'macOS' started by BabaG, Jan 5, 2007.

  1. BabaG macrumors member

    Joined:
    Jan 5, 2007
    #1
    i'm just setting up a small network with a final cut pro system at the
    heart. there is also a simple pc from which i'd like to feed some files
    to the mac. i have successfully gotten them to see each other so far but
    would like help in getting a more specific configuration.

    as things are now, when i log into the mac from the pc i see my user
    account's home folder. what i would like to have happen is that the pc
    only see a specific folder on the mac (osx 10.4.8) rather than the entire
    home folder. the folder i want to have the pc see is not on the main mac
    system drive where the home folder resides, it is on an external sata raid
    box.

    on windows i can select specific folders and assign them to share or not
    and each of these folders then shows up in the windows network neighborhood
    as an icon. i'd like to do something like this with a mac folder.

    the reason for this is that the pc is being used for a single purpose,
    generating still photo images which the mac will use. i want to save
    them from the pc directly to a specific folder and not have the pc user
    ever see anything else of the mac. iow, as far as the pc user knows,
    the mac folder is just an external storage location, nothing more.

    every link to info i've found online so far either stops at the info on
    displaying the mac's home folder on the pc, nothing about limiting the
    pc's view to specific folders other than home, or, more commonly, they
    show how to go the other way, displaying pc folders on the mac.

    any clues or links to how i can do this are much apreciated,
    BabaG
     
  2. 4np macrumors 6502a

    4np

    Joined:
    Feb 23, 2005
    Location:
    The Netherlands
    #2
    The weird thing with OSX's default samba configuration is that it shares the entire user folder. As the share configuration is stored in one single configuration file (/etc/smb.conf) you can edit that manually if you want. Make sure to create a backup first though :)

    After you made any changes you have restart samba (smb).

    For more information on the samba configuration file check (for example) this page: http://samba.org/samba/docs/man/Samba-Developers-Guide/parsing.html

    A quick answer would be:

    comment (add a ; at the beginning of the line) the following section to disable sharing of user dirs:

    Code:
    ;[homes]
    ;   comment = User Home Directories
    ;   browseable = no
    ;   read only = no
    
    add the following section to share (for example) /Users/BabaG/movies:

    Code:
    [movies]
       path = /Users/BabaG/movies
       public = yes
       only guest = yes
       writable = yes
       printable = no
    
    good luck :)
     

Share This Page