Re: Re: GUIDE: How to set up SMB on Mac OSX

Home › Forums › Help and Support › GUIDE: How to set up SMB on Mac OSX › Re: Re: GUIDE: How to set up SMB on Mac OSX

#26996
Anonymous
Inactive

This guide did not got me running on OSX Lion (10.7[.1]). I found this great tutorial on how to set things right.

In addition to this tutorial, I had to change security=share and guest account = nobody in the global section and public = yes and guest ok = yes in my share section.

The following is a preview of my “smb.conf” file (located at “/localhost/opt/local/etc/samba3/”):


#
# *********************************************************************
# ** /etc/samba/smb.conf **
# *********************************************************************
# ** **
# ** Configuration file for Samba SMB server **
# ** **
# ** **
# *********************************************************************
#

#
# Global configuration options
#
[global]
# basic options
# CHANGE NETBIOS NAME
netbios name = MyMac
workgroup = WORKGROUP
server string = Samba %v
security = share
# misc options
hide dot files = yes

guest account = nobody
share modes = yes

# logging options
log level = 2
log file = /var/log/samba-%m.log
max log size = 512
debug timestamp = yes
syslog = 1


#
# device share configuration
#
# CHANGE YOURHARDDRIVE TO WHATEVER YOU WANT AND CHECK THE PATH IS CORRECT
[mypublicfolder]
comment = "This is my my public folder"
path = "/Volumes/Macintosh HD/Users/theuser/Public"
public = yes
available = yes
browseable = yes
guest ok = yes
create mask = 644
directory mask = 755
read only = yes

This sets up a read-only, public share. If you want it secured by user, consult Dr. Google.
Hope it helps!