Re: /var/log/messages permissions issue...

2012-03-18 Thread Rob Healey
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" 
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  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.
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test

Re: /var/log/messages permissions issue...

2012-03-18 Thread T.C. Hollingsworth
On Sun, Mar 18, 2012 at 8:18 PM, Rob Healey  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.
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test

Re: /var/log/messages permissions issue...

2012-03-18 Thread Hongqing Yang
try

cat /var/log/messages |grep shell

- Original Message -
> From: "Rob Healey" 
> To: "Fedora Development List" 
> Sent: Monday, March 19, 2012 11:18:59 AM
> Subject: /var/log/messages permissions issue...
> 
> 
> 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
> 
> It didn't display anything on my terminal window, and I had to do a
> [Control] C to get out of it...
> 
> --
> Sincerely yours,
> Rob G. Healey
> 
> 
> --
> test mailing list
> test@lists.fedoraproject.org
> To unsubscribe:
> https://admin.fedoraproject.org/mailman/listinfo/test
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test