DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-12-24 02:08:22

rtg20
Member
Registered: 2007-12-23
Posts: 34

chroot_debian - deleting users through web interface

Hi everyone,

I have been trying really hard to get debian working on my DNS-323 so I can use scp/sftp to transfer files. I had all kinds of problems (added some info to the wiki based on what i found); the main problem right now is that after I chroot to debian I can no longer delete users using the D-Link web interface. Having got rid of the debian fun_plug (replaced it with the telnet one) and restarting the device it works again.

Does anyone have a solution to this? I'm not proficient enough in Linux to be able to do without it; I want to be able to run the web interface at the same time as Debian and have both of them work.

Thanks,

Richard

Offline

 

#2 2007-12-24 03:07:45

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: chroot_debian - deleting users through web interface

rtg20 wrote:

... the main problem right now is that after I chroot to debian I can no longer delete users using the D-Link web interface...

I don't think the D-Link web interface is supposed to work after you install a chroot Debian.
You can manage user and groups with commands at the prompt after telnet or ssh into the
chroot Debain.

I believe this is because there is a file at /etc/users that the D-Link web interface will use to store
user information (and overwrite this file at each reboot from flash),
and there is another /mnt/HD_a2/sarge/etc/users that the Debian chroot will use to store user info.


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#3 2007-12-24 03:46:27

rtg20
Member
Registered: 2007-12-23
Posts: 34

Re: chroot_debian - deleting users through web interface

thanks for the reply.

as i only want ssh/scp, is there anything like usshd (like utelnetd)?

getting utelnetd to work was easy. :-)

thanks.

Offline

 

#4 2007-12-24 04:28:59

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: chroot_debian - deleting users through web interface

I believe ssh/scp (dropbear) and sftp are all included in Fonz's fun_plug v0.3
First you have to install Fonz's fun_plug (link in my sig) then,
you have a look at the readme.txt for instruction on how to enable dropbear.
Make sure you read the part about root password changes.

Here http://dns323.kood.org/forum/p3261-2007 … html#p3261
is a thread discussing scp


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#5 2007-12-26 03:58:06

rtg20
Member
Registered: 2007-12-23
Posts: 34

Re: chroot_debian - deleting users through web interface

just what i wanted - thanks!!!

Offline

 

#6 2007-12-26 20:57:27

bgoedel
Member
From: Vienna, Austria
Registered: 2007-11-24
Posts: 62

Re: chroot_debian - deleting users through web interface

Anyway, you don't need to run your box entirely Debian chroot'ed as proposed in the Wiki. You can let the native firmware start its daemons and use the fun_plug script to additionally start processes chroot'ed. For instance, you can add something like

Code:

chroot /mnt/HD_a2/sarge /etc/init.d/lighttpd start

in order to start a lighttpd chroot'ed in Debian, for instance for full Python support (which I didn't manage to run fun_plugged in the native firmware...)
The DNS-323 should continue its normal operation, such as the web server for the configuration, FTP, UPnP, iTunes, Samba, etc.

Bernhard

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB