Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing Samba 3.0.14a-2 under Fedora Core 4
#1

This Tutorial is free and may be distributed with reference to this website

It is for people running Fedora Core 4 wanting to setup a working Samba

Server to access the Shares on a Linux machine from a Windows machine

 

Commands are written in green

Everything else are things you might edit / write / add

 

Get my Tutorials from [/url][url=http://www.bildunxxluecke.de/usr/fedora]http://www.bildunxxluecke.de/usr/fedora

 

1.

 

--------------------------------------------------------------------------------

 

Prepare your Enviroment:

 

- samba-common-3.0.14a-2.i386.rpm

- samba-3.0.14a-2.i386.rpm

- samba-client-3.0.14a-2.i386.rpm

- samba-swat-3.0.14a-2.i386.rpm (install only if you want have samba-webinterface)

 

2.

 

--------------------------------------------------------------------------------

 

Now its time to configure SAMBA:

 

rpm -i samba-common-3.0.14a-2.i386.rpm

rpm -i samba-3.0.14a-2.i386.rpm

rpm -i samba-client-3.0.14a-2.i386.rpm

rpm -i samba-swat-3.0.14a-2.i386.rpm

 

3.

 

--------------------------------------------------------------------------------

 

Everything should be installed now, its time to configure Samba:

 

- cd /etc/samba/

- vi smb.conf

 

You can safely edit this file (in fact you must) necessary is :

workgroup = < your windows network workgroup > e.g.: WORKGROUP

server string = < Information about your Samba Server >

netbios name = < Hostname of Sambaserver > e.g.: SMBSERV01

 

You dont need to touch the shares so far, if you want to share

other directorys keep and eye on the examples in the smb.conf

 

4.

 

--------------------------------------------------------------------------------

 

Now everything is done and you can start:

[root@test] smbd -D

[root@test] nmbd -D

 

Now you should be able to access your Sambaserver from your

Windowsmachine via \\< smb machine ip >

 

(5.)

 

--------------------------------------------------------------------------------

 

For those who want to use swat with samba :

 

- cd /etc/xinetd.d/

- vi swat

change disable = yes to => disable = no

- cd /etc/

- vi services

make sure the following line is in it : swat 901/tcp # Samba Web Administration Tool

to test do 'grep 901 /etc/services' , if not in insert it

now do : service xinetd restart

 

Swat should be running now !

 

(6.)

 

--------------------------------------------------------------------------------

 

To access Swat Webinterface from Lan :

 

- cd /etc/xinetd.d/

- vi swat

change 'only_from = 127.0.0.1' to 'only_from = 'your.netmask.0.0' e.g.: '192.168.0.0'

the 0 stands for wildcards (e.g. 192.168.0.0 to 192.168.255.255)

 

 

--------------------------------------------------------------------------------

 

Everything is fine .. enjoy now just do http:// SAMBAIP : 901 and login as root

Reply
#2

nicely done, and welcome to the linux-noob.com forums

 

i hope you stay and contribute ! and bring some noobs too ;)

 

cheers

 

anyweb

Reply
#3
nice walkthrough ASrael B)
Reply
#4

Hmm can this post be copied into Samba also?? Make it easier for us noobs to find!

 

Thx

~City

Reply
#5
done!
Reply
#6

You might want to mention security-related things, such as making sure that you are using user security by doing the following:



Code:
[global]
...
security = user
...




 

And with that security in place, you would also want to mention adding a user by issuing smbpassword -a as root, like this:



Code:
su
{enter password}
smbpasswd -a {user name}




 

This is a security measure that quite a few Windows computers lack, so by adding this security, we'll be one step ahead of Windows users! :)

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)