Sunday, November 22, 2009  
Google
Web pcquest.com

CIOL Network sites

Search by Issue | Sitemap | Advanced Search

• For most updated version of DQ TOP 20 issue, visit dqindia.com • Ad : Play and Plug ERP by IBM


 
    Enterprise Solutions
    Hands On
    ITstrategy

    Developer

    Tech Forum

    SMB Forum

    Trends

    Shootout

    Reviews
    Editorials
    Linux and Open Source
    Technology
    Extraedge

    IT Careers

    Vertical Focus

Subscribe to Print magazine.


now!


Newsletter

 

Home > Linux > Setting Up A Linux Office Server


Setting Up A Linux Office Server

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:

  1. 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.
  2. 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.
  3. 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.
  4. Now comes the important thing—find the item domain logons = and set it to yes.
  5. 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).
  6. Finally, scroll down till you find a commented-section ;[tmp] and remove the semicolons from that section too.
  7. 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   

End of the article

Related CIOL Network links   External links  

None

 

None



Read Previous Linux...

   




Untitled Document



ZTE:Leading CDMA Technology


Extraordinary Networks:Freedom of Choice





Previous Stories

Managing System Logs

Linux Speak: FAQ 

Using FIPS

Message boards

Discuss this and many other IT topics at the
CIOL message board






   
 

 
 

Magazine Subscription | RQS | Contact Us | Team PCQuest | Advertising - Print | jobs@cybermedia