Dummies guide to getting samba working

Post Reply
dan12345
Posts: 2
Joined: Thu Jun 25, 2015 9:10 pm
languages_spoken: english
ODROIDs: c1
Has thanked: 0
Been thanked: 0
Contact:

Dummies guide to getting samba working

Post by dan12345 »

Hi,

Apologies for a dumb newbie question, but does anyone have an idiot's guide to getting samba working on my C1? I need to give other macs/PCs on the network access to the C1. I'd hoped I could use system-config-samba, but that doesn't start. Attempts to use the terminal haven't been successful...

a step by step guide would be really appreciated

thanks,

Dan

dertester
Has thanked: 0
Been thanked: 0

Re: Dummies guide to getting samba working

Post by dertester »

Translated from my favourite guide: http://jankarres.de/2013/11/raspberry-p ... tallieren/
Its usually a good idea to check for raspberry pi tutorials and modify for odroid. Its the same base system but raspberry pi has most topics already covered.

1) INstall samba

Code: Select all

sudo apt-get install samba samba-common-bin
2)Edit config

Code: Select all

sudo nano /etc/samba/smb.conf
2a)uncomment or add

Code: Select all

security = user
2b)Add to config for your share folder

Code: Select all

[TestShare]
path = /path/to/folder
writeable = yes
guest ok  = no
(ps. nano is an editor for command line. You can save changes with ctrl+o and exit with ctrl+x)

3)Add your user (odroid usually) to allow samba access giving him a password:

Code: Select all

sudo smbpasswd -a odroid
4)Restart Samba to re-read changed config

Code: Select all

sudo /etc/init.d/samba restart

dan12345
Posts: 2
Joined: Thu Jun 25, 2015 9:10 pm
languages_spoken: english
ODROIDs: c1
Has thanked: 0
Been thanked: 0
Contact:

Re: Dummies guide to getting samba working

Post by dan12345 »

thank you!

When I type "udo smbpasswd -a odroid" I get an error: "failed to open: /var/lib/samba/private/secrets.tdb"

Have I done something wrong?

dertester
Has thanked: 0
Been thanked: 0

Re: Dummies guide to getting samba working

Post by dertester »

Its sudo instead of udo. maybe thats the problem?
Are you running the official odroid image? Everything updated?

Anyway, the commands before worked just fine?

You can try to fix it this way:
sudo mkdir /var/lib/samba/private

sudo touch /var/lib/samba/private/secrets.tdb

then you can add your user

jalcaid001
Posts: 202
Joined: Mon Nov 28, 2016 2:43 am
languages_spoken: english spanish
ODROIDs: XU4, C2
Has thanked: 0
Been thanked: 4 times
Contact:

Re: Dummies guide to getting samba working

Post by jalcaid001 »

smbpasswd is not found even after doing 'sudo apt-get install samba samba-common-bin'

What is my problem?

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest