Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 X-X-Sender: Reply-To: To: Luke Bakken cc: Subject: LPRng for Cygwin v2 - setuid fixes! In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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/