I need to change values in a file owned by root (root password is constant)

The file is parameter file has below contents. The file is owned by root. My script is run by normal user and root password is constant and we can hardcode it.

ABCLimit: 90

SpoolLimit: 200

TimeLimit: 345

I need to change the value of SpooLimit from 200 to 400.

Can anybody please give code for this?

[336 byte] By [lucky_9a] at [2007-11-27 11:59:00]
# 1

You should change the ownerhship of that file if that is reasonable to do.

cotton.ma at 2007-7-29 19:23:08 > top of Java-index,Java Essentials,New To Java...
# 2

You can, as root, make the file writable to everyone with the command "chmod o+w filename". You don't have to change the ownership of the file.

jsalonena at 2007-7-29 19:23:08 > top of Java-index,Java Essentials,New To Java...