LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-12-2003, 05:36 AM   #1
antoniojo
LQ Newbie
 
Registered: Oct 2003
Distribution: SUSE linux 8.0
Posts: 6

Rep: Reputation: 0
I can't execute homemade scripts in Linux!


Hi everybody! I have SuSe Linux 8.0, and when i try to execute any script made by me (i'm root) with the order "./<nameofscriptt>" it keeps me saying "bash: ./<nameofscript>: Permission denied". They're not even shellscripts, only scripts compiled with C by gcc (and its associated Makefile). I have set permissions with chmod also, (chmod 777 <nombrefichero> even), and to no avail. And the scripts works in other computers with the same Linux...

Anybody help me? I don't know what to do....
Thanks!
 
Old 11-12-2003, 07:20 AM   #2
dolvmin
Member
 
Registered: Jul 2003
Location: Florida
Distribution: Red Hat 7.2/8/9, Fedora Core 1/2/3, Smoothwall, Mandrake 7.0/10, Vecter 4, Arch 0.6, EnGuarde
Posts: 289

Rep: Reputation: 30
Try creating a new account with administrative privalages. Under root, provide group permissions to that user and change the ownership to that user as well. Finally, log in as that user, and try the scripts then. Feed me back information.

I know it sounds crazy maybe even dumb, but try it.
 
Old 11-12-2003, 12:06 PM   #3
mAineAc
Member
 
Registered: Nov 2000
Location: Hermon, ME
Distribution: slackware
Posts: 201

Rep: Reputation: 30
you need to chmod

do a chmod +x <scriptname> and you will be all set
 
Old 11-12-2003, 12:28 PM   #4
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Re: you need to chmod

Quote:
Originally posted by mAineAc
do a chmod +x <scriptname> and you will be all set
well chmod 777 is rwx for everybody so if it has been already tried the source of the problem is somewhere else...
 
Old 11-13-2003, 07:39 AM   #5
mAineAc
Member
 
Registered: Nov 2000
Location: Hermon, ME
Distribution: slackware
Posts: 201

Rep: Reputation: 30
oops right you are. That's what I get for doing this so early in the morning I stand corrected.
 
Old 11-14-2003, 04:43 PM   #6
dolvmin
Member
 
Registered: Jul 2003
Location: Florida
Distribution: Red Hat 7.2/8/9, Fedora Core 1/2/3, Smoothwall, Mandrake 7.0/10, Vecter 4, Arch 0.6, EnGuarde
Posts: 289

Rep: Reputation: 30
<laughs>

I heard this scripts are not shell scripts. Are they designed for a program of which is running on Linux?
 
  


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
Unable to execute sh scripts zowey Mandriva 2 12-23-2004 04:59 PM
I can't execute scripts in mounted fs Dasc Linux - General 3 12-16-2004 07:36 PM
I can't execute homemade scripts in Linux! antoniojo Programming 7 11-14-2003 09:00 PM
cant execute any scripts Phonics3k Linux - Newbie 2 06-19-2002 09:00 AM
How to execute Linux scripts LenkaNguyen Linux - General 2 12-07-2001 04:12 PM


All times are GMT -5. The time now is 09:04 AM.

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