delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/12/12:26:13

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 09:19:56 -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: <cygwin AT cygwin DOT com>
Subject: Re: LPRng for Cygwin
In-Reply-To: <3BC730DC.12678.1A5107F@localhost>
Message-ID: <Pine.BSO.4.31.0110120916370.8940-100000@ics-server.interface-net.com>
MIME-Version: 1.0

> 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