From: "Winch Jr., Wayne S" <Wayne.WinchJr@ca.com>
To: "Pierre A. Humblet" <Pierre.Humblet@ieee.org>, <cygwin@cygwin.com>
Subject: RE: Cron Running As UID 400
Date: Thu, 26 Feb 2004 10:49:00 -0000 [thread overview]
Message-ID: <088E00BE0B18574C8C18066EB18A653204F38FE0@usilms21.ca.com> (raw)
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]
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
>processes and their children (cron, inetd, etc.). Interestingly
>enough, I regenerated the /etc/passwd entry for my user login on my
>Windows XP Pro box at work and the UID field changed from what it was
>before (after I sent the initial problem email to the Cygwin list).
>Then, I rebooted and all Cygwin related services (cygrunsrvs) were now
>identified as unknown user 400 in ps -ef. As one would then expect,
>now I do not have any capabilities associated with these services,
>including ftp, telnet, and IPC.
At least now it's consistent!
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.
>
>My /etc/passwd file has the SYSTEM, Administrators and my personal
>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
>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
>logged in as a different user, even though id reports:
Does passwd support domain users?
>$ id
>uid=70656(winwa02) gid=10513(Domain Users)
>groups=544(Administrators),545(Users),143344(442-SC-CRO-R),106908(98-Si
>t e),10513(Domain Users),162415(NASiteGroups),169978(North American
>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
>>Cygwin process).
>>It's stange that this happens only for one cygrunsrv process
>>
>>Please use the Windows Task Manager ("Processes" tab) and report the
>>User of the strange cygrunsrv, according to Windows.
>>
>>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/
next reply other threads:[~2004-02-26 1:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-26 10:49 Winch Jr., Wayne S [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-02-26 8:51 Winch Jr., Wayne S
2004-02-26 10:20 ` Pierre A. Humblet
2004-02-25 18:13 Winch Jr., Wayne S
2004-02-25 18:29 ` Pierre A. Humblet
2004-02-25 16:06 Harig, Mark
2004-02-24 21:49 Winch Jr., Wayne S
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=088E00BE0B18574C8C18066EB18A653204F38FE0@usilms21.ca.com \
--to=wayne.winchjr@ca.com \
--cc=Pierre.Humblet@ieee.org \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).