Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
By cdabb at 2005-02-07 10:08
Basic Samba Network File Sharing
Introduction to Samba Server:
Samba can be setup to function as different types of network server. In this article we will cover the basic Samba setup for the Novell Linux Desktop. This document will cover the following areas of the Samba server:
1. Samba Server Types overview
2a. Basic file sharing with MS Windows computers
2b. Samba Server User Accounts & Services
3. Mounting MS Windows File server
To setup the Samba server you will need to have root privileges. Go in to the Samba directory and edit the smb.conf file.
# cd /etc/samba
# vi smb.conf
To setup a basic share in Samba you will need the following entrys.
# The workgroup is going to be setup to your internal networks workgroup or domain.
workgroup = TUX-NET
# Netbios name it going to be the computer name of the Samba server.
netbios name = NOVELL
# Server string is the equivalent of the NT Description field
server string = Linux Samba Server
# Samba Security Setting
security = user
# You may wish to use password encryption. If you are going to be connecting from a windows 9x computer you will not want to enable this option. Windows 2000 and up, you will want to enable the encrypt passwords.
encrypt passwords = yes
# Set local master to no if you don't want Samba to become a master browser on your network. You may want to have this turned off by default.
local master = no
#===== Share Definitions =====
# This part of the smb.conf is where you setup the network share
This will let the the home directory get shared. All users home directory on the computer will show up with if this is added. (Note: You will only be able to access you own home directory by default. Other users directory's will not show up in your network browser unless you have setup the permissions to let you access it. most of the time you will want to comment out this entry.
# Here is a private directory that can only be accessed by tim. (Note: tim will need to have write access to this directory)
comment = Tim's Share
path = /usr/somewhere/private
valid users = tim
public = no
writable = yes
printable = no
2b. Samba Server User Accounts & Services
Now that the smb.conf file has been setup you will need to add the Samba user account. The Samba user account will tie in with your local Linux account. The password to access the Samba can be setup to use the same or different password than your local account. In the example you will see the -a option, this will tell Samba to add the users account to the smbpasswd.
# smbpasswd -a tim
To change a users Samba password use the same command as above with out the -a option. Now you can start the Samba service.
# /etc/init.d/smb start
To have the Samba service start on boot, use the chkconfig tool: