D-Link Forums

D-Link IP Cameras for Home => DCS series Network Cameras => Topic started by: ltwally on January 15, 2009, 04:28:19 PM

Title: DCS-5220 questions / issues.
Post by: ltwally on January 15, 2009, 04:28:19 PM
We have a new DCS-5220 that we're playing with, seeing what we can do with it, and have a number of questions as well as one possible bug to report.  I was somewhat surprised when tier 3 support said this was the best place to cover them all - including the bug.

We are using firmware version 1.02, which is what the camera came with.

First, the bug:
In the webgui, under Configuration > Tools > System > "Turn off the LED indicator"  this is completely ignored by the camera.  The red power LED is always on, and the green status LED flashes as long as it has a network connection.  This is clearly a bug.

Next, our list of questions:

And, a feature request:
It would be really nice if the status LED lit green when there was someone logged on to the webgui.  Perhaps this is the intended activity, and it not doing so should be filed away as part of the above bug...

Thanks in advance for any assistance
Title: Re: DCS-5220 questions / issues.
Post by: ltwally on January 20, 2009, 01:34:26 PM
Anyone?
Title: Re: DCS-5220 questions / issues.
Post by: ECF on January 21, 2009, 09:21:55 AM
Please see this link:

http://www.support.dlink.com/faq/view.asp?prod_id=2906&question=camera+url

As for the LED bug you explain. I will get back to you on this as soon as I find my DCS-5220 and can test it out.
Title: Re: DCS-5220 questions / issues.
Post by: ltwally on January 21, 2009, 09:35:18 AM
I'm afraid that link answered none of my questions.


I did manage to find two shell commands presumably for LED control, named "ledctrl" and "ledswitch".  However, they require root.  Someone at DLINK has to know the root password. 

Thanks
Title: Re: DCS-5220 questions / issues.
Post by: D-Link Multimedia on January 21, 2009, 03:14:08 PM
I'm afraid that link answered none of my questions.


I did manage to find two shell commands presumably for LED control, named "ledctrl" and "ledswitch".  However, they require root.  Someone at DLINK has to know the root password. 

Thanks

We do not provide 'root' access to our cameras. That my friend would be a serious security flaw. No commands are available via console other than FTP.
Title: Re: DCS-5220 questions / issues.
Post by: ltwally on January 21, 2009, 03:18:41 PM
How exactly is a customer knowing the root password to a device that they purchased a security risk?

If I have to, I can run it through a brute-force cracker.  But it would be nice customer support were I not have to do so.
Title: Re: DCS-5220 questions / issues.
Post by: ECF on January 22, 2009, 09:52:19 AM
Well I tested the LED function and its working properly and I remember I used to use this camera and this function at home for some time and It always work now that I think about it.
Title: Re: DCS-5220 questions / issues.
Post by: D-Link Multimedia on January 22, 2009, 10:00:33 AM
How exactly is a customer knowing the root password to a device that they purchased a security risk?

If I have to, I can run it through a brute-force cracker.  But it would be nice customer support were I not have to do so.

Do you work with Linux often? Do you normally give out root account? Now lets say that root account was to span across 1000's of computers and those computers are remotely accessible.

We do not support that type of functionality. If you want more out of your camera you can contact our US HQ with your company information and we can provide you with the SDK that goes with this camera.
Title: Re: DCS-5220 questions / issues.
Post by: ltwally on January 22, 2009, 03:35:22 PM
Do you work with Linux often? Do you normally give out root account? Now lets say that root account was to span across 1000's of computers and those computers are remotely accessible.

When we sell a client a linux server, workstation or device:  absolutely.  It's their device, and they have every right to know the passwords to it.  If they proceed to use that knowledge to nuke the device:  fine... they can pay us to fix it.  ;)

As an additional thought, I might add that perhaps instead of worrying about keeping root's password top-secret, it might be more secure to simply lock down telnet & ftp by default.  That way, it doesn't really matter who knows the default root password.

Quote
We do not support that type of functionality. If you want more out of your camera you can contact our US HQ with your company information and we can provide you with the SDK that goes with this camera.

That might be something we'll investigate in the future.  But it is unfortunate that DLINK makes a person jump through that many hoops just to gain full access to something we paid for.
Title: Re: DCS-5220 questions / issues.
Post by: ltwally on January 22, 2009, 03:36:50 PM
Well I tested the LED function and its working properly and I remember I used to use this camera and this function at home for some time and It always work now that I think about it.

Interesting.  After I first noticed the problem, I hit the "reset to factory" button.  (It didn't help.)

I suppose I can reflash the device and see if that heals it.  Otherwise, I suppose there's always RMA. :(
Title: Re: DCS-5220 questions / issues.
Post by: lostgweilo on December 21, 2010, 08:57:34 AM
Hello!
Just sharing my findings here... it may help someone looking for information.
I am not sure how you hope to use the commands to turn the led on or off... since I was not able to run a shell on a device.
I tried ssh and telnet and nothing worked.
However FTP works.
And here is the amusing part: you can cd /etc and then GET passwd
you can also get /etc/group
and you can also PUT them back! (if you are logged in as admin at least)
So I guess that should solve your root password problem because you should be able to reset the password to null or just copy paste the encrypted password field for a user you created and you know the clear text for.
I noticed that after adding a few users and trying to grant them camera control rights, the /etc/group file got kind of corrupted and nobody was able to control the camera anymore.
(I suspect the thing was designed years ago and never tested with anything else but versions 1 of Internet Explorer and version 0.9 of Firefox, so it gets confused when adding users with recent browsers? Not sure)
In any case you can:
1. download the file (e.g. get /etc/passwd or get /etc/group)
2. edit it locally using your favorite editor. (that means EMACS)
3. put the file back using the cd /etc then put passwd  or put group  commands.

BTW I agree with you I find it amazing that people think they have to keep the root password secret from the owner, what a joke.
Title: Re: DCS-5220 questions / issues.
Post by: Xetra on July 16, 2011, 03:50:51 PM
That worked on mine :
To get root on dlink  5220 :

putty with your user password
vi /etc/passwd
and delete the root password (remove xxxxx from  root:xxxxxxx:0:0)
save

putty as root :)
passwd to set a new password

I was able to reboot the camera during my holydays (web server KO)
I will check if possible to customize the default web page (for iphone)