[code001] mkdir -p ${HOME}/dev ; cd ${HOME}/dev [code002] tar zxf ${HOME}/Downloads/samba-3.6.10.tar.gz [code003] cd samba-3.6.12/source3 ./configure [code004] ./configure --help [code005] make [code006] sudo make install [code007] cd /usr/local/samba/bin for i in * ; do \ sudo install_name_tool -change bin/libtalloc.dylib /usr/local/samba/lib/libtalloc.dylib "$i"; \ sudo install_name_tool -change bin/libtalloc.dylib.2 /usr/local/samba/lib/libtalloc.dylib.2 "$i"; \ sudo install_name_tool -change bin/libtdb.dylib /usr/local/samba/lib/libtdb.dylib "$i"; \ sudo install_name_tool -change bin/libtdb.dylib.1 /usr/local/samba/lib/libtdb.dylib.1 "$i"; \ done [code008] cd /usr/local/samba/sbin for i in * ; do \ sudo install_name_tool -change bin/libtalloc.dylib /usr/local/samba/lib/libtalloc.dylib "$i"; \ sudo install_name_tool -change bin/libtalloc.dylib.2 /usr/local/samba/lib/libtalloc.dylib.2 $i"; \ sudo install_name_tool -change bin/libtdb.dylib /usr/local/samba/lib/libtdb.dylib "$i"; \ sudo install_name_tool -change bin/libtdb.dylib.1 /usr/local/samba/lib/libtdb.dylib.1 "$i"; \ done [code009] sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.netbiosd.plist sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.smbd.plist [code010] Label org.samba.nmbd OnDemand ProgramArguments /usr/local/samba/sbin/nmbd -F RunAtLoad ServiceDescription netbios [code011] Label org.samba.smbd OnDemand ProgramArguments /usr/local/samba/sbin/smbd -F RunAtLoad ServiceDescription samba [code012] Label org.samba.swat Disabled KeepAlive ProgramArguments /usr/local/samba/sbin/swat -a -debug=10 Sockets Listeners SockFamily Unix SockNodeName 0.0.0.0 SockServiceName swat SockPathMode 901 RunAtLoad ServiceDescription swat inetdCompatibility Wait [code013] # Christian Callsen # $$ Samba : les deux lignes sont commentees ; swat devient le service du port 901 #smpnameres 901/udp # SMPNAMERES #smpnameres 901/tcp # SMPNAMERES swat 901/tcp # swat [code014] [global] workgroup = WORKGROUP server string = maMachine [UnDossierEnLectureSeule] comment = UnDossierEnLectureSeule path = /Users/monUser/UnDossierEnLectureSeule available = yes guest ok = yes read only = yes [UnDossier] comment = UnDossier path = /Users/monUser/UnDossier available = yes guest ok = yes create mask = 644 directory mask = 755 read only = no [code015] sudo /usr/local/samba/bin/smbpasswd -a monUser [code016] sudo launchctl load -w /Library/LaunchDaemons/org.samba.smbd.plist sudo launchctl load -w /Library/LaunchDaemons/org.samba.nmbd.plist sudo launchctl load -w /Library/LaunchDaemons/org.samba.swat.plist [code017] # logfilename [owner:group] mode count size when flags [/pid_file] [sig_num] /usr/local/samba/var/log.nmbd 640 5 10000 * J /usr/local/samba/var/log.smbd 640 5 10000 * J /usr/local/samba/var/log.swat 640 5 10000 * J