Jump to content
Sign in to follow this  
ASrael

Installing Samba 3.0.14a-2 under Fedora Core 4

Recommended Posts

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 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

Share this post


Link to post
Share on other sites

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

 

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

 

cheers

 

anyweb

Share this post


Link to post
Share on other sites

nice walkthrough ASrael B)

Share this post


Link to post
Share on other sites

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

 

Thx

~City

Share this post


Link to post
Share on other sites

done!

Share this post


Link to post
Share on other sites

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

[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:

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! :)

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...