Running Samba 3.0.23c under Windows

Source: Internet
Author: User

Using this makefile, and this patch, I successfully compiled Samba under windows.

Here are the steps to run Samba 3.0.23c under Windows xp pro SP2. this shoshould also work (but I haven't tested) for any version of Windows, including Windows XP Home, 2000, or 2003:

Samba 3.0.23 on windowsross smith11/07/2006 Please note in order to get samba to compile under cygwin, I hadto remove a build check that reports: Error: no locking available. running Samba wocould be unsafeso please do not assume Samba will actually work under windows. assume it won't. instructions to remove samba are at the end of this file. to install Samba 3.0.23 in windows, perform the following step S: 1. Download samba-3.0.23c-ross.zip: wget http://smithii.com/files/samba-3.0.23c-ross.zip2. Unzip to "C: \ progra ~ 1 ". For example: unzip-o-d" C: \ progra ~ 1 "samba-3.0.23c-ross.zip3. Add the following to your system path: C: \ progra ~ 1 \ Samba \ bin; C: \ progra ~ 1 \ Samba \ sbin4. open a command prompt window: Start/run/CMD [enter] 5. Change to the samba Directory: CD/d c: \ progra ~ 1 \ samba6. if cygwin is installed, skip to Step 7. otherwise, run: smbsetup. CMD go to step 9. 7. if c: \ cygwin \ bin is in your path, you will need to delete the cygwin DLL files in c: \ progra ~ 1 \ Samba \ bin, by typing: del bin \ Cyg *. DLL 8 run cygsetup. CMD: cygsetup. 20179. reboot COMPUTER: shutdown-r-t 0-c "Let's samba! "After rebooting... 10. Open a command prompt window: Start/run/CMD [enter] 11. Run daemons: CD/d c: \ progra ~ 1 \ Samba start_daemons.20.12. test Samba locally: smbclient-l localhost-u guest % password you shoshould see: domain = [hostname] OS = [UNIX] Server = [Samba 3.0.23] sharename type comment --------- ---- TMP Disk/cygdrive/C/Windows/temp IPC $ IPC Service (Samba Server) guest disk home directoriesdomain = [hostname] OS = [UNIX] Server = [Samba 3.0.23] server comment --------- ------- workgroup master -- ------- 13. test Samba from another Windows computer: net use * \ 1.2.3.4 \ tmp/user: Guest password substitute your hostname or IP address for 1.2.3.4. you shocould see: Drive Z: is now connected to \ 1.2.3.4 \ tmp.14. change the default passwords: smbpasswd guest smbpasswd administrator15. if you add or remove users, you shocould run the mkpasswds. CMD command: CD/d c: \ progra ~ 1 \ Samba mkpasswds. failed to remove samba, do the following: 1. kill the smbd and nmbd processes (by rebooting if you want) 2. remove the following from your system path: C: \ progra ~ 1 \ Samba \ bin; C: \ progra ~ 1 \ Samba \ sbin3. open a command prompt window: Start/run/CMD [enter] 4. Change to the samba Directory: CD/d c: \ progra ~ 1 \ samba5. run the following: netstart. CMD Regedit/s enablenetbios. Reg CD .. rmdir/S/Q Samba shutdown-r-t 0-c "no more Samba :("
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.