UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old January 16th, 2005, 02:07 AM
scream scream is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 441 scream User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 h 59 m 38 sec
Reputation Power: 9
Send a message via ICQ to scream
permission denied

I am trying to execute a script from the command line as root, but am getting a permission denied error. The cause of the problem: I was editing the script with vi when I lost my internet connection.

How can I fix this problem? Even when I delete the file and re-create it I get the error when I try to execute it.

Thanks, Ryan

Reply With Quote
  #2  
Old January 16th, 2005, 05:32 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 44 m 45 sec
Reputation Power: 9
my god

Quote:
Originally Posted by scream
I am trying to execute a script from the command line as root, but am getting a permission denied error. The cause of the problem: I was editing the script with vi when I lost my internet connection.

How can I fix this problem? Even when I delete the file and re-create it I get the error when I try to execute it.

Thanks, Ryan



please reread page 3 of your *nix man
3 ways:
1: give run permissions,
chmod 755 filename
or
chmod a+x filename
2: start it in a shell, /bin/sh filename
3: if you still get the error, in the script, you are calling an unknown interpreter

assumed in filename is
#!/bin/xxx
do something
exit 0

calling filename will give that error.
not filename but /bin/xxx IS the error.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > permission denied


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway