Rc script permission problem

Hi,

I have written a startup script which has be started while reboot.

I am using Solaris10 machine and i have logged in as a root user.

I have written a code the following code

cp ./StartService /etc/init.d/

chmod 744 /etc/init.d/StartService //i have given it executable permissions

chgrp root /etc/init.d/StartService //i have changed it group to root

ln -s /etc/init.d/StartService /etc/rc2.d/S200StartService //while startup
ln -s /etc/init.d/StartService /etc/rc0.d/K800StartService //whle shutdown

Still after running this script i see the following

rw-r-r root root Service

i am unable to get executable permission for the StartService.

I am not sure whether i can give 3digits after S in <S200StartService>.

pls solve my problem.

Thanks in advance
RaghuDeep Amilineni

where are you getting this from? can you paste the exact output?

when i execute ls -l at /etc/init.d , i get the following message

-rw-r--r-- 3 root root 1000 Mar 9 16:24 StartService

try chmod 744 again and verify. Remove the softlink first