Go to Home Page GuidesHow to ArticlesReviewsForumsFrequently Asked QuestionsNewsLinksPotpourri

Site Search


How to Network Red Hat Linux and Microsoft Windows
Last updated: 9/7/02

6Edit the Samba configuration file.  While still in Nautilus navigate to the following folder: /etc/samb.  Click on smb.conf to highlight it.  In the menu click Edit, Copy File, Edit, Paste File.  That will make a backup copy of the configuration file in the same folder as the original.  Click Start, Programs, Applications, qedit, and Open /etc/samba/smb.conf.  This is what our smb.conf file looks like:

workgroup = WORKGROUP
server string = Samba Server
hosts allow = 192.168.123. 127.
guest account = pcguest
security = share
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
pam password change = yes
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
comment = Shared read/write directory for all LAN users and guests
path = /home/shared
public = yes
only guest = yes
writable = yes
printable = no
comment = Home directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
map to guest = bad user

Some of the longer lines above are wrapping.  They should paste OK, however.  Every line except those in square brackets has an = in it.

To duplicate it, enter the lines in ours and delete the rest (you have a backup) or place a ; in front any other lines in yours that have not been made into comments.  Or, if you are looking at this page with a browser in Linux (that is possible at this point in my configuration/network) copy and paste my lines into your file or make a new smb.conf file with them.  I use Mozilla (Start, Programs, Internet, Mozilla) for occasional Internet browsing from RH for this installation because it is already installed by default and ready to use, and the version on Netscape that comes with RH 7.3 is not configured and ready to use, and is an ancient version (the Mozilla is old, as well).

7. Start-up Samba. Click Start, Programs, System, Service Configuration, scroll down to smb, and check the checkbox next to it.  In the Service Configuration menu, click File and select Save Changes so the Samba daemons (programs that run in the background to handle routine tasks/implement functions) will be automatically started when Linux boots.  Then click the Start icon to start Samba the first time (you may still have to reboot to get it going).  The network should be working within a few minutes, if not sooner.  It might take some time for Linux to show-up in all of the network Browse Lists and you may have to restart Windows on the workstations.

Purchase the pdf version of this article

< Previous | Contents | Top | Next - Check the Network >

Copyright, Disclaimer, and Trademark Information Copyright © 1996-2006 Larry F. Byard.  All rights reserved. This material or parts thereof may not be copied, published, put on the Internet, rewritten, or redistributed without explicit, written permission from the author.