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

3Create the Linux user accounts if you haven't already done so.  In gnome, click the gnome Start (I'll call it "Start"), which is the G-shaped footprint at the bottom-left of the screen, Programs, System, User Manager.  Account names are case sensitive, should match the Windows login name for Windows to use Samba with the least amount of hassle.  Passwords must contain at least seven characters and are case sensitive.  Larry's rules for Windows names, will probably keep you out of trouble.  Unix does like lower case, however. A common practice for unix names is to use the user's first initial and last name and run them together, all lower-case.  Of course, root already exists, but is not listed and cannot be entered again with the User Manager.


4. Create a Samba password file based on the existing Linux password file (/etc/passwd).  That is, Samba has its own user/password file (/etc/samba/smbpasswd) in addition to the one required for Linux.  Yes, you have to do the following or restricted connections to user home directories won't work.  Click the Terminal icon on the task bar at the bottom-left of the screen to open the Terminal emulation program.  Type the following at the prompt:

cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd

The preceding command does not copy the passwords.  Manually set each Samba user's (including pcguest) password with:

smbpasswd usename

E.g., smbpasswd lbyard

And enter the password in the resulting window.  Don't forget root.  That also activates the user's Samba account.

Type the following:

chmod 600 /etc/samba/smbpasswd

... to restrict read/write permission to root.

Once you have created an smbpassword file, use the smbpasswd -a <username> command to add any new users to the file.  The command will not work until after you have created the smbpasswd file.

5.  Make a shared folder for the LAN users.  In gnome, click the root's Home icon in the upper-left corner of the gnome desktop (or click Start, Programs, Applications, Nautilus) to bring-up gnome's equivalent of the Windows Explorer file manager.  Click the up button in the Nautilus menu to go to the root (/) directory/folder.  Double-click the "home" folder to open it.  Click File in the menu, select New Folder, and enter "shared" as the folder name.  Click the Permissions tab, change the File Owner to pcguest, the File Group to pcguest, and check all of the boxes to give the file a chmod "Number View" of 777.

Actually, the File Owner and Group do not have to be changed.  You can call this file whatever you want and put it elsewhere if desired.  You could use /home/pcquest for the shared directory.  Or, omit it altogether if you don't want a shared folder/directory.

Purchase the pdf version of this article

< Previous | Contents | Top | Next - Samba Configuration File >

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.