LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-23-2006, 07:03 PM   #1
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Rep: Reputation: 30
./ permission denied even as root


Ive looked throught a couple of answers, but none of them features my question directly.

I am a "kinda" new user of linux. By that I mean that I can run my computer and do normal stuff on it, but I still have a long way to go to be like you. Anyways here's my question.

Ive already installed MANY .sh script without a itch. Now I run Suse 10.1 and I just noticed that each time I want to run a ./whateveritscalled.sh as root, it tells me permission denied.... Any ideas? It does that for EVERY .sh I tried installing, namely ATI drivers, quake 4 demo...

Anyone knows what's going on?

Thanks very much!
 
Old 08-23-2006, 07:07 PM   #2
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
Just a random idea: even root cannot write to a location that is physically read-only. Is there a partition or media device to which you're trying to write?

Otherwise, why don't you look inside the scripts and see what they are doing. The command that fails should reveal more information.
 
Old 08-23-2006, 07:08 PM   #3
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Do you have executable permissions on it? Try a
Code:
 chmod 755 foo.sh
, and see what happens.

Regards,

Alunduil
 
Old 08-23-2006, 08:28 PM   #4
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Original Poster
Rep: Reputation: 30
I am SOOOOOO sorry to have bothered you with that.... chmod 755 fixed it

Thanks!
 
Old 08-23-2006, 09:29 PM   #5
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
Another alternative is to use:

# sh filename.sh

No need to chmod anything.
 
  


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
su root permission denied stardotstar Linux - Software 6 08-20-2006 09:24 PM
Permission denied as root Cadmium Mandriva 6 10-07-2005 01:00 PM
permission denied as root Foosed Slackware 6 06-06-2005 01:38 AM
su root permission denied exodist Linux - Software 4 07-23-2004 04:34 PM
Even as root, Permission Denied RevX Linux - Software 7 04-25-2004 12:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:44 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