Continued from Page 2
Learn to use JOE, now, while working:
Make sure that you are logged in as root, and issue the command joe /etc/smb.conf. This
will fire up the editor and load configuration items.
Go ahead, use your cursor keys to scroll and read the file.
If you already know something about Windows Networking, you’ll see many familiar
terms and settings.
Now hit Ctrl-T-W. (This turns off the word-wrap
feature that could otherwise mess up the file).
Done? OK, now watch how easy it is to get things
configured:
- Scroll down and find the item workgroup =. Here your
Windows workgroup (and also domain) is defined. The default is something like
Mygroup. In
your office, you probably don’t want to have a name like that for a network group, so
let’s change it to something meaningful. Here at PC Quest Labs, we changed it
to PCQLABS, though you could use any other name. Make sure it is eight characters or less,
and contains no spaces. This is not a limitation of SAMBA but of some older Windows
clients.
- Scroll down further till you find the item security =.
This defines whether you require a formal login into the server before shares are made
available, or whether you just want a user to know his password for the actual shared
resource. The default is set to security = user and you should leave it that way.
- Find the item called local master = and set it to yes,
then the item os level =, which should be set to 33. The next item is domain
master = which you should also set to yes. Ditto for preferred master =.
Make sure that no semicolon (;) is given before any of these entries or the entry will be
disabled.
- Now comes the important thing—find the item domain
logons = and set it to yes.
- Almost there, scroll down till you find a commented-section ;[netlogon].
Remove the semicolons from the beginning of each line in that section. Note that the path
is shown as
/home/netlogon (we will need this value later).
- Finally, scroll down till you find a commented-section ;[tmp]
and remove the semicolons from that section too.
- Now save the file and quit (Ctrl-KXI).
We could have done more, but let’s first get these
running. To create the netlogon directory
(/home/netlogon), enter the command mkdir /home/netlogon. Enter chmod 0755
/home/netlogon to give it read and execute, but not write permissions.
Done? OK, let’s test that using the command testparm
| less. Scroll through the results and look for any error messages—if you have
followed the above steps correctly, your shouldn’t see any. Hit q to quit the
viewer and go back to the command prompt.
Finally, enter the command /etc/rc.d/init.d/smb restart to
tell the SAMBA server components to restart using this new configuration file. You should
see the existing components being stopped and then restarted.
Page(s) 1 2 3 4 5 |
|