Samba Setup Guide For Linux
Samba Setup Guide For Linux
Samba Setup Guide For Linux
a
sp
Samba Setup Guide for Linux
Home Samba as a Primary Domain Controller
The
smb.file Samba as a Primary Domain Controller for a small network is fairly
Global easy to do. If you are looking for info on setting up a large network,
Parameters or replacing an existing NT server in your network, you may want
Share to do some reading here: . We will be concentrating on a small
Parameters network setup with Windows NT and Windows 2000 pc's.
Add users
If you are using Windows 2000 with Service Pack 2, you must use
Restarting Samba 2.2.1or newer for Samba to be a domain controller for
Samba these. It is much preferable to upgrade to 2.2.7 as there are several
Windows inhancements and security fixes.
View
Samba as a As for Windows XP, one piece of advice.....if you have bought
PDC Windows XP home edition, it will not support domain logons. You
Add a Win will need to upgrade to the Pro version.
pc to the
domain Before we get started, I will be assuming that you have a more
advanced knowledge of networking Windows and Linux. If you
Samba
are not, I strongly recommend that you check here for Linux:
FAQ
Networking-Overview-HOWTO. As for the Windows pc, please
consult your windows documentation on setting the network
domain logons, logon names and passwords. For more info:
http://www.helmig.com. Also I assume you have a working Samba
server connected to your network as well. If not you, may wish to
start here
# Global parameters
[global]
workgroup = home
Netbios name = samba
encrypt passwords = Yes
; this tells Samba that security level must be set to user
security = user
[homes]
read only = no
browseable = no
[music]
path = /data/mp3
public =yes
browseable = yes
write list = mw, jackie
[everyone]
path = /data/everyone
browseable = yes
read only = no
So that is about it for the smb.conf file, save it and exit the editor.
Now we will need to add a Windows machine account and
password to Linux and Samba.
So there you are, a very simplistic Samba Primary Domain Controller setup. Again, plea
mind, this is nowhere a complete setup, it is only a small demonstration of the powerful
Samba. If you like more info on this, go to www.samba.org
Top of page
Home
Now Samba has to be restarted so that all of the changes that we have made will take effect.
Open a terminal window and type in the following
Now if you followed the instructions throughout this document, Samba should be setup for file
sharing with Windows. If you logon onto Windows with the username john and password of
jrambo, you should see the shares in your network neighborhood. And if you browse to the
music share, you will find your mp3 files!
Top of page Next: Samba as Primary Domain Controller
Home
public = yes: Specifies anyone can access and view the contents of
/data/mp3
write list = mw, Jackie: Although anyone can view and excute (meaning
see and play any mp3 in this directory). For security and practical reasons I
have set this share so that only mw (thats me)and jackie can delete or add
files. You can add as many names as you wish to this line ie:, mw, john,
tiffany etc. To exclude any person from being able to access this share
altogether, add the line: invalid users = vicky, steve. These names are the
logon names from Windows, and are not case sensitive. They also must
have a logon name and Samba password on the Linux pc.
In order for Samba to accomplish all this we need to set certain Linux file
permissions such as these. This can be done by opening your file manager
(in this case Konqueror) and right clicking on the /data/mp3 share and
choosing properties
.
read only = no: By default Samba will always make any directory read
only for security reasons, so we need to let Samba know that we want to be
able to write to this directory.
browesable = yes: This share will show in in Network Neighborhood as
"everyone"
In order for Samba to be able to allow anyone read, write access to this
share, we need to set certain Linux file permissions such as these. This can
be done by opening your file manager (in this case Konqueror) and right
clicking on the /data/everyone share and choosing properties