joi, 26 ianuarie 2012

Setup Samba Server In Ubuntu


This tutorial will I will be teaching you how to setup Samba Server on Ubuntu. Using a Samba Server to share files between your Ubuntu and Windows computers, this is one of the best and easiest ways to accomplish this. So lets get started and install the required packages by running the following command.

sudo apt-get install samba

This should install the required packages however we still need to configure Samba Server so lets open up smb.conf in gedit.

sudo gedit /etc/samba/smb.conf

Now lets change the following two values in the Samba Server config.

workgroup = WORKGROUP

At the bottom of the Samba Server config add this and modify it to your needs.

[share]
comment = Ubuntu File Server Share
path = /srv/samba/share
browsable = yes
guest ok = yes
read only = no
create mask = 0755

Now all thats left is to create the Samba Server directory and restart the Samba Services, simply go into an open Terminal and run the following commands.

sudo mkdir -p /srv/samba/share
sudo chown nobody.nogroup /srv/samba/share/
sudo restart smbd
sudo restart nmbd

Congrats! You now have a fully functional Ubuntu Samba Server!


Niciun comentariu:

Trimiteți un comentariu