• February 25, 2025, 10:18:30 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: FTP Server Problems  (Read 4949 times)

brasscs

  • Level 1 Member
  • *
  • Posts: 5
FTP Server Problems
« on: January 06, 2013, 03:45:38 PM »


Just purchased my DNS 320 Sharecenter and am having problems setting up ftp
the nas drive has a static ip of 192.168.1.110

my settings
Max Users    10
Idle Time    (1~10 Minutes) 10
Port    ( 1025 ~ 3688, 3690 ~ 49999, 65501 ~ 65535, Default: 21) 21
Passive Mode    Use the default port range (55536~55663)
Client Language    << utf-8 unicode 8 bit
Flow Control    Unlimited
SSL/TLS    Allow SSL/TLS connection only disabled
FXP    Enable  Disable disable

i have also added a new user and group and given full r/w access for ftp
mediaclient,media

checking /etc/passwd after the user and group was created revealed mediclient home dir was incorrect. it was placeing me in volume_1 as root
so i corrected it by issuing from command line as user root usermod -d /mnt/HD/HD_a2/VIDEOS/mediaclient
i also did a chown mediaclient VIDEOS -R and chgrp media VIDEOS -R

i tested the above by using login and logging in as mediaclient. i was in the correct directory i was able to create files and folders

however if i login from winscp i can get in but am unable to create or delete files and directories or upload error is users are not allowed to ...

i have a vb net client program i wrote that has the identical program. it was working fine with my previous config which was asus router flashed with tomato and internal ftp server on with usb hardrive running optware.

anyone tell me what i am doing wrong? also what is the name of the server program running in the dlink 320

thanks in advance
Logged

ivan

  • Level 8 Member
  • ***
  • Posts: 1480
Re: FTP Server Problems
« Reply #1 on: January 07, 2013, 06:10:50 AM »

Am I correct in assuming you have installed Fun_plug on your unit otherwise how did you get a command line interface?

I can't help with your windows problems because we don't use it here.  For our clients that have windows on odd machines we install FileZilla for them to connect to the DNS-320 FTP server and we haven't heard of any with problems - believe me if they even thought they had a problem we would hear about it.

What FTP client did you use to test your login?  This would have also shown you that the FTP server announces itself as Pure-FTPd.

I would recommend that you use a standard FTP client (FileZilla, JFTP etc.) to try and login and take note of the responses from the FTP server and when you do get a connection have a good look at the permissions for each folder.
Logged

brasscs

  • Level 1 Member
  • *
  • Posts: 5
Re: FTP Server Problems
« Reply #2 on: January 07, 2013, 07:30:08 AM »

for a windows client i am using winscp or smartftp the vb net program i wrote is based on ftpclient

all 3 give 550 error not authorized here is a dump from smartftp of anonymous and mediclient all of which have full r/w permissions

[09:23:39] SmartFTP v4.1.1287.0
[09:23:40] Resolving host name "192.168.1.110"
[09:23:40] Connecting to 192.168.1.110 Port: 21
[09:23:40] Connected to 192.168.1.110.
[09:23:42] 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
[09:23:42] 220-You are user number 3 of 10 allowed.
[09:23:42] 220-Local time is now 09:23. Server port: 21.
[09:23:42] 220 You will be disconnected after 10 minutes of inactivity.
[09:23:42] USER anonymous
[09:23:45] 230 Anonymous user logged in
[09:23:45] SYST
[09:23:45] 215 UNIX Type: L8
[09:23:45] Detected Server Type: UNIX
[09:23:45] RTT: 4.639 ms
[09:23:45] FEAT
[09:23:45] 211-Extensions supported:
[09:23:45]  EPRT
[09:23:45]  IDLE
[09:23:45]  MDTM
[09:23:45]  SIZE
[09:23:45]  REST STREAM
[09:23:45]  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
[09:23:45]  MLSD
[09:23:45]  ESTP
[09:23:45]  PASV
[09:23:45]  EPSV
[09:23:45]  SPSV
[09:23:45]  ESTA
[09:23:45]  AUTH TLS
[09:23:45]  PBSZ
[09:23:45]  PROT
[09:23:45]  UTF8
[09:23:45] 211 End.
[09:23:45] OPTS UTF8 ON
[09:23:45] 200 OK, UTF-8 enabled
[09:23:45] Detected Server Software: PureFTPd
[09:23:45] PWD
[09:23:45] 257 "/" is your current location
[09:23:45] CWD /VIDEOS/Videos/RED_DAWN
[09:23:45] 250 OK. Current directory is /VIDEOS/Videos/RED_DAWN
[09:23:45] PWD
[09:23:45] 257 "/VIDEOS/Videos/RED_DAWN" is your current location
[09:23:45] TYPE A
[09:23:45] 200 TYPE is now ASCII
[09:23:45] PASV
[09:23:45] 227 Entering Passive Mode (192,168,1,110,217,96)
[09:23:45] Opening data connection to 192.168.1.110 Port: 55648
[09:23:45] MLSD
[09:23:45] 150 Accepted data connection
[09:23:45] 688 bytes transferred. (44.7 KB/s) (15 ms)
[09:23:45] 226-Options: -a -l
[09:23:45] 226 6 matches total
[09:24:09] MKD abc
[09:24:09] 550 Can't create directory: Permission denied



[09:28:01] SmartFTP v4.1.1287.0
[09:28:01] Resolving host name "192.168.1.110"
[09:28:01] Connecting to 192.168.1.110 Port: 21
[09:28:01] Connected to 192.168.1.110.
[09:28:01] 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
[09:28:01] 220-You are user number 2 of 10 allowed.
[09:28:01] 220-Local time is now 09:27. Server port: 21.
[09:28:01] 220 You will be disconnected after 10 minutes of inactivity.
[09:28:01] USER mediaclient
[09:28:01] 331 User mediaclient OK. Password required
[09:28:01] PASS (hidden)
[09:28:01] 230 OK. Current restricted directory is /
[09:28:01] SYST
[09:28:01] 215 UNIX Type: L8
[09:28:01] Detected Server Type: UNIX
[09:28:01] RTT: 0.317 ms
[09:28:01] FEAT
[09:28:01] 211-Extensions supported:
[09:28:01]  EPRT
[09:28:01]  IDLE
[09:28:01]  MDTM
[09:28:01]  SIZE
[09:28:01]  REST STREAM
[09:28:01]  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
[09:28:01]  MLSD
[09:28:01]  ESTP
[09:28:01]  PASV
[09:28:01]  EPSV
[09:28:01]  SPSV
[09:28:01]  ESTA
[09:28:01]  AUTH TLS
[09:28:01]  PBSZ
[09:28:01]  PROT
[09:28:01]  UTF8
[09:28:01] 211 End.
[09:28:01] OPTS UTF8 ON
[09:28:01] 200 OK, UTF-8 enabled
[09:28:01] Detected Server Software: PureFTPd
[09:28:01] PWD
[09:28:01] 257 "/" is your current location



Logged