delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/12/14:23:24

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Authentication-Warning: ics-server.interface-net.com: lbakken owned process doing -bs
Date: Fri, 12 Oct 2001 11:15:25 -0700 (PDT)
From: Luke Bakken <luke_bakken AT yahoo DOT com>
X-X-Sender: <lbakken AT ics-server DOT interface-net DOT com>
Reply-To: <luke_bakken AT yahoo DOT com>
To: Luke Bakken <luke_bakken AT yahoo DOT com>
cc: <cygwin AT cygwin DOT com>
Subject: LPRng for Cygwin v2 - setuid fixes!
In-Reply-To: <Pine.BSO.4.31.0110120916370.8940-100000@ics-server.interface-net.com>
Message-ID: <Pine.BSO.4.31.0110121109540.32008-100000@ics-server.interface-net.com>
MIME-Version: 1.0

Fellow cygwiners,

Due to popular request, LPRng for Cygwin now considers the "SYSTEM"
account ([ug]id 18) as "root".  This means that editing the passwd and
group files to change the SYSTEM entries is no longer necessary, and that
potential conflicts with "cron" won't occur.

Updated info (with a new download) is at:

http://ics-server.interface-net.com/~lbakken/lprng-cygwin.html

Comments, suggestions and bug reports are welcome and appreciated.

Thanks to those who have given feedback and suggestions already!

Luke

PS - I'm now working on ifhp, the complimentary filter software that is a
useful add-on to LPRng.  It's main feature is it's ability to retrieve
pagecounts from printers to enable accounting.



On Fri, 12 Oct 2001, Luke Bakken wrote:

> > So I suggest, the better idea is to modify the source so it fits
> > with the existing passwd and group files, or a 'new' account needs
> > to be invented, like Biggs did it with 'bind', there you create a
> > user 'bin' a group cyg-bin' in the NT useradministration and after
> > adding it to the group/passwd file, the group 'cyg-bin' is renamed
> > to bin, now you have what you need.
> >
> > Maybe it is possible to duplicate the SYSTEM entry and then change
> > the gid, but I'm not sure about this.
>
> that's a good idea - i don't use cron so i didn't anticipate this.  LPRng
> doesn't really require uid 0 and 1, it just made it "easier" to get
> running.  You could add to the configure command:
>
> --with-userid=18 --with-groupid=18
>
> and it would work just as well, without the need for "root" and "daemon".
> However, it would not switch to another user, since currently LPRng thinks
> uid 0 is "root", and that uid 18 doesn't have that capability (even
> though under NT it does).
>
> I'll add this to my web page, and work on changing the source so that for
> Cygwin LPRng thinks uid 18 is "root"!  Thanks.
>
>
> Luke
>
>


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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