Originally posted by: LeonarD26
OK, so I've got the .sh scripts to run when the Linux box starts. I placed a link to it in the rc.local file which is in the /etc/rc.d directory. The only problem is, I need the script to run as a different user (seems to run as 'root', needs to be 'oracle'). Any ideas?
USER should be replaced by the username and COMMAND should be replaced by the command to be run. I will give you the answer, and then you will do some reading. Commands are in bold.
su USER -c COMMAND
Now, after you try it out and report back, man su.
 
				
		 
			 
 
		 
 
		 
 
		 
 
		
 Facebook
Facebook Twitter
Twitter