LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   permission denied . . . (https://www.linuxquestions.org/questions/linux-newbie-8/permission-denied-67005/)

zthomasz 06-21-2003 02:33 AM

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 . . .?


:confused:

acid_kewpie 06-21-2003 03:54 AM

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.


All times are GMT -5. The time now is 01:40 PM.