Samba problems

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

Samba problems

Postby chickenparm » Fri Jun 15, 2012 3:37 pm

Ok, so I just set up my PogoPlug Series 4 following the guides on the arch linux ARM site. I am relatively new to linux, but I am catching on quickly, just please bear with me here.

So I got the miniDLNA server working (by working, I mean my PS3 is seeing the empty directory--I haven't actually added any files to the server yet). I have the samba server sort-of working, my smb.conf file is below:
$this->bbcode_second_pass_code('', '
[global]
workgroup = WORKGROUP
server string = ARMPLUG
netbios name = ARMPLUG
security = user
null passwords = yes
map to guets = bad user
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = no
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SN$
[Root]
path = /
read only = no
public = yes
writable = yes
guest ok = no
[External]
path = /media/External
read only = no
public = yes
writable = yes
guest ok = yes
')

I can access the smb server with the "pcguest" account I set up following the guide at http://archlinuxarm.org/support/guides/applications/samba. Well, I can access the server with this account, but for some reason I CAN access the root folder, but NOT the external folder. If I understand the smb.conf file right, the exact opposite should be true. the text in the brackets, [NAME], is the name of the share that appears in Windows when I go to the server. I'm assuming that [root] works because it is mapped to "/" and [external] doesn't because it is mapped to /media/External, which I am assuming has to be set up, and I don't know how to do this.

Hardware wise, my current setup is an external HDD plugged into the USB 2.0 port on top, and a 4GB flash drive plugged into a USB 3.0 port on the side. Arch is on the HDD, obviously. The USB drive is blank and just there for now to test the port, I am planning on eventually getting a bigger HDD for more storage, but that is another issue. Right now I just want my smb server to work.

Any help would be greatly appreciated, and thanks in advance!
chickenparm
 
Posts: 3
Joined: Fri Jun 15, 2012 3:17 pm

Re: Samba problems

Postby WarheadsSE » Fri Jun 15, 2012 5:13 pm

if /media/External does not exist.. You're not going to get anything.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Samba problems

Postby chickenparm » Fri Jun 15, 2012 5:20 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'i')f /media/External does not exist.. You're not going to get anything.


I understand that, my point is, I don't know how to make it exist. I am confused about how different drives are handled in linux in general, I only have a rudimentary knowledge of the OS.
chickenparm
 
Posts: 3
Joined: Fri Jun 15, 2012 3:17 pm

Re: Samba problems

Postby WarheadsSE » Fri Jun 15, 2012 5:32 pm

/media/External is a directory, to which you mount a filesystem.

E.g.
$this->bbcode_second_pass_code('', '
mkdir -p /media/External
mount /dev/sdb1 /media/External
')
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Samba problems

Postby chickenparm » Fri Jun 15, 2012 7:27 pm

THANKS! I got it working, but I had to change $this->bbcode_second_pass_code('', 'security = user ') to $this->bbcode_second_pass_code('', 'security = share') to allow write access to anything. Can anyone give me suggestions of how to fix this?
chickenparm
 
Posts: 3
Joined: Fri Jun 15, 2012 3:17 pm

Re: Samba problems

Postby moonman » Wed Jun 20, 2012 5:01 pm

It specifically says share in the guide. Otherwise you will have to research how to create new users in linux and you will have to login to a share in windows.
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


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 57 guests