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-09-16 11:15:14

stefan741
Member
Registered: 2007-09-12
Posts: 22

Problem with myfancontrol.sh (Script from wiki)

Hi,

when I run the Script from (http://dns323.kood.org/hardware:fan)
I get the following errors:


~ $ ./myfancontrol.sh &
~ $ mkdir: Cannot create directory `/log': Permission denied
kill: 926: Operation not permitted
./myfancontrol.sh: cannot create /log/fan_ctrl.log: No such file or directory
cannot create /tmp/temper_C: Permission denied
cannot create /tmp/temper_F: Permission denied
cannot create /tmp/temper: Permission denied
./myfancontrol.sh: cannot create /log/fan_ctrl.log: No such file or directory

~ $ whoami
stefan
~ $ ps -ef | grep fan
  926 root     fancontrol
1205 stefan   -sh
1677 stefan   /bin/sh ./myfancontrol.sh
1695 stefan   sleep 60
1700 stefan   ps -ef
1701 stefan   grep fan
~ $

It seems, fancontrol is still running & and some files can not be created.

when I run /usr/sbin/temperatur manually, I get this errors:

~ $ /usr/sbin/temperature g 0
cannot create /tmp/temper_C: Permission denied
cannot create /tmp/temper_F: Permission denied
Temperature type : Centigrade
<temperaturertc>: get temperature = 44
cannot create /tmp/temper: Permission denied
~ $

Do I have to be root? But how do I change to root? su -? But I dont have a passswd!

Thanks in advance!

Stefan

Offline

 

#2 2007-09-16 11:53:23

stefan741
Member
Registered: 2007-09-12
Posts: 22

Re: Problem with myfancontrol.sh (Script from wiki)

dump!

use telnet instead of ssh! -> then I'm root!

However, is it possible to gain root access via ssh? su - does not work

Stefan

Offline

 

#3 2007-09-16 22:45:11

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Problem with myfancontrol.sh (Script from wiki)

stefan741 wrote:

However, is it possible to gain root access via ssh? su - does not work

su works, though not the way you might expect. Plain 'su' will start root's login shell as configured in /etc/passwd. This is probably /bin/sh - the firmware shell, a very old busybox, modified by dlink to ask for the magic number 5784468, first.

Try

Code:

su -c /mnt/HD_a2/fun_plug.d/bin/sh

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB