,
[ Pobierz całość w formacie PDF ]
.There are three ways to start:./etc/rc.d/init.d/functions" By hand PATH="/usr/local/samba/bin:$PATH"" As stand-alone daemonscase $1 in'start')" From inetdecho "Starting smbd."smbd -Decho "Starting nmbd."Starting the Daemons by Handnmbd -D;;If you re in a hurry, you can start the Samba daemons by hand.As root, simply'stop')enter the following commands:echo "Stopping smbd and nmbd."killproc smbd# /usr/local/samba/bin/smbd -Dkillproc nmbd# /usr/local/samba/bin/nmbd -Drm -f /usr/local/samba/var/locks/smbd.pidSetting Up Windows 95/98 Computers 51Chapter 3Accounts and PasswordsThe first thing we need to do is to tell Windows to keep user profiles separate,and to collect usernames and passwords to authenticate anyone trying to access aSamba share.We do so via the Password settings in the Control Panel.If you are3not familiar with the Windows Control Panel, you can access it by choosing theSettings menu item from the pop-up menu of the Start button in the lower-left cor-ner of the screen.Alternatively, you ll find it as a folder under the icon in theupper-left corner that represents your computer and is typically labeled MyConfiguring WindowsComputer.After selecting the Passwords icon in the Control Panel, click on the User ProfilesClientstab on the far right.You should see the dialog box shown in Figure 3-1.Thenclick the lower of the two radio buttons that starts Users can customize their pref-erences. This causes Windows to store a separate profile for each user, andsaves the username and password you provide, which it will use later when itYou ll be glad to know that configuring Windows to use your new Samba server isconnects to an SMB/CIFS server.Finally, check both the options under the Userquite simple.SMB is Microsoft s native language for resource sharing on a localProfile Settings border, as shown in the figure.area network, so much of the installation and setup on the Windows client sidehas been taken care of already.The primary issues that we will cover in this chap-ter involve communication and coordination between Windows and Unix, twocompletely different operating systems.Samba uses TCP/IP to talk to its clients on the network.If you aren t already usingTCP/IP on your Windows computers, this chapter will show you how to install it.Then you ll need to configure your Windows machines to operate on a TCP/IPnetwork.Once these two requirements have been taken care of, we can showhow to access a shared disk on the Samba server.This chapter is divided into three sections.The first section covers setting up Win-dows 95/98 computers while the second covers Windows NT 4.0 machines.Thefinal section provides some prerequisite information on how SMB connections aremade from Windows clients and servers, which is useful as we move into the laterchapters of the book.Setting Up Windows 95/98 ComputersFigure 3-1.The Passwords Properties panelUnfortunately, Windows 95/98 wasn t designed for a PC to have more than oneuser; that concept is more inherent to a Unix operating system or Windows NT.The next step is to select the Change Passwords tab on the left side of the dialogHowever, Windows 95/98 does have limited support for multiple users: if you tellbox.In order for Samba to allow you access to its shares, the username and pass-it, the operating system will keep a separate profile (desktop layout) and pass-word you give to Windows must match the account and password on the Sambaword file for each user.This is a far cry from true multiuser security.In otherserver.If you don t have this tab in your dialog box, don t worry; it s probablywords, Windows 95/98 won t try to keep one user from destroying the work ofbecause you haven t given yourself a Windows username and password yet.Sim-another on the local hard drive like Unix, but profiles are a place to start.ply click the OK button at the bottom and respond Yes when Windows asks toreboot.Then, skip down to the section entitled Logging in for the first time.5054 Chapter 3: Configuring Windows Clients Setting Up Windows 95/98 Computers 55Figure 3-6.Selecting a protocol to installFigure 3-5.The Windows 95/98 Network panelwith Windows installations but undesirable when TCP/IP is running.Remove Net-BEUI if you possibly can it s unnecessary and makes debugging Windows brows-ing difficult.If you don t have any Novell servers on your network, you canremove Novell (IPX/SPX) as well.Adding TCP/IPIf you don t see TCP/IP listed at all, you ll need to install the protocol.If youFigure 3-7.Selecting a protocol to installalready have TCP/IP, skip this section, and continue with the section Setting YourName and Workgroup, later in this chapter.Configuring TCP/IPInstalling TCP/IP isn t difficult since Microsoft distributes its own version of TCP/IPIf you have more than one networking device (for example, both an Ethernet cardfor free on their installation CD-ROM.You can add the protocol by clicking on theand a dialup networking modem), each appropriate hardware device should beAdd button below the component window.Indicate that you wish to add a spe- linked to the TCP/IP protocol with an arrow, as shown in Figure 3-8.Select thecific protocol by selecting Protocol and clicking Add [ Pobierz całość w formacie PDF ] |
Archiwum
|