Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
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
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
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
su -c /mnt/HD_a2/fun_plug.d/bin/sh
Offline