Cygwin 1.5.18-1 on Windows XP group & passwd problem
Kyle S. Allender
kallender@mediacomcc.com
Fri Dec 23 20:20:00 GMT 2005
Igor Peshansky wrote:
>
> You said you get the same message for a bash shell? Could you please try
> to capture the output (by opening a CMD.EXE window and typing
> "c:\cygwin\cygwin.bat")?
Output follows:
C:\Documents and Settings\kallender>c:\cygwin\cygwin.bat
CreateFileandSetSecurity failed with FALSE (Expected on FAT Partitions)
GLE: 32
CreateFileandSetSecurity failed with TRUE (not expected) GLE: 32
CreateFileandSetSecurity failed with FALSE (Expected on FAT Partitions)
GLE: 32
CreateFileandSetSecurity failed with TRUE (not expected) GLE: 32
CreateFileandSetSecurity failed with FALSE (Expected on FAT Partitions)
GLE: 32
CreateFileandSetSecurity failed with TRUE (not expected) GLE: 32
CreateFileandSetSecurity failed with FALSE (Expected on FAT Partitions)
GLE: 32
CreateFileandSetSecurity failed with TRUE (not expected) GLE: 32
$
>
>> Output of a re-run of the commands is as follows:
>>
>> kallender@nc-dm-dc141 /etc
>> $ mkpasswd -l -d > /etc/passwd
>> mkpasswd (731): [2453] Could not find domain controller for this domain.
>
> Hmm. How about "mkpasswd -l -c > /etc/passwd"?
passwd then looks like this (starting with an empty file:
CreateFileandSetSecurity failed with FALSE (Expected on FAT Partitions)
GLE: 32
CreateFileandSetSecurity failed with TRUE (not expected) GLE: 32
SYSTEM:*:18:544:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
Administrator:unused_by_nt/2000/xp:500:513:U-NC-DM-DC141\Administrator,S-1-5-21-
1220945662-1547161642-682003330-500:/home/Administrator:/bin/bash
Guest:unused_by_nt/2000/xp:501:513:U-NC-DM-DC141\Guest,S-1-5-21-1220945662-15471
61642-682003330-501:/home/Guest:/bin/bash
HelpAssistant:unused_by_nt/2000/xp:1000:513:Remote Desktop Help
Assistant Accoun
t,U-NC-DM-DC141\HelpAssistant,S-1-5-21-1220945662-1547161642-682003330-1000:/hom
e/HelpAssistant:/bin/bash
SUPPORT_388945a0:unused_by_nt/2000/xp:1002:513:CN=Microsoft
Corporation,L=Redmon
d,S=Washington,C=US,U-NC-DM-DC141\SUPPORT_388945a0,S-1-5-21-1220945662-154716164
2-682003330-1002:/home/SUPPORT_388945a0:/bin/bash
kallender:unused_by_nt/2000/xp:31363:10545:kallender,U-MEDIACOMCORP\kallender,S-
1-5-21-727417886-63593122-2613945857-21363:/cygdrive/c/Documents and
Settings/kallender:/bin/bash
>
>> kallender@nc-dm-dc141 /etc
>> $ mkgroup -l > /etc/group
>>
>> Contents of the files:
>>
>> passwd:
>>
>> SYSTEM:*:18:544:,S-1-5-18::
>> Administrators:*:544:544:,S-1-5-32-544::
>> Administrator:unused_by_nt/2000/xp:500:513:U-NC-DM-DC141\Administrator,S-1-5-21-1220945662-1547161642-682003330-500:/home/Administrator:/bin/bash
>> Guest:unused_by_nt/2000/xp:501:513:U-NC-DM-DC141\Guest,S-1-5-21-1220945662-1547161642-682003330-501:/home/Guest:/bin/bash
>> HelpAssistant:unused_by_nt/2000/xp:1000:513:Remote Desktop Help Assistant Account,U-NC-DM-DC141\HelpAssistant,S-1-5-21-1220945662-1547161642-682003330-1000:/home/HelpAssistant:/bin/bash
>> SUPPORT_388945a0:unused_by_nt/2000/xp:1002:513:CN=Microsoft Corporation,L=Redmond,S=Washington,C=US,U-NC-DM-DC141\SUPPORT_388945a0,S-1-5-21-1220945662-1547161642-682003330-1002:/home/SUPPORT_388945a0:/bin/bash
>
> I noticed that the "kallender" user is missing from /etc/passwd.
> According to the "id" output, "kallender" is definitely a domain user.
> Perhaps you need to specify the domain name explicitly (as in "mkpasswd -l
> -u kallender -d DOMAINNAME")?
>
>> group:
>>
>> CreateFileandSetSecurity failed with FALSE (Expected on FAT Partitions) GLE: 32
>> CreateFileandSetSecurity failed with TRUE (not expected) GLE: 32
>
> Heh... You should remove those two lines -- they may be screwing up the
> parsing of /etc/group...
I have removed these lines. Exiting the bash shell and re-entering it,
I encounter the same error.
When I included the domain name as suggested above, I end up with an
empty passwd file. Output is:
$ mkpasswd -l -u kallender -d MEDIACOMCORP.COM > /etc/passwd
mkpasswd (257): [2221] The user name could not be found.
$ mkpasswd -l -u kallender -d MEDIACOMCORP > /etc/passwd
mkpasswd (257): [2221] The user name could not be found.
$ cat /etc/passwd
CreateFileandSetSecurity failed with FALSE (Expected on FAT Partitions)
GLE: 32
CreateFileandSetSecurity failed with TRUE (not expected) GLE: 32
$
>>
>> A further clue _might_ be this:
>>
>> kallender@nc-dm-dc141 /etc
>> $ ssh -X kylea@192.168.1.100
>> CreateFileandSetSecurity failed with FALSE (Expected on FAT Partitions) GLE: 32
>> CreateFileandSetSecurity failed with TRUE (not expected) GLE: 32
>> The authenticity of host '192.168.1.100 (192.168.1.100)' can't be established.
>> RSA key fingerprint is 6d:2d:77:1f:1f:41:04:96:62:f1:5c:76:16:23:b2:2b.
>> Are you sure you want to continue connecting (yes/no)? yes
>> Warning: Permanently added '192.168.1.100' (RSA) to the list of known hosts.
>> Password:
>> CreateFileandSetSecurity failed with FALSE (Expected on FAT Partitions) GLE: 32
>> CreateFileandSetSecurity failed with TRUE (not expected) GLE: 32
>> x11_request_forwarding: bad authentication data: with
>
> How is this a clue? The above is a one-time message from ssh -- using ssh
> again will not print this.
As I said, it _might_ be a clue. I'm really not sure - interaction
between Windows and UNIX is not my realm of expertise (is it anyone's?).
I do get that message every time I run ssh though - at least the Create
part. And it is not able to connect to a remote host, regardless of
flags passed to ssh on the CLI.
>
>> It is almost as if there are permissions on disk that are not correct.
>> The suggested command you provided above does not seem to have helped.
>>
>> What could possibly be causing this?
>
> Looks like these messages may be caused by something in your bash
> initialization scripts. If you get this output from a plain bash (by
> running cygwin.bat), here's a suggestion: from a CMD.EXE window, run
>
> cd c:\cygwin\bat
> .\bash.exe -v --login -i
The attached text file contains that output. It appears to show up the
first time after the profile.d scripts are called.
The ownership on the various files is starting to look better than it
did, but something's still amiss, judging by the errors in the attached
file.
I appreciate the assistance in debugging this problem.
>
> And see after what lines the messages appear.
>
> FWIW, I didn't find any place in the Cygwin sources that prints out the
> above message -- is it even coming from a Cygwin application?
> Igor
--
Kyle Allender
Sr. UNIX Administrator
Mediacom Communications Corporation
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bash.exe output.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20051223/34af7d03/attachment.txt>
-------------- next part --------------
--
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/
More information about the Cygwin
mailing list