On 03/05/2012 06:59 PM, Garrett Holmstrom wrote:
> On Mar 5, 2012 10:11 AM, "Juan Rodriguez" <[email protected] 
> <mailto:[email protected]>> wrote:
>>
>> Hey there,
>>
>> I'm new to Amazon EC2 / Cloud providers in general, but I tried to set up 
>> using Fedora's F16 Images (Available here [1]) using ami-5f16d836. It 
>> apparently passes all of Amazon's checks, however I can't ping the instance 
>> once it's fully set up. I decided to check the System Log and noticed this:
>>
>> Determining IP information for eth0.../etc/init.d/functions: line 58: 
>> /dev/stderr: Permission denied /etc/rc.d/init.d/functions: line 58: 
>> /dev/stderr: Permission denied /etc/init.d/functions: line 58: /dev/stderr: 
>> Permission denied /etc/rc.d/init.d/functions: line 58: /dev/stderr: 
>> Permission denied
> 
> This always happens. I am equally clueless as to what it means, but AFAIK it 
> doesn't break anything.

I noticed the above error independently.
I logged in as root and changed to another user.
I that case /dev/stderr is owned by root and hence not readable.
The error above was output when I tried `service sshd status`

Seems that it's due to:
http://git.fedorahosted.org/git/?p=initscripts.git;a=commitdiff;h=09bfb503

The attached may fix it up.

cheers,
Pádraig.
>From cc601edcbb9e4767843d4e97aafc0a5737e5a341 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A1draig=20Brady?= <[email protected]>
Date: Mon, 5 Mar 2012 23:53:54 +0000
Subject: [PATCH] Handle writeonly terminals

I noticed error messages after I logged in as root,
but then changed to another user (which then did not
have read access to /dev/stderr).
---
 rc.d/init.d/functions |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 1437b25..06ee29f 100644
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -55,7 +55,11 @@ systemctl_redirect () {
 
 if [ -z "${CONSOLETYPE:-}" ]; then
   if [ -c "/dev/stderr" ]; then
-    CONSOLETYPE="$(/sbin/consoletype < /dev/stderr 2>/dev/null)"
+    if [ -r "/dev/stderr" ]; then
+      CONSOLETYPE="$(/sbin/consoletype < /dev/stderr 2>/dev/null)"
+    else
+      CONSOLETYPE="$(/sbin/consoletype 2>/dev/null)"
+    fi
   else
     CONSOLETYPE="serial"
   fi
-- 
1.7.6.4

_______________________________________________
cloud mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/cloud

Reply via email to