Running Samba 3.0.23c Under Windows

來源:互聯網
上載者: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 should 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 would 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 steps: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.cmd9. 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.cmd12. Test Samba locally:    smbclient -L localhost -U guest%password        You should see:     Domain=[hostname] OS=[Unix] Server=[Samba 3.0.23]        Sharename       Type      Comment        ---------       ----      -------        tmp             Disk      /cygdrive/c/windows/temp        IPC$            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 should 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 should run the mkpasswds.cmd command:    cd /d C:\Progra~1\samba    mkpasswds.cmdTo 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 :("
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.