X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Andrew Schulman Subject: Re: problem with GNU screen solved Date: Wed, 23 Nov 2011 06:17:36 -0500 Lines: 27 Message-ID: <62lpc79v3s07q0fg0ecj6o8snhrl195ir6@4ax.com> References: <20111123051000 DOT GA3194 AT chomsky DOT local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive: encrypt X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com > I just wanted to pass this along... I was having problems with screen > a couple months ago. I would get an error saying "chown tty: No such > file or directory" and then it would fail (see > http://cygwin.com/ml/cygwin/2011-06/msg00222.html). > > Paul Hebble was kind enough to write me off-list with a fix. After > applying the patch that comes with the source package, I made the > following simple change to config.h: > > #define PTYROFS > > These comments come from config.h: > > * Note, screen is unable to change mode or group of the pty if it > * is not installed with sufficient privilege. (e.g. set-uid-root) > * define PTYROFS if the /dev/pty devices are mounted on a read-only > * filesystem so screen should not even attempt to set mode or group > * even if running as root (e.g. on TiVo). > > This solved my problem. Now I'm curious why some see this problem but > others don't. Some sort of privilege issue that is setup dependent? > > Anyway, I hope the package maintainer will find this useful. Thanks Jeff, for posting the solution. I'll look at that when I can to figure out whether it should be enabled by default. I don't know much about ptys though - maybe someone who knows more could comment? Andrew. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple