Ubuntu Server Unable to config SAMBA for file sharing

Asked by uccio

I install Ubuntu Server and work correctly , but when I configure SAMBA for file shering I can not shere any file with the ather machine on the Home network which consist of a 2 Window 7 , Window XP and 2 Ubuntu 12.4 .
Once I get the File Sherin to work I hop to use this machine for backup on a RAID 1or 3;
Your hel will be most aprociated, this is the first time I install a Linux Server and I only been using Ubuntu desk machine for approximatly 18 month, i been very happywith it.
Thank you in advance.

Question information

English Edit question
Ubuntu samba Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
Thomas Krüger (thkrueger) said :
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :

If you run:

sudo nano /etc/samba/smb.conf

add the below lines (but change it for your shares and usernames):

path = /home/andy/Downloads
comment = Andy's stuff
browsable = yes
read only = no
writable = yes
valid users = leanne andy
invalid users = root bin daemon nobody

Press CTRL+X, Press Y, Press ENTER and then run:

sudo smbpasswd -a andy

(again match the names you add in the smb.conf file), you will use this to authenticate with. Now if you run:

sudo service smbd stop; sudo service smbd start

And the share will be accessible. If you want to add another share, just add another entry in the smb.conf file and restart the service. You can also add more samba users and you can control whom has access to what. Easy stuff.

Revision history for this message
uccio (judith-uccio) said :

This work well , I very much approciated your answer and the quik response

Revision history for this message
actionparsnip (andrew-woodhead666) said :

Samba is a simple creature, setting up a samba file server is super easy. If you also install openssh-server you can access the files securely using SFTP so you can configure your router to allow the traffic, you can access the files over the web from another network.