LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-17-2007, 01:04 AM   #1
ckurowic
LQ Newbie
 
Registered: May 2007
Posts: 4

Rep: Reputation: 0
Permission Denied Error


Hello, I am quite new to Linux. I just installed Ubuntu server on my iMac G3 (to test things out). I followed all instructions on downloading new applications to set it up as a server. However, when I try to access these applications by using ./program name the computer returns the error "Bash: permission denied". I am running as the root user, but it does the same thing even if I'm not root. Any suggestions?
 
Old 05-17-2007, 02:08 AM   #2
tristanm
Member
 
Registered: Jun 2005
Location: Pretoria, South Africa
Distribution: Ubuntu, Fedora Core, RHEL
Posts: 37

Rep: Reputation: 15
Can you give some more information please?

What applications are you referring to and what are the permissions of the executable file?

I suggest you type something like the following:

Code:
ls -lA /usr/bin/applicationName
and then post the output. If your executable is not in /usr/bin then just substitute its actual path.
 
Old 05-17-2007, 09:36 AM   #3
ckurowic
LQ Newbie
 
Registered: May 2007
Posts: 4

Original Poster
Rep: Reputation: 0
The info

Since I am horribly new at Linux, here is everything I am doing...

1) Log in as chriskurowicki (normal user)

2) Log in as root using "su"

3) Current directory is root@shaky:/home/chriskurowicki

4) cd "files"

5) dir

6) 2 folders, MD5-2.03 and openssl-0.9.8e

7) Then I tried going into the folder of MD5-2.03

8) a dir reveals Makefile.PL, MAINIFEST, MD5.pm, README, and t

9) If I use ./MD5.pm or ./anything I get the error "bash: ./MD5.pm: Permission denied


It does the same thing when I am not logged in as root.
 
Old 05-17-2007, 09:43 AM   #4
ckurowic
LQ Newbie
 
Registered: May 2007
Posts: 4

Original Poster
Rep: Reputation: 0
....Maybe all apps need to be in /usr/bin???
 
Old 05-17-2007, 09:59 AM   #5
tristanm
Member
 
Registered: Jun 2005
Location: Pretoria, South Africa
Distribution: Ubuntu, Fedora Core, RHEL
Posts: 37

Rep: Reputation: 15
Er... ok hold on... here we go:

First of all, in Linux the native command to list the contents of a director is "ls". This is preferable to "dir" and will highlight the different types of files and directories in different colours. For example, a file which appears in green when you type "ls" at the prompt, is executable (or at least has executable permissions).

Secondly: are the packages you are interested in "MD5" and "OpenSSL"? Are you trying to run them or install them?

Thirdly, I don't think that MD5.pm is an executable program. It looks to me like a checksum (an encrypted code used to check the validity of your source package, it is a way of ensuring that it has not been tampered with).

Fourthly, name a program you would like to run and which you believe your system has installed. It is not easy to help with a broad generalization of a problem.

Finally, at step 5, type the following:
Code:
ls -lA
and post what you get as your result. The result will indicate what you can execute from that directory.
 
Old 05-17-2007, 10:08 AM   #6
ckurowic
LQ Newbie
 
Registered: May 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Hmm, well, MD5 is supposed to be a firewall application. I did the ls -1A in its folder and came up with Changes, Makefile.PL, MANIFEST, MD5.pm and README all in grey. Below that is "t" which is blue (a folder?).

The packages I was referring to need to be installed.
 
Old 05-18-2007, 03:25 AM   #7
tristanm
Member
 
Registered: Jun 2005
Location: Pretoria, South Africa
Distribution: Ubuntu, Fedora Core, RHEL
Posts: 37

Rep: Reputation: 15
Open the file called "README" in a text editor.

If you are using a file browser, simply double click and it should open in your default editor. If you are in a terminal try
Code:
emacs README
Note: to exit emacs press "CTRL+Z"
or
Code:
vi README
Note: to exit the vi editor, press ":" and then type "q" and press "enter".

The README file should give you instructions on how to install the packages. You will either have the binary package which will have specific installation instructions or you will have the source package which you need to build yourself.
 
Old 05-18-2007, 03:33 AM   #8
digitalnerds
Member
 
Registered: May 2007
Distribution: Debian
Posts: 103

Rep: Reputation: 15
I see there is a perl pack and contains a Makefile.PL. To run it you should type something like

Code:
perl Makefile.PL
followed of course by make ; make install

Regards
Andy
 
  


Reply



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
java n fc3, error permission denied AVD_ZM Linux - Software 1 05-23-2005 03:46 AM
Samba error: Permission denied dmkang Linux - Software 6 04-01-2005 08:29 AM
sasldb Permission denied error shino Linux - Networking 0 01-15-2004 03:55 PM
permission denied error endezeichen Linux - General 5 12-20-2003 06:59 PM
FSTAB / Permission Denied Error clearh20 Linux - Newbie 5 06-10-2003 12:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:19 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
Open Source Consulting | Domain Registration