LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-27-2011, 04:45 AM   #1
navsoftdev87
LQ Newbie
 
Registered: Jul 2010
Posts: 1

Rep: Reputation: 0
Permission denied


I logged in my system as root. but when i run a simple shell script i got an error like . Permission Denied.
Can you please tell me why m getting this error
 
Old 01-27-2011, 04:59 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Welcome to LQ
Perhaps you can post the script, and the error messages.

Kind regards
 
Old 01-27-2011, 05:06 AM   #3
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hello navsoftdev87, welcome to LQ,
Quote:
Originally Posted by repo
...Perhaps you can post the script, and the error messages...
... please post the output of the
Code:
ls -l
command (executed within the directory where the script resides).

Markus
 
Old 01-27-2011, 05:14 AM   #4
retxed
Member
 
Registered: Sep 2009
Location: Chennai
Distribution: Ubuntu 11.10 and back track 4
Posts: 45

Rep: Reputation: 9
just make your script executable first, then execute it

Quote:
chmod u+x <script_name>
./<script_name>
Note : Assuming you are the Owner of the file
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 05:50 AM
Permission Denied Ace Blackwell Linux - Newbie 5 04-13-2008 08:08 PM
su -> permission denied progster Linux - General 9 06-28-2007 01:36 PM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 06:57 AM
Permission Denied Viper Slackware 7 08-07-2002 09:22 PM


All times are GMT -5. The time now is 11:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration