Jump to content


Photo

500 OOPS: vsftpd: not found: directory given in 'secure_chroot_dir':/var/share/empty


  • Please log in to reply
11 replies to this topic

#1 ACD46

  • Member
  • 10 posts

0
Neutral

Posted 31 October 2015 - 21:06

I have VU+Solo2 and new install image Open Pli . After 5 days i have one problem with ftp connect to box.

 

500 OOPS: vsftpd: not found: directory given in 'secure_chroot_dir':/var/share/empty

 

Http connect is ok. Telnet connect is ok, but my password is incorrect.

 

Password is default /no password/.

 

 

Please help me.


Edited by ACD46, 31 October 2015 - 21:10.


Re: 500 OOPS: vsftpd: not found: directory given in 'secure_chroot_dir':/var/share/empty #2 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 31 October 2015 - 22:00

That begs the question: what have you changed?

 

Because the default config doesn't contain "secure_chroot_dir", and in a default image, /var/share/empty does exist.

 

Or do you have opened up your box to the internet, with as a result that it is now hacked?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: 500 OOPS: vsftpd: not found: directory given in 'secure_chroot_dir':/var/share/empty #3 ACD46

  • Member
  • 10 posts

0
Neutral

Posted 31 October 2015 - 22:44

That begs the question: what have you changed?

 

Because the default config doesn't contain "secure_chroot_dir", and in a default image, /var/share/empty does exist.

 

Or do you have opened up your box to the internet, with as a result that it is now hacked?

Firewall in my router is on. Don't open any port to my box.  My old image was ok. This problem is only with last image.

 

Sorry my english is not good.


Edited by ACD46, 31 October 2015 - 22:44.


Re: 500 OOPS: vsftpd: not found: directory given in 'secure_chroot_dir':/var/share/empty #4 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 31 October 2015 - 23:11

I can't say anything more than I already did: the default config doesn't contain "secure_chroot_dir", and in a default image, /var/share/empty does exist.

 

And indeed, the default image has no password for telnet. So if your box has a password now and it didn't have one yesterday, then something has changed.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: 500 OOPS: vsftpd: not found: directory given in 'secure_chroot_dir':/var/share/empty #5 ACD46

  • Member
  • 10 posts

0
Neutral

Posted 31 October 2015 - 23:39

I can't say anything more than I already did: the default config doesn't contain "secure_chroot_dir", and in a default image, /var/share/empty does exist.

 

And indeed, the default image has no password for telnet. So if your box has a password now and it didn't have one yesterday, then something has changed.

Thank you.  I'll make new installation image with hard password.



Re: 500 OOPS: vsftpd: not found: directory given in 'secure_chroot_dir':/var/share/empty #6 zer0fx

  • Member
  • 8 posts

0
Neutral

Posted 3 November 2015 - 20:32

create directories : /var/share/empty

in /etc/vsftpd.conf, add this line at the end of the file :

secure_chroot_dir=/var/share/empty

and it will be ok



Re: 500 OOPS: vsftpd: not found: directory given in 'secure_chroot_dir':/var/share/empty #7 Tom77

  • Member
  • 5 posts

0
Neutral

Posted 5 March 2016 - 03:10

Hi,

 

I have the same problem. Have Vu+ uno and Openpli. When try to connect ftp I see

 

500 OOPS: vsftpd: not found: directory given in 'secure_chroot_dir':/var/share/empty
 
 

That begs the question: what have you changed?

 

Because the default config doesn't contain "secure_chroot_dir", and in a default image, /var/share/empty does exist.

 

Or do you have opened up your box to the internet, with as a result that it is now hacked?

 

Connection was good few hours earlier, during this few hours I had one crash when there were 4 or 5 channels being recorded.

 

But I also did opened box to the internet. Could really somebody hack me? I was only trying to access my Openwebif to check if streaming will work, and check few times oscam webinterface. I have dynamic IP, changed it a few times. I didn't give anybody my IP address, only checked at few websites if my ports are opened or not. 

I am very afraid. What should I do now? I closed my connection and disconnected box but have no idea what should do now.

 

Help, please.



Re: 500 OOPS: vsftpd: not found: directory given in 'secure_chroot_dir':/var/share/empty #8 Pr2

  • PLi® Contributor
  • 6,073 posts

+257
Excellent

Posted 5 March 2016 - 08:48

Hi,

 

Never open your box to the Internet, I guess it's a good lesson learned.  :D

By a simple google search we can find the Internet accessible OpenWebif.

 

Close the ports you open on your router and reflash your box, and perform a good security scan/check/patching on all the device connected to your LAN.

 

Pr2


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: 500 OOPS: vsftpd: not found: directory given in 'secure_chroot_dir':/var/share/empty #9 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 5 March 2016 - 08:53

Especially ftp is not a good idea to make available from the internet. Use ssh+scp+sftp instead.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: 500 OOPS: vsftpd: not found: directory given in 'secure_chroot_dir':/var/share/empty #10 Tom77

  • Member
  • 5 posts

0
Neutral

Posted 5 March 2016 - 13:44

I am aware that opening ports it is not safe theoretically, but I did not expect that anyone can find me during few hours of testing. My bad  :P
 
The other thing that I am a beginner on it, so I opened ports by DMZ function (modem -> router -> box). That means all box ports were open. I will never do it again.
 
So what now?
I am going to download the latest image and flash it by usb. Will it be good enoungh to make my box working properly and be sure that there is nothing unwanted on it?
 

 

Hi,

 

Never open your box to the Internet, I guess it's a good lesson learned.  :D

By a simple google search we can find the Internet accessible OpenWebif.

 

Close the ports you open on your router and reflash your box, and perform a good security scan/check/patching on all the device connected to your LAN.

 

Pr2

 

 
If we know that DMZ function was enabled and everything was connected directly to the box, is it possible that router or modem or pc was hacked?
 
There are only 3 devices connected to my lan. The box, pc that I am using and other pc. I had Avira free antivirus with firewall enabled on this computer, there are also firewalls enabled at modem and router. I scanned whole pc by Avira and find nothing. Is that mean that I can feel safe about this pc? Does anyone could connect to this pc and stole any data, is it possible?
 
There is another pc connected to my router by cable, but all this time it was powered off. Is there a possibility that it could be somehow hacked/infected?
 
I will be very grateful for the help.


Re: 500 OOPS: vsftpd: not found: directory given in 'secure_chroot_dir':/var/share/empty #11 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 5 March 2016 - 13:55

Something that was powered off can't be hacked. For the others, if they were secured by a password, the chances of them being hacked in that sort period of time are low.

 

If you flash the box, the entire OS partition will be wiped and rewritten, and with that all possible code alterations will be gone.

 

Please note that flashing a box restores it to factory conditions, so you need to configure it again after it restarts...


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: 500 OOPS: vsftpd: not found: directory given in 'secure_chroot_dir':/var/share/empty #12 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 5 March 2016 - 14:01

... almost all alterarions, because there new ways of making permanent some things, like firmware in usb stick/hard drive etc...

Anyway this doesn't apply to us, those are other targets, usually government or big companies etc.
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users