Proftpd, Samba, etc

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

Proftpd, Samba, etc

Postby NicktheEvil » Sat Aug 18, 2012 1:20 am

Hello all,

I've been lurking for a while searching for an answer and since I can't find one I've decided to post. I have a pogoplug e02 and I've installed linux on it no problem. I've installed samba and proftpd on it but they have varying levels of functionality.

Samba is working with read and write access but I am having trouble accessing large folders (music, movies, etc).

Proftpd is semi-functional. I have been able to access my drives through the network, although read only access. I can not figure out how to enable write access.

So I was wondering if anyone had any ideas on how to either speed up samba, enable write access with proftpd or both? Any help would be appreciated.

There are many facets of this that l don't understand and I'm doing my best to muddle through it. the most frustrating part is that I'm generally pretty good with this kind of stuff.

Thanks
NicktheEvil
 
Posts: 6
Joined: Sat Aug 18, 2012 1:04 am

Re: Proftpd, Samba, etc

Postby moonman » Sat Aug 18, 2012 2:29 am

There are many reasons samba maybe slow. what fylesystem are you using? what type of connection do you have, gigabit or 100 mbit/s ?

proftpd... there are lots of guides on the official website. Configuration can be very tricky for it.
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: Proftpd, Samba, etc

Postby NicktheEvil » Sat Aug 18, 2012 2:35 am

my samba shares 2 drives at the moment. One fat32 and the other NTFS. it's on a 100 mbit lan connection. As for proftpd, I was on their site and I followed instructions but was still a bit confused. it just wasn't clicking for me. So I'm still a bit in the dark when it comes to that.
NicktheEvil
 
Posts: 6
Joined: Sat Aug 18, 2012 1:04 am

Re: Proftpd, Samba, etc

Postby moonman » Sat Aug 18, 2012 3:20 am

I guess your problem is the the filesystem. NTFS-3g driver is pretty slow on linux. If you convert to ext4 you'll see much better speeds, 100 Mbit/s doesn't help as well, especially if you have flowcontrol enabled in the driver (on your pc).

Can post your config for proftpd?
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: Proftpd, Samba, etc

Postby NicktheEvil » Sat Aug 18, 2012 3:15 pm

this is my proftpd.conf. It's mostly what came with the program. I have made some changes trying to get things to work.


$this->bbcode_second_pass_quote('', '#') This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on

# Port 21 is the standard FTP port.
Port 21

# Don't use IPv6 support by default.
UseIPv6 off

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 777

# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 30

# Set the user and group under which the server will run.
User root

Group root

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~

# Normally, we want files to be overwriteable.
AllowOverwrite on

# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
DenyAll
</Limit>

# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Global>
DefaultRoot /drives/
RequireValidShell off

<Directory /drives/>
GroupOwner root
UserOwner root
</Directory>
</Global>

NicktheEvil
 
Posts: 6
Joined: Sat Aug 18, 2012 1:04 am

Re: Proftpd, Samba, etc

Postby moonman » Sun Aug 19, 2012 1:34 am

try something like this:
$this->bbcode_second_pass_code('', '

<Directory /drives/>
<Limit LOGIN>
AllowUser root
AllowUser AnotherUserName
AllowGroup SomeGroupName
DenyAll
</Limit>

<Limit ALL>
AllowAll
</Limit>

</Directory>')


You'll have to play with different configurations: http://www.proftpd.org/docs/howto/Limit.html
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: Proftpd, Samba, etc

Postby NicktheEvil » Sun Aug 19, 2012 3:41 pm

Still the same issue. I can read the drives but not write to them. I do appreciate the help though.
NicktheEvil
 
Posts: 6
Joined: Sat Aug 18, 2012 1:04 am

Re: Proftpd, Samba, etc

Postby moonman » Sun Aug 19, 2012 11:55 pm

$this->bbcode_second_pass_code('', '<Anonymous /drives>
User joe
Group group
UserPassword testpass
AnonRequirePassword on
<Limit READ WRITE DIRS>
AllowAll
</Limit>
</Anonymous>')

There are many variations, you'll have to research a bit...
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: Proftpd, Samba, etc

Postby NicktheEvil » Sat Sep 01, 2012 7:05 pm

Unfortunately that didn't work either.

I'm surprised it's so difficult to enable write access on proftpd.
NicktheEvil
 
Posts: 6
Joined: Sat Aug 18, 2012 1:04 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 281 guests