• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 5 - startup.sh - Permission Denied

 
Garrett Smith
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Trying run tc5 on OS X. It's been a while since I've done an install of tomcat.

============================================
g-ss-Computer:~ gs$ sudo start_tc5
/bin/start_tc5: line 3: /development/tc5/bin/startup.sh: Permission denied
============================================

Here's start_tc5 shell:
============================================
export CATALINA_HOME=/development/tc5
export JAVA_HOME=/usr
$CATALINA_HOME/bin/startup.sh
============================================

It looks pretty straightforward.

I even tried changing ownership of the directory:
============================================
g-ss-Computer:~ gs$ chown -R gs /development/tc5
============================================

And
============================================
sh-2.05b# chown -R gs:staff /development/tc5
============================================

I still get the "Permission denied" error.

What causes the "Permission denied" error?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does startup.sh have execute permissions?

Type:
ls -l
from Tomcat's bin directory. You should see the permissions for all the files within.

To give the file execute permissions, type:
chmod 700 startup.sh

That gives the owner of the file read,write, and execute permission for that script.
[ February 12, 2005: Message edited by: Ben Souther ]
 
Garrett Smith
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. Actually, none of the .sh files were executable.

chmod 700 *.sh

fixed that.

But now it looks like I need to d/l the compatibility package...

Thanks again,


Garrett
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic