Author Topic: Inetd package  (Read 13130 times)

devon

  • Full Member
  • ***
  • Posts: 98
  • Karma: 4
    • View Profile
Inetd package
« on: December 16, 2008, 02:25:04 AM »
An updated inetd package is available here:

inetd_0.2.pbxpkg

http://www.drivehq.com/file/df.aspx/publish/devon.hendricks/wwwhome/packages/inetd_0.2.zip

This version adds logging for ftp and tftp (via the system log), cron and a custom startup script, configurable through the inetd package page. The upgrade function is not yet implimented, any previous version will need to be removed before installing this package.

regards, devon

osa2

  • Full Member
  • ***
  • Posts: 81
  • Karma: 0
    • View Profile
Re: Inetd package
« Reply #1 on: December 16, 2008, 12:35:03 PM »
Do you have some more information on what your package can do?
I know tftp is able to send config files to phones.
How does it work with inetd_0.2?

How do the other things work and why would we use them?

Thanks for additional info on this matter.
Askozia 1.0.3 + Alix 3C + Grandstream sip phones + B200M openVox ISDN

devon

  • Full Member
  • ***
  • Posts: 98
  • Karma: 4
    • View Profile
Re: Inetd package
« Reply #2 on: December 16, 2008, 07:28:46 PM »
This package is intended for those who want more functionality than what is provided in the GUI.
A brief overview of what this package adds:

ssh/sftp - secure remote console and file access
ftp/tftp - allow ip phones to retrieve configuration files
cron - run tasks on a schedule
startup - run tasks when the operating system is loaded


Here are a few examples of how I use the features:


  • A usb flash disk is mounted at boot with the startup script.
  • My config.xml and logfiles are backed up to usb disk each night with a script scheduled to run via cron.
  • Tftp serves my Cisco 79xx phones configuration files and ringtones.
  • A script on the usb disk that pulls xml weather data from weather.com and parses it to a html page provides weather information for my phones, runs every 10 minutes via cron.
  • I don't want certain phones in my house to ring at night so I schedule my config files with different call groups defined to be rotated at certain times.
  • I can use Putty to get console access and WinSCP to manage files.
  • Shell scripts can be run by creating an application with TrySystem() and dialing the assigned extension.

Regards, devon

bobgus

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: Inetd package
« Reply #3 on: January 27, 2009, 04:41:20 PM »
Hey thanks devon. This is a really cool package.

I have only just used the ssh so far, but it has opened up a big window into why my configs are not working :-))

pcooper1983

  • Jr. Member
  • **
  • Posts: 29
  • Karma: 0
    • View Profile
Re: Inetd package
« Reply #4 on: March 07, 2009, 06:21:10 PM »
Anyone know what the default user name and password is for the FTP part of this ?

devon

  • Full Member
  • ***
  • Posts: 98
  • Karma: 4
    • View Profile
Re: Inetd package
« Reply #5 on: March 07, 2009, 08:19:24 PM »
Anyone know what the default user name and password is for the FTP part of this ?

The ftp server is configured by default for anonymous read-only access. Root access can be enabled by removing or commenting out the 'root' entry in the '/etc/ftpusers' file as mentioned by Marco in this thread:

http://forums.askozia.com/index.php/topic,20.msg1809.html#msg1809

devon

  • Full Member
  • ***
  • Posts: 98
  • Karma: 4
    • View Profile
Re: Inetd package
« Reply #6 on: May 28, 2009, 10:26:07 PM »
inetd_0.3 is available that includes PAM support for ftp and a bugfix for the <shellcmd> delete issue mentioned by benhathaway, and the 'set autolist' in .cshrc suggested by zetaerre in the forums.

zip or package

changelog:
fixed <shellcmd> delete issue
fixed exec and editor page footers
added empty ftpchroot file
added 'set autolist' for .cshrc
added pam support for ftpd
moved srv to /data/srv to preserve contents
moved dropbear keys to /data/etc/dropbear
moved rc.startup to /data/etc

the update feature isn't working correctly; I would recommend backing up your files and removing any previous versions before installing this package.

best regards,
devon
« Last Edit: June 07, 2009, 04:23:43 AM by devon »

devon

  • Full Member
  • ***
  • Posts: 98
  • Karma: 4
    • View Profile
Re: Inetd package
« Reply #7 on: July 23, 2009, 05:31:20 AM »
inetd_0.4.3 is available. This release adds upgrade support from version 0.3, new xml nodes in config.xml, a new exec page, and the crontab editor will now update the mtime on the /etc/crontab link when the file is saved.

changelog:

Version 0.4.3 07/22/2009
-----------------------
ported m0n0wall exec.php page to fix IE display problems
fixed upgrade bug to prevent it adding multiple <shellcmd> tags
added code to the crontab editor to update mtime on the /etc/crontab link when saving changes
misc code cleanup

Version 0.4 06/20/2009
-----------------------
changed config.xml node from <services> to <inetd>
added package upgrade code in rc

Upgrading from 0.3 should work fine, but as always please back up your files.

Download zip or package

regards,
devon

devon

  • Full Member
  • ***
  • Posts: 98
  • Karma: 4
    • View Profile
Re: Inetd package
« Reply #8 on: September 21, 2009, 04:59:17 AM »
Added early startup script config page. Useful to anyone who needs to run shell commands prior to network and asterisk load (earlyshellcmd) without having to hand edit the config.xml file. Other minor code tweaks.

Will upgrade inetd package version >= 0.3

changelog:

Version 0.4.4 09/20/2009
-----------------------
changed working directory to /ultmp in exec page
added early_startup script
added package upgrade code in rc


Download zip or package

regards,
devon

hydrolife

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: Inetd package
« Reply #9 on: October 16, 2009, 10:24:18 AM »
Dear all,
i tring to use the inetd package, i would like to edit crontab, but i get the followign error:

Warning: file_get_contents(/etc/crontab): failed to open stream: No such file or directory in /storage/inetd.pkg/usr/local/www/cms_syseditor.php on line 117


any ideas ?

devon

  • Full Member
  • ***
  • Posts: 98
  • Karma: 4
    • View Profile
Re: Inetd package
« Reply #10 on: October 17, 2009, 01:16:57 AM »
Warning: file_get_contents(/etc/crontab): failed to open stream: No such file or directory

This probably means the crontab didn't get linked in when the package was activated.
Does /storage/inetd.pkg/data/etc/crontab exist? Maybe something went wrong during install, try removing the inetd package, downloading a fresh 0.4.4 and re-installing.

devon

hekirakuzinn

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
    • View Profile
Re: Inetd package
« Reply #11 on: November 25, 2009, 01:22:00 PM »
Hi everyone,

I want to change the password of the root user in SSH and SFTP, but I wonder if I do what.
It is initialized if I reboot with pw. If there is any good method, please teach it.

Thanks.

devon

  • Full Member
  • ***
  • Posts: 98
  • Karma: 4
    • View Profile
Re: Inetd package
« Reply #12 on: November 26, 2009, 04:20:02 AM »
I want to change the password of the root user in SSH and SFTP
Change the webgui password, then disable/enable the inetd package to set the SSH/SFTP root password.

Best Regards,
Devon

hekirakuzinn

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
    • View Profile
Re: Inetd package
« Reply #13 on: December 05, 2009, 01:38:57 AM »
Dear Devon,

Apparently, it seems to have been a mistake though I was using the pw command.
The password was able certainly to be changed by the method said by you.
Thank you for advice.  :)


ttrepper

  • Newbie
  • *
  • Posts: 15
  • Karma: 0
    • View Profile
Re: Inetd package
« Reply #14 on: December 13, 2009, 02:24:42 PM »
Hi Devon,

thank you very much for your plugin, its exactly what I need - but where do I find the tftp-folder?
I want to upload the cisco-images, but I do not know the path...

Thanks a lot and best regards,

Thomas