* use proftpd for both registered users mode and anonymous mode (wu-ftp was used for anonymous mode)

+

Done :

+

* You can now tell that you don't want to share a folder in /mnt !

+

* Allow root account to browse the whole system in FTP

+

+

=== mkshinfo ===

+

==== Known actions ====

+

Check folders in /mnt and add unconfigured folders in /etc/melco/shareinfo.

+

Check /etc/melco/shareinfo and creates unexisting shares in /mnt.

+

The original application was sharing folders that where not already in the shareinfo file, but now that we can tell not to share a folder, if the folder have been created by hand, we can consider that we don't want to share it !

+

+

==== Perl script ====

+

#!/usr/bin/perl

+

#use strict;

+

+

# This script replace original /sbin/mkshinfo application by melco

+

# History :

+

# 06/07/19 by sylver : creation

+

+

# First step is to parse the shareinfo file to check if every directory exists. If it doesn't exist, then create it in /mnt

+

# Second step is to parse the /mnt and to add a default configuration in shareinfo file for directories that are not already in it

Introduction

You may know the Kuro-box HTTP interface that allow to manage many things like samba shares and many other things !
As I love these pages, I decided to make them running with Debian !

Progress

Legend :
(P) = ported thing : It was existing before, but needed some modifications in CGI code or system files
(N) = new feature : It's something new in the interface.
(B) = bug fix : There are some bugs in the administartion pages/scripts, it's better to correct them !

Things done

(P) Porting main http structure

(P) IP set to 192.168.11.150 if no DHCP server found (and configured to run in DHCP)

(P) NTP synchronisation at startup if enabled (needs ntp and ntpdate)

(P) NTP cron job at a defined hour if enabled (needs cron)

(P) Network link stats in status page (need ethtool)

(N) HDD temperature information (need hddtemp)

(P) Samba users management (need samba)

(B) There is an anoying bug about the workgroup setup not working => Using my scripts, i don't have this bug ...

Scripts to write

There is some applications from melco that are written in C, and we have no access to source !
Some scripts need to be rewritten as they can't work anymore in a 2.6 kernel, or because some applications are not working the same way than before !

mkcode

Known actions

mkcode application is the application that create some configuration files for Samba, Netatalk and xxFTPD

Things to improve

use proftpd for both registered users mode and anonymous mode (wu-ftp was used for anonymous mode)

Done :

You can now tell that you don't want to share a folder in /mnt !

Allow root account to browse the whole system in FTP

mkshinfo

Known actions

Check folders in /mnt and add unconfigured folders in /etc/melco/shareinfo.
Check /etc/melco/shareinfo and creates unexisting shares in /mnt.
The original application was sharing folders that where not already in the shareinfo file, but now that we can tell not to share a folder, if the folder have been created by hand, we can consider that we don't want to share it !

Limiting support for listed types will prevent most of the USB thumbdrives to work

We will correct these 2 problems with our script ;)

Perl script

This script is not working well, and it's not written in the best way (it's calling 'awk' command but this part should be rewritten in PERL by someone who knows PERL better than me).
For now the /mnt2/usbinfo/exist output is wrong but it seems to work that way. I'll correct that later.
The main problem is that the content of the files is not exact all the time. Need some work to see how to make things correct !