LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-21-2003, 03:33 AM   #1
zthomasz
LQ Newbie
 
Registered: Jun 2003
Posts: 17

Rep: Reputation: 0
Exclamation permission denied . . .


i'm trying to view a file as root, but get a "permission denied" message.

Here's the attempt:

[root@www root]# /etc/logrotate.d/vsftpd.log

-bash: /etc/logrotate.d/vsftpd.log: Permission denied

am i missing something . . .?


 
Old 06-21-2003, 04:54 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yeah, you're trying to run it as a program. or more precisely you're trying to run a file which is not allowed to be executed. you nbeed to pass the file as a parameter to a text editor or pager:

pico blah.cfg (editor)

less blah.cfg (pager)

[if the file was actaully allowed to be executed (you'd see some x's in the attributes when you run "ls -l blah.cfg" then you'd still get some error like "can not execute a.out binary file" or something.
 
  


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 jamesvenning1 Linux - Newbie 4 06-05-2005 12:32 PM
Permission denied jagman026 Fedora 3 01-01-2005 04:45 PM
Permission Denied ptreves Linux - Newbie 7 12-16-2004 03:14 PM
Permission denied? jbhoo Linux From Scratch 1 04-27-2002 10:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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