delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/25/13:13:48

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: /dev/console : permission denied
Date: Fri, 25 Nov 2005 18:13:29 -0000
MIME-Version: 1.0
In-Reply-To: <438747A9.50701@equate.dyndns.org>
Message-ID: <SERRANOvMEMLSP7DN4900000181@SERRANO.CAM.ARTIMI.COM>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Chris Taylor wrote:
> Dave Korn wrote:
>> Christopher Faylor wrote:

>>>> Christopher McIntosh wrote:
>>>> 
>>>>> Consequently, I am back to the issue which I was first
>>>>> reporting/investigating: Why does init report open(/dev/console) :
>>>>> permission denied.

>>> I don't know about the cygcheck error but the /dev/console problem
>>> sounds like cygwin working as designed.  From the description, it
>>> sounds like expected behavior to me.  Something is trying open
>>> "/dev/console" when there is no console and is getting an error.
>>> 
>>> Well, duh.
>>> 
>>> cgf

>>   Oh, you can't open it when there's not one bound?  Fair enough.
>> 
>>   Must be syslogd then.  Chris M, did you run the syslogd-config script
>> or install it manually? 

>> 1.3.2-29.)  Perhaps it's one of the destinations in syslog.conf that is
>> the source of the problem then.  What's your syslog.conf look like?
 
> I should point out that said error occurs when init starts.. But not as
> a result of anything else.. So could this instead be an issue with init?
>
> (I can replicate this problem, using syslogd-config and init-config to
> install the services, and starting them in that order).

  Oh look, so can I!

  I also see a bunch of other errors:

can't open(/etc/ioctl.save, O_WRONLY): Permission denied.
can't open /dev/console.
cannot execute "/etc/rc".

...which makes sense, because:

dk AT espanola /artimi/arch/doc> ls -la /etc/rc /etc/ioctl.save
-rw-------  1 dk     Domain Users 44 Nov 25 17:38 /etc/ioctl.save
-rw-r--r--  1 SYSTEM SYSTEM       65 Nov 25 17:49 /etc/rc
dk AT espanola /artimi/arch/doc>

  I have no idea what ioctl.save is, but /etc/rc should definitely have the
'x' bit set.  I fixed both these problems with "chmod u+x /etc/rc" and "chown
SYSTEM /etc/ioctl.save"; despite the fact that I told init-config to overwrite
both these files, it didn't set the perms, so that could almost certainly be
considered a bug in init-config.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019