Dear TC:
Thanks for the help and for the understanding what and why it did happen!
Sincerely yours, Rob G. Healey
From: "T.C. Hollingsworth" tchollingsworth@gmail.com To: For testing and quality assurance of Fedora releases < test@lists.fedoraproject.org> Cc: Date: Sun, 18 Mar 2012 20:24:39 -0700 Subject: Re: /var/log/messages permissions issue... On Sun, Mar 18, 2012 at 8:18 PM, Rob Healey robhealey1@gmail.com wrote:
Greetings:
I was trying to look at the system messages this evening, and this is
what I
got...
[root@BurningBushes ~]# grep shell | /var/log/messages -bash: /var/log/messages: Permission denied
You were attempting to pipe the output of `grep shell` to a program called `/var/log/messages`. '/var/log/messages' is not executable, so bash fails with that permission denied error. Since you're missing the third argument to `grep`, it waits for input from stdin to search, which is why you had to CTRL+C to get back to the shell.
Drop the pipe symbol so the command reads `grep shell /var/log/messages` and you'll instead search /var/log/messages for "shell". ;-)
It didn't display anything on my terminal window, and I had to do a [Control] C to get out of it...
-T.C.