VsFTPd change anonymous mount point to internal hard

VsFTPd change anonymous mount point to internal hard

Postby slan » 03 Apr 2012, 01:02

When i type in browser "ftp://192.168.1.105", then this address is forward to "192.168.1.105/tmp/usbmounts/", but i want forwarding to "/tmp/hdd/volumes/HDD1", this is the address of internal hard. There is no option in vsftpd.conf.
Have anyone idea?
Patriot Box Office with internal 128 GB SSD hard: Stock firmware with moServices 3
Patriot WLAN-Stick PCB0WAU2-N
slan
 
Posts: 9
Joined: 31 Mar 2012, 08:36

Re: VsFTPd change anonymous mount point to internal hard

Postby FarVoice » 03 Apr 2012, 23:55

slan wrote:When i type in browser "ftp://192.168.1.105", then this address is forward to "192.168.1.105/tmp/usbmounts/", but i want forwarding to "/tmp/hdd/volumes/HDD1", this is the address of internal hard. There is no option in vsftpd.conf.
Have anyone idea?

entry to player as root ftp://root:root@player_ip
or edit /usr/local/etc/mos/etc/init/S15vsftpd
Code: Select all
   grep -q 'ftp::1001:1001:ftp' $etc/passwd || echo "ftp::1001:1001:ftp:/tmp/usbmounts:/dev/null" >> $etc/passwd
to
Code: Select all
   grep -q 'ftp::1001:1001:ftp' $etc/passwd || echo "ftp::1001:1001:ftp:/tmp/ramfs/volumes:/dev/null" >> $etc/passwd
ASUS O!Play R1 (amp_r12_vrtn), xTreamer Pro (amp_r12_vrt), xTreamer Prodigy (iNeXT 2.14 r2), IconBIT HDR12L (amp_r12_vrt), 3Q F425HW (xds42gl_7725_r3), MyGica A11 (mygica_m3_20121222)
User avatar
FarVoice
Администратор
 
Posts: 8572
Joined: 03 Sep 2010, 01:27
Location: Russia, Moscow

Re: VsFTPd change anonymous mount point to internal hard

Postby slan » 04 Apr 2012, 01:16

I have change S15vsftpd with vi(very bad text editor), but is coming another problem. I click on HDD: and show the message: "550 Failed to change directory". What must i change?
Patriot Box Office with internal 128 GB SSD hard: Stock firmware with moServices 3
Patriot WLAN-Stick PCB0WAU2-N
slan
 
Posts: 9
Joined: 31 Mar 2012, 08:36

Re: VsFTPd change anonymous mount point to internal hard

Postby FarVoice » 04 Apr 2012, 10:22

slan wrote:I have change S15vsftpd with vi(very bad text editor), but is coming another problem. I click on HDD: and show the message: "550 Failed to change directory". What must i change?

I don't know - i have not internal drive, formatted via player. One way - login as root (see prev post)
ASUS O!Play R1 (amp_r12_vrtn), xTreamer Pro (amp_r12_vrt), xTreamer Prodigy (iNeXT 2.14 r2), IconBIT HDR12L (amp_r12_vrt), 3Q F425HW (xds42gl_7725_r3), MyGica A11 (mygica_m3_20121222)
User avatar
FarVoice
Администратор
 
Posts: 8572
Joined: 03 Sep 2010, 01:27
Location: Russia, Moscow

Re: VsFTPd change anonymous mount point to internal hard

Postby slan » 04 Apr 2012, 12:43

FarVoice wrote:I don't know - i have not internal drive, formatted via player. One way - login as root (see prev post)


There was wrong, i have change your script line:

Code: Select all
   grep -q 'ftp::1001:1001:ftp' $etc/passwd || echo "ftp::1001:1001:ftp:/tmp/ramfs/volumes:/dev/null" >> $etc/passwd


to the correct:

Code: Select all
   grep -q 'ftp::1001:1001:ftp' $etc/passwd || echo "ftp::1001:1001:ftp:/tmp/hdd/volumes:/dev/null" >> $etc/passwd

Now anonymous login working.

With ftp://root:root@192.168.1.105 i am going to the root directory, not to /tmp/hdd/volumes
What must i modify?
Patriot Box Office with internal 128 GB SSD hard: Stock firmware with moServices 3
Patriot WLAN-Stick PCB0WAU2-N
slan
 
Posts: 9
Joined: 31 Mar 2012, 08:36

Re: VsFTPd change anonymous mount point to internal hard

Postby FarVoice » 04 Apr 2012, 20:24

slan wrote:With ftp://root:root@192.168.1.105 i am going to the root directory, not to /tmp/hdd/volumes
What must i modify?

set the home directory to user root in /usr/local/etc/passwd file
Code: Select all
root::0:0:root:/tmp/hdd/volumes:/bin/sh
ASUS O!Play R1 (amp_r12_vrtn), xTreamer Pro (amp_r12_vrt), xTreamer Prodigy (iNeXT 2.14 r2), IconBIT HDR12L (amp_r12_vrt), 3Q F425HW (xds42gl_7725_r3), MyGica A11 (mygica_m3_20121222)
User avatar
FarVoice
Администратор
 
Posts: 8572
Joined: 03 Sep 2010, 01:27
Location: Russia, Moscow

Re: VsFTPd change anonymous mount point to internal hard

Postby slan » 04 Apr 2012, 21:01

FarVoice wrote:set the home directory to user root in /usr/local/etc/passwd file
Code: Select all
root::0:0:root:/tmp/hdd/volumes:/bin/sh


Thanks FarVoice,

now is with vsFTPd all working, as wish. :D
Patriot Box Office with internal 128 GB SSD hard: Stock firmware with moServices 3
Patriot WLAN-Stick PCB0WAU2-N
slan
 
Posts: 9
Joined: 31 Mar 2012, 08:36

Re: VsFTPd change anonymous mount point to internal hard

Postby slan » 05 Apr 2012, 18:22

For good work i have donate money . I hope on next version of Moservices
Patriot Box Office with internal 128 GB SSD hard: Stock firmware with moServices 3
Patriot WLAN-Stick PCB0WAU2-N
slan
 
Posts: 9
Joined: 31 Mar 2012, 08:36


Return to About moServices

Who is online

Users browsing this forum: No registered users and 12 guests

cron