LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 09-23-2010, 09:04 PM   #1
mardi
LQ Newbie
 
Registered: Sep 2010
Location: Indonesia
Distribution: RedHat
Posts: 16

Rep: Reputation: 3
I can't run CutyCapt on my Red Hat 12 Distro


Hi experts,

I had a CutyCapt package that i download from this link

I follow the instruction on that's page to compile it, but when I try to run the program. It unsuccess. the message is 'permission denied'

this's what I done.
Quote:
[mardi@MTools CutyCapt]$ ls
CutyCapt CutyCapt.hpp CutyCapt.pro moc_CutyCapt.cpp
CutyCapt.cpp CutyCapt.o Makefile moc_CutyCapt.o
[mardi@MTools CutyCapt]$ ./CutyCapt --url=www.google.com --out=sample.bmp
bash: ./CutyCapt: Permission denied
[mardi@MTools CutyCapt]$
so, if there are of you had a solution, please tell me.
all your respond will be appreciate.

Regards,
Mardi V. Tamma
 
Old 09-24-2010, 01:09 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Start by listing permissions & ownerships


ls -l

(lowercase L)
 
Old 09-24-2010, 01:50 AM   #3
mardi
LQ Newbie
 
Registered: Sep 2010
Location: Indonesia
Distribution: RedHat
Posts: 16

Original Poster
Rep: Reputation: 3
Thanks for the respond.

All the file is permitted for modify (rwx) for user, group and others.

here the display on my computer

Quote:
[mardi@MTools CutyCapt]$ ls -lah
total 1.5M
drwxrwxrwx 2 mardi mardi 16K 2010-09-22 15:05 .
drwxrwxrwx 22 mardi mardi 16K 2010-09-24 11:37 ..
-rwxrwxrwx 1 mardi mardi 554K 2010-09-22 15:05 CutyCapt
-rwxrwxrwx 1 mardi mardi 22K 2010-06-08 14:12 CutyCapt.cpp
-rwxrwxrwx 1 mardi mardi 2.0K 2010-06-08 14:12 CutyCapt.hpp
-rwxrwxrwx 1 mardi mardi 540K 2010-09-22 15:04 CutyCapt.o
-rwxrwxrwx 1 mardi mardi 225 2008-06-11 02:01 CutyCapt.pro
-rwxrwxrwx 1 mardi mardi 6.8K 2010-09-22 15:04 Makefile
-rwxrwxrwx 1 mardi mardi 4.0K 2010-09-22 15:04 moc_CutyCapt.cpp
-rwxrwxrwx 1 mardi mardi 275K 2010-09-22 15:05 moc_CutyCapt.o
[mardi@MTools CutyCapt]$ ./CutyCapt --url=www.google.com --out=sample.bmp
bash: ./CutyCapt: Permission denied
[mardi@MTools CutyCapt]$
Are there more suggestion?
 
Old 09-24-2010, 02:04 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Is the partition on which that directory resides mounted "noexec"?
 
Old 09-24-2010, 02:46 AM   #5
mardi
LQ Newbie
 
Registered: Sep 2010
Location: Indonesia
Distribution: RedHat
Posts: 16

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by Nylex View Post
Is the partition on which that directory resides mounted "noexec"?
Hi Nylex, I think you're right.
There're "noexec" rule on that parititon

here the mount information on my computer.
Quote:
/dev/sda7 on /media/data type vfat (rw,noexec,nosuid,nodev,uid=500,gid=500,umask=000)
and my file on that mount point which not allowed for execute binary file.
Quote:
[mardi@MTools CutyCapt]$ ls -lh
total 1.5M
-rwxrwxrwx 1 mardi mardi 554K 2010-09-22 15:05 CutyCapt
-rwxrwxrwx 1 mardi mardi 22K 2010-06-08 14:12 CutyCapt.cpp
-rwxrwxrwx 1 mardi mardi 2.0K 2010-06-08 14:12 CutyCapt.hpp
-rwxrwxrwx 1 mardi mardi 540K 2010-09-22 15:04 CutyCapt.o
-rwxrwxrwx 1 mardi mardi 225 2008-06-11 02:01 CutyCapt.pro
-rwxrwxrwx 1 mardi mardi 6.8K 2010-09-22 15:04 Makefile
-rwxrwxrwx 1 mardi mardi 4.0K 2010-09-22 15:04 moc_CutyCapt.cpp
-rwxrwxrwx 1 mardi mardi 275K 2010-09-22 15:05 moc_CutyCapt.o
[mardi@MTools CutyCapt]$ pwd
/media/data/Downloads/CutyCapt
[mardi@MTools CutyCapt]$
Anyway, Thank for the solutions. Wish all the best for you and all the LQ member.

Regards,

Mardi V. Tamma

Last edited by mardi; 09-24-2010 at 03:18 AM. Reason: realize the problem.
 
Old 09-24-2010, 03:09 AM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
a question "Red Hat 12 Distro"
red hat 12 ???? there is no red hat 12


but as to the program +x it
or in Gnome r-click and select properties select the permisions tab and put a check in the execute
or
Code:
cd /media/data/Downloads/CutyCapt
-- that is where it is ??? --
chmod +x CutyCapt
./CutyCapt --url=www.google.com --out=sample.bmp
 
Old 09-24-2010, 03:18 AM   #7
mardi
LQ Newbie
 
Registered: Sep 2010
Location: Indonesia
Distribution: RedHat
Posts: 16

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by John VV View Post
a question "Red Hat 12 Distro"
red hat 12 ???? there is no red hat 12
sorry, my mistake. It's Fedora 12.
Thank you for point that.

the result from your code is
Code:
[mardi@MTools CutyCapt]$ ls -lh
total 1.5M
-rwxrwxrwx 1 mardi mardi 554K 2010-09-22 15:05 CutyCapt
-rwxrwxrwx 1 mardi mardi  22K 2010-06-08 14:12 CutyCapt.cpp
-rwxrwxrwx 1 mardi mardi 2.0K 2010-06-08 14:12 CutyCapt.hpp
-rwxrwxrwx 1 mardi mardi 540K 2010-09-22 15:04 CutyCapt.o
-rwxrwxrwx 1 mardi mardi  225 2008-06-11 02:01 CutyCapt.pro
-rwxrwxrwx 1 mardi mardi 6.8K 2010-09-22 15:04 Makefile
-rwxrwxrwx 1 mardi mardi 4.0K 2010-09-22 15:04 moc_CutyCapt.cpp
-rwxrwxrwx 1 mardi mardi 275K 2010-09-22 15:05 moc_CutyCapt.o
[mardi@MTools CutyCapt]$ chmod +x CutyCapt
[mardi@MTools CutyCapt]$ ./CutyCapt --url=ww.google.com --out=sample.bmp
bash: ./CutyCapt: Permission denied
[mardi@MTools CutyCapt]$
I think all the file had been permit for execute. but like Nylex suggest. The main problem is on the partition mount rule.

It solved now. anyway, Thank you for your attention.

Regards,
Mardi V. Tamma

Last edited by mardi; 09-24-2010 at 03:20 AM.
 
  


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
Project made in Red Hat Enterprise 4 need to be able to run on Red Hat Enterprise 3 Elin Linux - Software 1 07-13-2006 12:22 PM
Best Red Hat Distro to use? Rustylinux Red Hat 3 03-28-2006 07:58 AM
Which Red hat version best for using GSX / Best Red Hat distro? Rustylinux Linux - Software 2 03-27-2006 11:27 AM
Run Red Hat 9 on an old pc ratz Linux - Software 6 10-16-2003 03:28 PM
Why no Red Hat Distro Forum? Pcghost LQ Suggestions & Feedback 6 02-22-2003 03:04 PM

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

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