Jump to content


Photo

hello how do i disable samba and telnet in open pli 6.2?


  • Please log in to reply
13 replies to this topic

#1 mastervisa30

  • New Member
  • 1 posts

0
Neutral

Posted 16 September 2018 - 09:30

hello how do i disable samba and telnet in open pli 6.2?

im on a open nettwork and need to disable samba and telnet so now one can get acces.

Regards Lars



Re: hello how do i disable samba and telnet in open pli 6.2? #2 Pr2

  • PLi® Contributor
  • 6,182 posts

+261
Excellent

Posted 16 September 2018 - 09:40

Hello,

 

In telnet:

/etc/init.d/samba.sh stop

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: hello how do i disable samba and telnet in open pli 6.2? #3 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 16 September 2018 - 10:27

Open network? The idea don't sound good. The images are not secure. Even if you disable telnet and samba users can access the box via webif, streamingproxy, and I guess via 100++ bugs in the kernel and in the used software. The boxes use more or less old kernels and often don't get security fixes.

 

Only stopping samba is maybe not the best idea as it would start again after a reboot. So remove the links in the /etc/rc* directories. And for telnet I think(not sure) inetd is used. So look into /etc/inetd.conf. But as said, your box won't be secure afterwards!


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: hello how do i disable samba and telnet in open pli 6.2? #4 40H3X

  • Forum Moderator
    PLi® Contributor
  • 5,957 posts

+191
Excellent

Posted 16 September 2018 - 10:58

Boxes are not meant to be on any open network, they should always be in a LAN environment, or you box will be taken over/Hacked in no time as @betacentauri has also pointed out.


Hardware: Vu+ Uno 4K SE - Vu+ Duo 4K  - Fuba 78 cm - Tripleblock LNB Quad 19.2/23.5/28.2 - DS918+
Software : OpenPLi - OSCam - Settings van Hans - Autotimer - EPGImport

---------------------------------------------------------------------------------------------------------------------------------------

Remember: Upvote with the rep_up.png button for any user/post you find to be helpful, informative, or deserving of recognition!

---------------------------------------------------------------------------------------------------------------------------------------

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

Note: I do not provide support via PM !.


Re: hello how do i disable samba and telnet in open pli 6.2? #5 ccs

  • Senior Member
  • 229 posts

+7
Neutral

Posted 16 September 2018 - 13:40

…. and then everything on your LAN could be compromised.


test


Re: hello how do i disable samba and telnet in open pli 6.2? #6 tension

  • Senior Member
  • 119 posts

+4
Neutral

Posted 20 September 2018 - 15:09

You can use this plugin to simply control services. Skin modified for correct visualization.

 

 

Attached File  1.jpg   75.92KB   11 downloads

 

Attached File  2.jpg   22.88KB   6 downloads

 

Attached File  3.jpg   75.38KB   5 downloads

 

Attached File  4.jpg   26.61KB   3 downloads

 

 

 

Attached File  ServiceManager.zip   13.59KB   24 downloads



Re: hello how do i disable samba and telnet in open pli 6.2? #7 Pr2

  • PLi® Contributor
  • 6,182 posts

+261
Excellent

Posted 20 September 2018 - 15:27

Hi,

 

Thanks for it but it doesn't work. The skin is not adapted for Full HD and I had a crashlog:

 

Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Components/ActionMap.py", line 49, in action
  File "/usr/lib/enigma2/python/Plugins/Extensions/ServiceManager/plugin.py", line 690, in selectService
    current = self["list"].getCurrent()[5]
TypeError: 'NoneType' object has no attribute '__getitem__'

Is this plugin yours?

 

Do you have a github we can refer to to have it included in the feed when it will be fully operational?

 

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: hello how do i disable samba and telnet in open pli 6.2? #8 Pr2

  • PLi® Contributor
  • 6,182 posts

+261
Excellent

Posted 20 September 2018 - 15:43

Hi,

 

OK it is working I place it first into: Extensions but looking at the code I saw that you define it to be into SystemPlugins so I move it.

 

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: hello how do i disable samba and telnet in open pli 6.2? #9 tension

  • Senior Member
  • 119 posts

+4
Neutral

Posted 20 September 2018 - 15:50

Yes mine, yes of course you'll have my source git, as i get yours :) . I did the needed screens for pli skins.

If you want i will post the code patches tonight, as i will be on linux pc.



Re: hello how do i disable samba and telnet in open pli 6.2? #10 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 20 September 2018 - 15:56

Just remove the packages...


* 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: hello how do i disable samba and telnet in open pli 6.2? #11 Pr2

  • PLi® Contributor
  • 6,182 posts

+261
Excellent

Posted 20 September 2018 - 17:48

Hi,

 

I have already adapt for FullHD may be some more fine tuning are needed on the different screens but at least it is now usable on Full HD.

 

Pr2

Attached Files


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: hello how do i disable samba and telnet in open pli 6.2? #12 tension

  • Senior Member
  • 119 posts

+4
Neutral

Posted 20 September 2018 - 20:55

Hi. the plugin works with a config file, services.xml which anyone can modify as for own used programs. Most important parameter is the service start/stop

method. Three params possible:

 

initscript="XXX" is the name of the service script in /etc/init.d directory

customscript="XXX" is the path of a custom script

servicescripts="XXX, YYY" 2 single scripts for start and stop
 

I recently updated my vuduo2 from version 4 to 6.2, so something could need to be fixed, sorry.

 

This recipe I used for the plugin, to be adapted, changed, rewritten...... as you like.

DESCRIPTION = "Open Source ServiceManager plugin for E2 based Linux set-top box"
MODULE = "ServiceManager"
HOMEPAGE = "https://github.com/tension9000/e2openplugin-${MODULE}"
SRC_URI = "git://github.com/tension9000/e2openplugin-${MODULE}.git"

require conf/license/license-gplv2.inc

inherit gitpkgv

inherit allarch

S="${WORKDIR}/git"

SRCREV = "${AUTOREV}"

PV = "0.1.1+git${SRCPV}"
PKGV = "0.1.1+git${GITPKGV}"

FILES_${PN} = "/usr/*"

do_compile() {
}

do_install() {
	install -d ${D}/usr/lib/enigma2/python/Plugins/SystemPlugins/${MODULE}
	cp -r ${S}/plugin/* ${D}/usr/lib/enigma2/python/Plugins/SystemPlugins/${MODULE}/
}

this the patch for the screens in pli fullHD skins:

 

Attached File  0001-Add-servicemanager-plugin-support.patch   7.39KB   27 downloads

 

 

 

 

 

 

 

 



Re: hello how do i disable samba and telnet in open pli 6.2? #13 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 21 September 2018 - 14:27

do_install() {
	install -d ${D}/usr/lib/enigma2/python/Plugins/SystemPlugins/${MODULE}
	cp -r ${S}/plugin/* ${D}/usr/lib/enigma2/python/Plugins/SystemPlugins/${MODULE}/
}

This is the worst thing what you can do when creating a package with python files.

After the plugin install, the py files on reciever will be compilded to pyc files.
If you later remove this package, only the py files that are in the package will be removed, but the pyc files will remain.

Therefore, in packages with python files, you always have to compile py files and put them in a package.


Edited by Taapat, 21 September 2018 - 14:29.


Re: hello how do i disable samba and telnet in open pli 6.2? #14 tension

  • Senior Member
  • 119 posts

+4
Neutral

Posted 22 September 2018 - 14:08

I added the file "setup.py" to the repo. The compilation and packaging with an openplugins' style .bb (as Taapat pointed out) works.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users