Simple Samba Server Configuration

Post your tutorials and howtos here.
Deleted User 2763

Simple Samba Server Configuration

Postby Deleted User 2763 » 19 Jul 2013 14:28

samba is installed out of the box in SolydXK.
This is a way to get a simple samba server configured in SolydXK

edit /etc/samba/smb.conf

In the [global] section:
add

Code: Select all

follow symlinks=yes
wide links=yes
unix extensions=no
client lanman auth = yes
client ntlmv2 auth = no
This allows samba clients (like Windows) to follow the symbolic links (symlinks) defined on your SolydXK samba server.

In the [homes] section:
change

Code: Select all

browseable = yes
read only = no
and uncomment ( remove the leading ; )

Code: Select all

create mask = 0700
This shares the user homes on your SolydXK samba server for read/write and create.

restart samba

Code: Select all

sudo /etc/init.d/smbd restart
add your user

Code: Select all

sudo smbpasswd -a [your samba user name]
enter the password you want to use for samba

Use your samba user name/password to connect to your SolydXK samba server (from Windows, another Linux workstation, etc) When connecting from Windows to the samba server, you might need to change your user domain to the name of your server in order to prevent Active Directory servers from trying to authenticate you rather than your SolydXK samba server.

User avatar
kwisher
Posts: 42
Joined: 30 Mar 2013 17:31

Re: Simple Samba Server Configuration

Postby kwisher » 20 Jul 2013 14:09

Hinto, not trying to hijack your post but I would like to submit my Samba How-To. I'm curious how your tips can be incorporated with mine?? My how-to is based off of Mint-5 but it is not difficult to parse out the older distro specific info.
https://www.dropbox.com/s/dlyerlyoju3fc ... how-to.pdf
The instructions suggested Windows XP or better, so I installed Linux :)

Deleted User 2763

Re: Simple Samba Server Configuration

Postby Deleted User 2763 » 21 Jul 2013 03:32

No worries.
BTW.. I'm uploading the smb.conf (smb.txt) file.
-Hinto

EDIT: Hey just read the HOWTO. I think it's good, but probabaly need a different topic. I had this one a Simple. That is, it's about 4 edits and you can share your home (and other homes) to the Windows world. But the you are the mods can organize it however is appropriate. There's always more than one way. Thanks for the tips.
-Hinto
Attachments
smb.txt
(12.04 KiB) Downloaded 159 times

bcrest1
Posts: 4
Joined: 02 Apr 2014 17:48

Re: Simple Samba Server Configuration

Postby bcrest1 » 09 Apr 2014 21:16

Props to Hinto for a great Tutorial here on a basic samba config. Done as discribed above, this works for connectivity to the samba server's home directory from networked machines.

What it did not give me, straight from a copy/paste of the attached file above, was connectivity and browsing of windows 7 shares.... until, googling to high heaven, I got a tip and added:

Code: Select all

name resolve order = bcast host
I uncommented "name resolve order" in smb.conf and edited in only "bcast host". I saved/closed the restarted samba:

Code: Select all

sudo /etc/init.d/samba restart
I also rebooted for good measure. Whammo, my Win7 shares resolved in network browsing with all folders accessable. This was on & off over a week's effort to solve. I hope, after receiving so much help so far from others on this forum, this small contribution will be of assistance to others.
Image

Goodbye XP...

Deleted User 2763

Re: Simple Samba Server Configuration

Postby Deleted User 2763 » 09 Apr 2014 23:13

I wonder if this

Code: Select all

 name resolve order = bcast host 
is network specific?

I've used the smb.txt in both an ActiveDirectory (at work) environment and a home environment (with just a router). (with Linux and Win7 samba shares)
I'm glad it worked. I'll need to check out the additional parameter and see what it does.
-Hinto

User avatar
kwisher
Posts: 42
Joined: 30 Mar 2013 17:31

Re: Simple Samba Server Configuration

Postby kwisher » 12 Apr 2014 16:42

Here is my global section that I've used for years for my home network. I've never had to do anything specific for Windows shares.

Code: Select all

[global]
	workgroup = home
	server string = garage
	log file = /var/log/samba/log.%m
	max log size = 1000
	syslog = 0
	panic action = /usr/share/samba/panic-action %d
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	preferred master = Yes
	hosts allow = 10.1.
	dns proxy = no
	security = user
	username map = /etc/samba/smbusers
	encrypt passwords = true
	guest ok = no
	guest account = nobody
The instructions suggested Windows XP or better, so I installed Linux :)


Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 1 guest