Depends on what you want to do. If you're new to it all, I'd recommend
using one of the web-based tools to set it up. More specifically, try
using swat. I haven't used redhat for a long time, but on installation you
should be able to specify that you want Samba installed and probably that
you want swat enabled. If not, try loading linuxconf, and going into the
inet services section and ensuring that swat is enabled. It should say
what port, and it will probably be port 901.
Once enabled, you can point your web browser towards it via
http://localhost:901. You may have to enter the root password, I can't
remember, but either way in here you can configure many options.
There are many confusing options (they confuse me) but there are a few
universal truths. You want both nmbd and smbd installed on startup. You
cannot have smbd, without nmbd. The other thing to note is that there are
four different levels of security.
User is what a home computer or laptop might have. This is where to access
any share, a username/password has to be given. On most home machines, a
user/password combination isn't required, and you can do the same by
allowing guest logins. This username/password combination is set in
Windows when you configure the access settings for your machine. It looks
for user/password combinations found in the smbpasswd file. This looks
like the /etc/passwd file. I can't remember if swat has an interface for
adding usernames and passwords.
Share is where a password is needed for each share. This can be useful in
certain circumstances (I like doing it on my XP laptop, where Shared
Documents is open to all, and everything else requires a password)
Server allows you to specify another machine to validate against. On a
Windows network you would have a primary domain controller and this would
normally be your password controller. The user doesn't know this as it is
discovered when the Windows machine is first plugged into the network, but
it allows username/password validation. This machine can be a Linux
machine running Samba, as you will discover.
Domain is a little different. On a Win2K network, if you are using Domain-
level passwords, then each machine, to login correctly and automatically
validate against every relevant share. This does the same. It tries to
make this machine part of the domain (which must have been pre-authorized
by the domain administrator) and it finds the domain controller
automatically and validates username/password combinations against it.
I hope this gets you started. There is a lot of good documentation
(although a little verbose as it works from the config file level) on
www.linuxdoc.org.
> Dear All,
Can any one tell me how to configure Samba.I have win2000
server and linux(redhat 7.2) server.I am new in system admin.
Please help me.
G Basak
mail me at
g_basak@r...
or
g_basal@h...