[How-To] Samba 4

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Re: [How-To] Samba 4

Postby servili007 » Mon Mar 04, 2013 4:37 am

I was actually working from the aur but nevertheless had the same issue when running the docs-xml build within waf. Doing it myself without using waf was fine in fact.
servili007
 
Posts: 8
Joined: Mon Feb 25, 2013 6:25 am

Re: [How-To] Samba 4

Postby grayman4hire » Thu Mar 28, 2013 9:17 pm

Thanks moonman for building samba4 and the How-To.

I tested this last night but couldn't get unprotected share working properly - was getting prompted for authentication on my Windows XP/7/2012 boxes.

I used the example smb.conf. The only thing I changed was "load printers = no" and the mount "path" to my usb hard drive.

What could I be missing?
grayman4hire
 
Posts: 350
Joined: Sat Sep 29, 2012 12:03 am
Location: SF, CA

Re: [How-To] Samba 4

Postby pepedog » Thu Mar 28, 2013 9:27 pm

pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [How-To] Samba 4

Postby grayman4hire » Thu Mar 28, 2013 10:46 pm

Thanks for the prompt reply pepedog.

From pepedog's link:
$this->bbcode_second_pass_quote('', '
')In the global section, do the following:
change "security = share" to "security = user"
Add the following lines below "security = user"
map to guest = Bad User
guest account = root

For each of the shares:
remove "force user = root"
add "guest ok = yes"


Are you saying moonman's sample smb.conf is wrong? :?

Looks like I need "guest account = root" (I've tried adding the "guest ok = yes" last night). I'll give it a quick test and will report back. Thanks again.

[Edit] - Confirmed. Adding the "guest account = root" in the global section resolved the issue. Thanks again.
grayman4hire
 
Posts: 350
Joined: Sat Sep 29, 2012 12:03 am
Location: SF, CA

Re: [How-To] Samba 4

Postby pepedog » Fri Mar 29, 2013 1:12 am

Looks like samba 3 and samba 4 are being lined up?
I got caught too, one day ok, the next WTF
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [How-To] Samba 4

Postby moonman » Fri Mar 29, 2013 7:37 am

Hmm samba4 here and no problem with osx 10.7, win7 and linux machines. Will edit the op when i get to a real computer
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: [How-To] Samba 4

Postby tedm » Fri Apr 05, 2013 11:49 pm

I have 2 different samba 4 smb.conf files, one that works on pogo samba 4 dockstar, and one that works on arm 7 chromebook samba 4.

But they are not interchangeable with each other. Would anyone be interested if I listed both to see if anyone saw if one of the builds is still using old syntax or something? Is there a better forum to post than this one?

Thanks.
tedm
 
Posts: 88
Joined: Tue Jan 01, 2013 1:12 am

Re: [How-To] Samba 4

Postby tedm » Mon Apr 08, 2013 6:09 pm

wondering if anyone can see anything wrong with this smb.conf file, it shows up under WORKGRUP, but no shares are visible?

Thanks.

$this->bbcode_second_pass_code('', '[global]

socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE

use sendfile = trye

workgroup = WORKGROUP

server string = Samba Server2

hosts allow = 192.168.0. 127.

printcap name = /etc/printcap
load printers = yes
guest account = pcguest
log file = /var/log/samba/log.%m
max log size = 50

security = user
map to guest = Bad User
guest account = root


#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
guest ok = yes

[printers]
comment = All Printers
path = /var/spool/samba
browseable=no
guest ok = no
writable = no
printable = yes

[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes
map to guest = Bad User
guest ok = yes

[public]
comment = Public Stuff
path = /home/samba2
public = yes
read only = no
guest ok = yes
')
tedm
 
Posts: 88
Joined: Tue Jan 01, 2013 1:12 am

Re: [How-To] Samba 4

Postby grayman4hire » Mon Apr 08, 2013 8:36 pm

@tedm, that conf file looks pretty bad. You don't even have "yes" spelled right.

Try the below and edit as needed.

$this->bbcode_second_pass_code('', '
#backup existing smb.conf
cd /etc/samba
mv smb.conf smb.conf.original

#download example smb.conf for public share
#no authentication require, everyone has read/write access
wget http://dl.dropbox.com/u/42238/pogoplug/v2/smb.conf
')
grayman4hire
 
Posts: 350
Joined: Sat Sep 29, 2012 12:03 am
Location: SF, CA

Re: [How-To] Samba 4

Postby ebbix » Wed Apr 10, 2013 9:53 am

I have a strange problem with samba4 and Windows 8: I can't mount iso images, it worked with samba3. Same thing for running exe files. I guess it's a permission problem though.

By the way: samba4 4.0.5 is out, which should fix the problem with jCIFS (Android) clients and unix extensions = yes.
However, it won't compile correctly:
$this->bbcode_second_pass_code('', 'Build failed: -> task failed (err #-9):
{task: manpages/smb.conf.5 smb.conf.5.xml -> smb.conf.5}
')Working around this problem by disabling man pages :D Now I only have to wait till it finishes...
EDIT: Samba 4.0.5 and unix extensions = yes is working with jCIFS. Though I had to heavily modify the PKGBUILD to make it build.

In case anyone wants to have a look at my smb.conf because he's bored, feel free to do so. But I don't really need a fix at the moment, since I use Windows 8 rarely :lol:
$this->bbcode_second_pass_code('', '[global]
workgroup = WORKGROUP
server string = GOFLEX
netbios name = GOFLEX
hosts allow = 192.168.0.
printcap name = /dev/null
load printers = no
disable spoolss = yes
printing = bsd
log file = /var/log/samba/log.%m
max log size = 50
security = user
dns proxy = no

#Reject incorrect logins
map to guest = Never

#Global security
public = yes

#Performance tweaks
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
write cache size = 2097152
use sendfile = yes
getwd cache = yes

#============================ Share Definitions ==============================
[Data]
path = /media/Data
comment = Data partition
read only = no
public = yes
browseable = yes
writable = yes
guest ok = no
')
ebbix
 
Posts: 48
Joined: Fri Aug 10, 2012 1:55 pm

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 1 guest