Rc script permission problem


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Rc script permission problem
# 1  
Old 03-09-2009
Java 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
raghu.amilineni
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

SVN Permission problem

I am running subversion 1.6.6 on Ubuntu 10.04 (Lucid), Viewvc 1.0.9 and apache2 (2.2.14) and LDAP authentication. I have multiple repositories on my SVN server and it all working fine, however I am unable to set access control (permissions) using AuthzSVNAccessFile. “SVNParentPath... (0 Replies)
Discussion started by: hassan1
0 Replies

2. Slackware

K3b permission problem

When I set up to backup /home to a DVD I am incurring a problem with K3B ver. 2.0.2 saying I (root) has insufficient privileges to access /home/myuser/hp-check.log file. It also does this to the lost+found files for /home and /opt. I am root and the file/directory has read+write privs for root.... (1 Reply)
Discussion started by: slak0
1 Replies

3. UNIX for Dummies Questions & Answers

Permission problem

How would i change permissions for a new directory so that i am the only one who has any access to any of the files created in it (2 Replies)
Discussion started by: trob
2 Replies

4. Solaris

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... (3 Replies)
Discussion started by: raghu.amilineni
3 Replies

5. AIX

Peculiar permission problem

Scenario: Step 1. I'm logging into AIX server using user id called user1 Step 2. I'm traversing to home directory of user2 Note: This user2's home directory has the permissions drwxr-s--- Step 3. I'm issuing command pwd there. I'm getting the expected output. Step 4. I'm issuing the... (3 Replies)
Discussion started by: krishmaths
3 Replies

6. Solaris

file permission problem

Hi Expert, Could you tell me what is the meaning of " + " as shown below: drwxr-xrwx+ /opt Thanks. (2 Replies)
Discussion started by: skully
2 Replies

7. Linux

dos2unix permission problem

Hi All, I want to use the command "dos2unix" to format the file line break from win to unix, but after changing the file permission has been change to 600. how can i keep the original permisson after formatting? Many thz (2 Replies)
Discussion started by: eric_wong_ch
2 Replies

8. Solaris

Permission Problem

I ran the sys-unconfig command and now I can't seem to change the permission on that folder evne though I'm the Superuser(Root admin). I need to fix this so the user 'tommy' can login and have his home directory working. How do I fix this??? http://www3.telus.net/superstar/error.jpg (6 Replies)
Discussion started by: kungpow
6 Replies

9. Forum Support Area for Unregistered Users & Account Problems

Permission problem

I am having problems editing my options and profile etc. Whenever i do, i am getting a message that says I don't have any permissions. Can u tell me a solution. (2 Replies)
Discussion started by: rockyrak
2 Replies

10. UNIX for Dummies Questions & Answers

File permission problem

I have a crontab job that runs a database backup and directs the output to a log. I ran the job, and the output log file was created with no problems, but now if I try and run the same job again, I keep getting a file exists error. The permissions are: -rw-rw-r-- I also tried changing the... (2 Replies)
Discussion started by: jodie
2 Replies
Login or Register to Ask a Question
NETSCRIPT-2.2.conf(5)						File Formats Manual					     NETSCRIPT-2.2.conf(5)

NAME
/etc/netscript/network.conf - interface, firewalling, and QoS configuration file. /etc/netscript/if.conf - interface setup shell script file /etc/netscript/qos.conf - QoS setup shell script file /etc/netscript/ipfilter.conf - IP chains filtering shell script file /etc/netscript/srvfilter.conf - server IP filter shell script file DESCRIPTION
This manpage is a place holder until something better is written when the netscript itself has stopped changing rapidly. Please see the README file in the /etc/netscript directory, and READ the configuration files if you need to change them. Apart from net- work.conf, all of them contain sh (1) shell script functions which are there so that various things can be altered or hooked in at the right place. Network.conf contains the full network setup details, including special interface setup for the likes of ciped/pppd/wanconfig, and is fully commented with examples given. UPGRADE PATH FROM KERNEL 2.2.X The firewall/IP filtering stuff in ipfilter.conf is the part that changed radically with the move to iptables and a far better way of set- ting up the IP filtering rules, however the QoS and interface startup/shutdown in if.conf have changed but are backwards compatible with the old 2.2.x ipchains version of netscript for the interface address configuration settings. You will have to set up the filtering again to use iptables by directly using the iptables commands. Also, the kernel 2.2.x version scripts are set up so that iptables is only run on a 2.4.x kernel, otherwise IP forwarding is disabled if beforehand you set IPFWDING_KERNEL to FILTER_ON in network.conf. This means that when you upgrade a box to a 2.4.x router kernel, you should then be able to reboot it and log into remotely and upgrade netscript to the version that will support 2.4.x. In this situation, if you have set old IPFWDING_KERNEL setting to FILTER_ON beforehand in network.conf, all IP forwarding through the box will also be disabled. This means that you can safely remotely upgrade a firewall. SEE ALSO
netscript(8), ipchains(8), iproute(8), brcfg(8). AUTHOR
This manual page was written by Matthew Grant <grantma@anathoth.gen.nz>, for the Debian GNU/Linux system (but may be used by others). BUGS
The author is lazy. He needs to write btter man pages... November 23, 2000 NETSCRIPT-2.2.conf(5)