Sunday, February 13, 2011

Samba .config

#documentation on how to configure a samba file server with your local machine
#The first step is to install the samba package.

sudo apt-get install samba

#we need to edited something in the configuration of samba
#edit these : its in Global section.

vi /etc/samba/smb.conf

workgroup = EXAMPLE
...
security = user

#Create a new section at the bottom of the file,for the directory to be shared:
[share]
comment = Ubuntu File Server Share
path = /srv/samba/share
browsable = yes
guest ok = yes
read only = no
create mask = 0755
#we need to create directory that we want to share

sudo mkdir -p /srv/samba/share

#The -p tells mkdir to create the entire directory tree if it doesn't exist.

#now we need to change the permission to the directory we created.
sudo chown nobody.nogroup /srv/samba/share/

#we need to just restart the samba to give effect to the change we made

sudo restart smbd
sudo restart nmbd


#now a simple samba is configured
#congrats and Save Tibet...

No comments:

Post a Comment