From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25228 invoked by alias); 26 Feb 2004 01:22:36 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 25135 invoked from network); 26 Feb 2004 01:22:33 -0000 Received: from unknown (HELO usilms55.ca.com) (141.202.248.42) by sources.redhat.com with SMTP; 26 Feb 2004 01:22:33 -0000 Received: from usilms21.ca.com ([141.202.201.21]) by usilms55.ca.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 25 Feb 2004 20:22:33 -0500 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Cron Running As UID 400 Date: Thu, 26 Feb 2004 10:49:00 -0000 Message-ID: <088E00BE0B18574C8C18066EB18A653204F38FE0@usilms21.ca.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Winch Jr., Wayne S" To: "Pierre A. Humblet" , X-OriginalArrivalTime: 26 Feb 2004 01:22:33.0464 (UTC) FILETIME=[02929F80:01C3FC07] X-SW-Source: 2004-02/txt/msg01317.txt.bz2 Pierre, Somehow the permissions on my /etc/passwd and /etc/group files only gave read permission to my account not SYSTEM. Perhaps cron_diagnose.sh can be updated to incorporate this checkpoint, i.e., that passwd and group in /etc are readable by everyone. Thanks for your help, Pierre. Now cron jobs kick off properly and I have telnet, ftp, etc. back again! :-D Cygwin rocks! Wayne -----Original Message----- From: Pierre A. Humblet [mailto:Pierre.Humblet@ieee.org]=20 Sent: Wednesday, February 25, 2004 3:42 PM To: Winch Jr., Wayne S; cygwin@cygwin.com Subject: Re: Cron Running As UID 400 At 06:18 PM 2/25/2004 -0500, Winch Jr., Wayne S wrote: > >Pierre, > >Windows Task Manager reports the user as SYSTEM for all cygrunsrv=20 >processes and their children (cron, inetd, etc.). Interestingly=20 >enough, I regenerated the /etc/passwd entry for my user login on my=20 >Windows XP Pro box at work and the UID field changed from what it was=20 >before (after I sent the initial problem email to the Cygwin list).=20=20 >Then, I rebooted and all Cygwin related services (cygrunsrvs) were now=20 >identified as unknown user 400 in ps -ef. As one would then expect,=20 >now I do not have any capabilities associated with these services,=20 >including ftp, telnet, and IPC. At least now it's consistent!=20 Is /etc/passwd readable by everybody? Is the system mount for / (or /etc) the same as your user mount? Is /etc/passwd on a local disk? One way or another, SYSTEM cannot read /etc/passwd, although (going back to your original mail), it was initially able to read it.=20 > >My /etc/passwd file has the SYSTEM, Administrators and my personal=20 >account listed as: > >SYSTEM:*:18:544:,S-1-5-18:: >Administrators:*:544:544:,S-1-5-32-544:: >winwa02:unused_by_nt/2000/xp:70656:10513:Winch Jr., Wayne=20 >S,U-TANT-A01\winwa02,S-1-5-21-2129867641-919698055-327642922-60656:/hom >e >/winwa02:/bin/bash That looks OK. >My company's domain is TANT-A01 and my username is winwa02. > >Also, if I type passwd, then I get the following response: > >$ passwd >passwd: unknown user winwa02 > > >As you can see, my login entry is in /etc/passwd, but I seem to be=20 >logged in as a different user, even though id reports: Does passwd support domain users? >$ id >uid=3D70656(winwa02) gid=3D10513(Domain Users)=20 >groups=3D544(Administrators),545(Users),143344(442-SC-CRO-R),106908(98-Si >t e),10513(Domain Users),162415(NASiteGroups),169978(North American=20 >Sites) > That's OK, you are logged in as U-TANT-A01\winwa02 Pierre > >>Wayne, >> >>The only reason why a Cygwin process runs with uid 400 is that its SID >>was not found in /etc/passwd when first starting from Windows (you can >>observe that by temporarily renaming /etc/passwd and starting a fresh=20 >>Cygwin process). >>It's stange that this happens only for one cygrunsrv process >> >>Please use the Windows Task Manager ("Processes" tab) and report the=20 >>User of the strange cygrunsrv, according to Windows. >>=20 >>Pierre > -- 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/