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 >