IP Camera
Home IP Cameras Reviews Forums IP Camera Software IP Camera Comparison Tools and Support Contact Us

Site Search

Your IP Network Camera and Video Server Source


- IP Camera and Video Server Reviews
- Discussion Forums
- Tools and Support
- Industry News and Articles
- Complete Product and Software Listings
Where to Buy

Latest IP Camera Reviews

P606/P606W
Bosch NWC-0455 IP Camera
Arecont Vision AV2110 Network
Arecont Vision AV2110 Network
Arecont Vision AV2110 Network

Newsletter Sign Up

IP Camera Help Center

Information:
IP Camera Forum
Manufacturers
IP Camera Software
Integrators & Solution Providers
Glossary of Terms
Camera Comparison
Camera Demos
View Articles
Press Releases
Tools and Support
Where to Buy

Other Resources:

Website Help

About Us
Media Kit
Contact Us
RSS Feed
Site Map
Industry Links
Link Directory





 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

axis207MW:change root password at first boot - curl request


 
Post new topic   Reply to topic    IP Camera Forum Forum Index -> Installation
Author Message
hornetbzz
New Member


Joined: 27 Oct 2010
Posts: 4

PostPosted: Sat Oct 30, 2010 5:06 pm    Post subject: axis207MW:change root password at first boot - curl request Reply with quote

Hi

I'm looking how to shell script for changing the root password at boot, but no success till now.

I can manage to change it once the first password has been set up but not at the first boot time. (both ways are working: using cgi vapix in a curl request or directly through curl in the shell)

Could anybody give a hint about the right curl request for this please ?

Thx in advance

----------------------------------
Here is what I tried w/o success :

Code:
echo "Changing root default password : "
USER="root"
PASSWORD="new_pwd"
# GET from pwdroot/pwdRoot.shtml
# ="submitdata=action?update&user=$USER&pwd=$PASSWORD&dummy="
# POST="dummy=&user=$USER&pwd=$PASSWORD&pwd_confirm=$PASSWORD"
#POST="user=$USER&pwd=$PASSWORD&dummy="
#POST="user=$USER&pwd=$PASSWORD&pwd_confirm=$PASSWORD&dummy="
POST="submitdata=action?update&user=$USER&pwd=$PASSWORD&dummy="
URL="pwdroot/pwdRoot.shtml"
curl --data "$POST" http://my_cam_lan_ip/"$URL"


I also tried straight in the browser :
Code:
http://my_cam_lan_ip/axis-cgi/pwdroot/pwdroot.cgi?action=update&user=root&pwd=test2&return_page=/


This way showed at the mean time that there is a small bug in the axis cgi script as I could connect to the axis live view despite the root password has not been reset, but this is another story.
Back to top
View user's profile Send private message
hornetbzz
New Member


Joined: 27 Oct 2010
Posts: 4

PostPosted: Sat Oct 30, 2010 9:39 pm    Post subject: Reply with quote

I got it solved.

I digged a bit more into the cgi scripts code and it looks like that the pwdroot.cgi script is awaiting a GET request when I was trying to send it with the POST (curl --data ..) Rolling Eyes


So the correct way for this curl request is :
Code:
curl "http://my_cam_lan_ip/axis-cgi/pwdroot/pwdroot.cgi?action=update&user=$USER&pwd=$PASSWORD&return_page=/"


It works in my model case (axis 207MW)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IP Camera Forum Forum Index -> Installation All times are GMT - 4 Hours
Page 1 of 1

 


Highest Rated

Most Viewed