You are not logged in.

#1 2012-02-09 02:54:28

*nixer
Member
Registered: 2011-11-11
Posts: 56

Help setting up samba/smb

Hi.

Could anyone recommend a tutorial 'for dummies' on how to set up a samba client to access other networked non-local shares?

That, or maybe recommend a program that auto-configures everything?

Offline

#2 2012-02-09 02:55:47

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,546

Offline

#3 2012-02-09 03:07:48

allen875
Member
From: Winchester, VA
Registered: 2011-09-02
Posts: 46
Website

Re: Help setting up samba/smb

Here is a very simple Samba share configuration you can use, I highlighted in red the items you should change, keep in mind there are alot of options and security features you can implement into Samba, this setup will keep things simple if your not worried about those issues.

#======================= Global Settings =======================
[global]
	log file = /var/log/samba/log.%m
	so_rcvbuf = 8192 SO_SNDBUF=8192
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	obey pam restrictions = yes
	socket options = TCP_NODELAY
	map to guest = bad user
	encrypt passwords = true
	passdb backend = tdbsam
	passwd program = /usr/bin/passwd %u
	dns proxy = no
	netbios name = [color=#FF0000]HOSTNAME[/color]
	server string = %h server (Samba, Ubuntu)
	path = [color=#FF0000]path/to/home[/color]
	default = global
	unix password sync = yes
	os level = 20
	auto services = homes
	syslog = 0
	panic action = /usr/share/samba/panic-action %d
	usershare allow guests = yes
	max log size = 1000
	pam password change = yes

#======================= Share Definitions =======================
[Home]
	guest account = [color=#FF0000]username[/color]
	comment = [color=#FF0000]username[/color] Home Folder
	writeable = yes

[Music]
	guest account = [color=#FF0000]username[/color]
	comment = External Music Drive
	writeable = yes
	path = /media/Music

[Video]
	guest account = [color=#FF0000]username[/color]
	comment = External Video Drive
	writeable = yes
	path = /media/Video

[webroot]
	guest account = [color=#FF0000]username[/color]
	comment = Web Folder
	writeable = yes
	path = /var/www

Offline

#4 2012-02-09 03:32:16

*nixer
Member
Registered: 2011-11-11
Posts: 56

Re: Help setting up samba/smb

I tried this, but the '/mnt/smbnet' folder came up blank.

allen875 wrote:

Here is a very simple Samba share configuration you can use, I highlighted in red the items you should change, keep in mind there are alot of options and security features you can implement into Samba, this setup will keep things simple if your not worried about those issues.

This is what I mean by 'for dummies'. I don't really have the time to learn networking from the ground up just so I understand how to setup samba. The above configuration doesn't make any sense to me.

I wouldn't know how to apply it to accessing my networked devices with smb shares, what packages I would need to access the shares through my file manager Thunar, etc...

In the end, I'd even be willing to try a full desktop if it had integrated samba access. I'm currently running a minimal Openbox + tint2 + Thunar setup.

Last edited by *nixer (2012-02-09 03:33:44)

Offline

#5 2012-02-09 03:39:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Help setting up samba/smb

*nixer wrote:

I tried this, but the '/mnt/smbnet' folder came up blank.

Did you properly mount it?

Offline

#6 2012-02-09 23:06:06

allen875
Member
From: Winchester, VA
Registered: 2011-09-02
Posts: 46
Website

Re: Help setting up samba/smb

Ok so you have a samba share setup on another machine that you want to access via the command shell, why not just have it mount via the fstab there is no need for other packages or difficult setups. http://www.cyberciti.biz/faq/configure- … -etcfstab/

BTW, if your other machine is a linux machine I would recommend using an NFS setup since it was specifically built for *nix to *nix networking.
https://wiki.archlinux.org/index.php/Nfs

Offline

Board footer

Powered by FluxBB