Re: bash: cd: /cygdrive/w: Too many levels of symbolic links
On 4/29/2022 6:09 PM, Takashi Yano wrote: On Fri, 29 Apr 2022 14:21:01 -0500 Wes Barris wrote: For the past couple of months the latest versions of cygwin produce this error when attempting to reference a network drive. There have been a couple of other threads reporting this and talk about patches. Is there a fix coming for this in the production version of cygwin? $ cd /cygdrive/w bash: cd: /cygdrive/w: Too many levels of symbolic links $ mount C:/cygwin64/bin on /usr/bin type ntfs (binary,auto) C:/cygwin64/lib on /usr/lib type ntfs (binary,auto) C:/cygwin64 on / type ntfs (binary,auto) C: on /cygdrive/c type ntfs (binary,noacl,posix=0,user,noumount,auto) D: on /cygdrive/d type ntfs (binary,noacl,posix=0,user,noumount,auto) M: on /cygdrive/m type ntfs (binary,noacl,posix=0,user,noumount,auto) P: on /cygdrive/p type ntfs (binary,noacl,posix=0,user,noumount,auto) S: on /cygdrive/s type ntfs (binary,noacl,posix=0,user,noumount,auto) V: on /cygdrive/v type ntfs (binary,noacl,posix=0,user,noumount,auto) W: on /cygdrive/w type ntfs (binary,noacl,posix=0,user,noumount,auto) https://cygwin.com/pipermail/cygwin/2022-April/251332.html Thanks. Yes, that post describes what is happening to me. Is there a fix coming for this? -- Wes Barris -- This email has been checked for viruses by AVG. https://www.avg.com -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
bash: cd: /cygdrive/w: Too many levels of symbolic links
For the past couple of months the latest versions of cygwin produce this error when attempting to reference a network drive. There have been a couple of other threads reporting this and talk about patches. Is there a fix coming for this in the production version of cygwin? $ cd /cygdrive/w bash: cd: /cygdrive/w: Too many levels of symbolic links $ mount C:/cygwin64/bin on /usr/bin type ntfs (binary,auto) C:/cygwin64/lib on /usr/lib type ntfs (binary,auto) C:/cygwin64 on / type ntfs (binary,auto) C: on /cygdrive/c type ntfs (binary,noacl,posix=0,user,noumount,auto) D: on /cygdrive/d type ntfs (binary,noacl,posix=0,user,noumount,auto) M: on /cygdrive/m type ntfs (binary,noacl,posix=0,user,noumount,auto) P: on /cygdrive/p type ntfs (binary,noacl,posix=0,user,noumount,auto) S: on /cygdrive/s type ntfs (binary,noacl,posix=0,user,noumount,auto) V: on /cygdrive/v type ntfs (binary,noacl,posix=0,user,noumount,auto) W: on /cygdrive/w type ntfs (binary,noacl,posix=0,user,noumount,auto) -- Wes Barris -- This email has been checked for viruses by AVG. https://www.avg.com -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
Re: problem with curl-7.64.1-1 not returning any data
C:\Users\xx>cmd /c ver Microsoft Windows [Version 10.0.17134.165] xx@CVI-5501L> which -a curl /bin/curl I've changed my username and domain in the attached file. This email and any files transmitted with it are confidential and intended solely for the use of the addressee. If you are not the intended addressee, then you have received this email in error and any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. Please notify us immediately of your unintended receipt by reply and then delete this email and your reply. Cobb-Vantress, Inc. and its subsidiaries and affiliates will not be held liable to any person resulting from the unintended or unauthorized use of any information contained in this email or as a result of any additions or deletions of information originally contained in this email. cygcheck.out Description: application/unknown -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Shared home dir, samba, and workgroups
Marco Atzeri wrote: --- Mar 9/3/10, Wes Barris ha scritto: Marco Atzeri wrote: --- Mar 9/3/10, Wes Barris ha scritto: Wes Barris wrote: I use Cygwin 1.7 on my XP desktop system at work. I like having the same home directory on this Windows XP system as I do on our Unix server. The Windows XP system is a member of a domain. The Unix server is not. The Unix server is running Samba and is configured with a workgroup name. My home directory on the Unix server is mounted as a mapped network drive on the Windows XP system. Everything in the above setup is working properly from the Unix server side and from the Windows side when working with Windows Explorer. I can create and delete files via Windows Explorer and they show up on the Unix side with proper ownership and permissions (as controlled by Samba). Conversely, I can create and delete files under Unix and access these files from Windows Explorer. The problem is when I look at my mapped network home directory with Cygwin, my home directory files are owned by nobody ('') and have a group of nobody. I am guessing that this is because my Windows SID in /etc/passwd is the SID of my domain user and since the Samba server is not part of this domain the files look like they are from an unknown user. In our Samba server there is a file (usermap) that maps unix usernames to windows usernames. This appears to be working when working with Windows Explorer. Why doesn't this work with Cygwin? What is the way to fix this? Do I somehow need to map my unix username to a windows SID? Do I need to turn off ntsec? you need to map the WINDOWS SID to the UNIX username so you need to add on /etc/passwd and etc/group the right references. see: http://cygwin.com/cygwin-ug-net/using-utils.html#mkpasswd http://cygwin.com/cygwin-ug-net/ntsec.html I've read both of those pages many times. They don't appear to apply to my situation. What mkpasswd option(s) would you suggest? --local doesn't help map the Windows SID to the UNIX username, --domain doesn't do it. Web, if mkpasswd can not help you to identify the SID, than you can try Setacl http://setacl.sourceforge.net/ using as: $ SetACL.exe -on $(cygpath -aw YOUR_FILE) -ot file -actn list -lst "f:sddl;w:o,g,s,d" will provide the full list of SID and ACL of the file or directory. The answer is a bit cryptic but it is very detailed. After that you can create,by hand, the right reference in your /etc/passwd and /etc/group Thanks Marco. I was a bit skeptical having already worked so hard on resolving this. Using setacl.exe I was able to determine both the owner and group SIDs: W:\>SetACL.exe -on wesbarris.pdf -ot file -actn list -lst "f:tab;w:o" wesbarris.pdf Owner: S-1-5-21-290311034-2557831423-1240041065-5424 DACL(protected): S-1-5-21-290311034-2557831423-1240041065-5424 full allow no_inheritance S-1-22-2-200 read allow no_inheritance Everyone read allow no_inheritance Using this information I modified my /etc/passwd and /etc/group files. The passwd file now contains a line for my domain user and a line for the owner of the files from my home directory server. It's a bit confusing (having a different user owning my home directory files) but everything appears to be working properly now. Thank you very much! Do I need to change the mount options for /cygdrive? Should I assume from the lack of any response that there is no fix for this? -- Wes Barris I should say no Marco -- Wes Barris Marco -- Wes Barris -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Shared home dir, samba, and workgroups
Marco Atzeri wrote: --- Mar 9/3/10, Wes Barris ha scritto: Wes Barris wrote: I use Cygwin 1.7 on my XP desktop system at work. I like having the same home directory on this Windows XP system as I do on our Unix server. The Windows XP system is a member of a domain. The Unix server is not. The Unix server is running Samba and is configured with a workgroup name. My home directory on the Unix server is mounted as a mapped network drive on the Windows XP system. Everything in the above setup is working properly from the Unix server side and from the Windows side when working with Windows Explorer. I can create and delete files via Windows Explorer and they show up on the Unix side with proper ownership and permissions (as controlled by Samba). Conversely, I can create and delete files under Unix and access these files from Windows Explorer. The problem is when I look at my mapped network home directory with Cygwin, my home directory files are owned by nobody ('') and have a group of nobody. I am guessing that this is because my Windows SID in /etc/passwd is the SID of my domain user and since the Samba server is not part of this domain the files look like they are from an unknown user. In our Samba server there is a file (usermap) that maps unix usernames to windows usernames. This appears to be working when working with Windows Explorer. Why doesn't this work with Cygwin? What is the way to fix this? Do I somehow need to map my unix username to a windows SID? Do I need to turn off ntsec? you need to map the WINDOWS SID to the UNIX username so you need to add on /etc/passwd and etc/group the right references. see: http://cygwin.com/cygwin-ug-net/using-utils.html#mkpasswd http://cygwin.com/cygwin-ug-net/ntsec.html I've read both of those pages many times. They don't appear to apply to my situation. What mkpasswd option(s) would you suggest? --local doesn't help map the Windows SID to the UNIX username, --domain doesn't do it. Do I need to change the mount options for /cygdrive? Should I assume from the lack of any response that there is no fix for this? -- Wes Barris I should say no Marco -- Wes Barris -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Shared home dir, samba, and workgroups
Wes Barris wrote: I use Cygwin 1.7 on my XP desktop system at work. I like having the same home directory on this Windows XP system as I do on our Unix server. The Windows XP system is a member of a domain. The Unix server is not. The Unix server is running Samba and is configured with a workgroup name. My home directory on the Unix server is mounted as a mapped network drive on the Windows XP system. Everything in the above setup is working properly from the Unix server side and from the Windows side when working with Windows Explorer. I can create and delete files via Windows Explorer and they show up on the Unix side with proper ownership and permissions (as controlled by Samba). Conversely, I can create and delete files under Unix and access these files from Windows Explorer. The problem is when I look at my mapped network home directory with Cygwin, my home directory files are owned by nobody ('') and have a group of nobody. I am guessing that this is because my Windows SID in /etc/passwd is the SID of my domain user and since the Samba server is not part of this domain the files look like they are from an unknown user. In our Samba server there is a file (usermap) that maps unix usernames to windows usernames. This appears to be working when working with Windows Explorer. Why doesn't this work with Cygwin? What is the way to fix this? Do I somehow need to map my unix username to a windows SID? Do I need to turn off ntsec? Do I need to change the mount options for /cygdrive? Should I assume from the lack of any response that there is no fix for this? -- Wes Barris -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: 1.7.1-1: ImageMagick seems to lack jpeg support
Merek Thorondursson wrote: The IM convert command handles jpeg images well. Converting jpeg images with IM on cygwin works for me too. I too have never seen that notation (although it may work). I would use either '-resize 600' or '-resize 600x600' both of which would preserve the aspect ratio. Maybe there is something wrong with that particular jpeg. Have you tried this on others? If you type 'identify -list format | fgrep JPEG' is jpeg listed with rw-? I'm a novice with ImageMagick, but I don't normally see -geometry used this way. I could be wrong with what you're trying to do, but if you're simply trying to resize a test jpeg with the 600x notation I'd guess you're resizing with intent to maintain the aspect ratio and a final width of 600 pixels. The command line notation I'd use to do that would be: convert test.jpg -resize 600x test-out.jpg --- Merek Hope this helps. Sorry if I misunderstood the problem. On 3/8/10, Nick White wrote: · The command convert, from the ImageMagick suite, doesn't appear to · have a properly configured jpeg decoder. · # convert test.jpg -geometry 600x test-out.jpg · convert: no decode delegate for this image format `test.jpg'. · convert: missing an image filename `test-out.jpg'. · · Which would imply that jpegs should be readable and writable by · convert, which they don't appear to be. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple -- Wes Barris Today's fortune: There is no time like the pleasant. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: R: Cygwin-1.7.1 perlMagick incompatible with perl
Volker Quetschke wrote: Hi Reini, Reini Urban wrote: 2010/1/19 Marco Atzeri: (snip) I already updated perl-Graphics-Magick to version 1.3.7-2, but it seems you asked for the other Perl-Magick package. From the maintainer list: perl-graphics-magickMarco Atzeri perl-image-magick Volker Quetschke so you should wait Volker, if he is still around. Eventually could you try if perl-Graphics-Magick fit your needs ? Do it by yourself, it's a normal cpan release also. Download the src for ImageMagick. cd /usr/src cygport ImageMagick-6.4.0.6-1 prep rm /usr/src/ImageMagick-6.4.0.6-1/src/ImageMagick-6.4.0/m4/openmp.m4 cygport ImageMagick-6.4.0.6-1 make check or manually by installing libMagick-devel, gcc-4 and run cpan Image::Magick Anyway, I prepared a ready package, src attached. - version 6.4.0.6-2 - recompiled against cygwin-1.7, gcc.4 and perl-5.10 removed m4/openm4.m4 by Reini Urban Volker, should I upload it? Yes, please. I'm around, but life was interfering - I didn't get to this so far. Thanks, Volker Did this ever get uploaded? -- Wes Barris -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Resolving '????????' users and groups
Larry Hall (Cygwin) wrote: On 3/2/2010 10:25 PM, Wes Barris wrote: Larry Hall (Cygwin) wrote: On 3/2/2010 9:21 PM, Wes Barris wrote: Dave Korn wrote: Do you *actually* own the files? What kind of drive is this; network or local? NTFS or FAT? This is a second drive in my XP system. The drive contains all of my data. One of the folders/directories on this drive is what I use as my home directory. It has an NTFS filesystem. I map my home directory on this drive to a drive letter so it shows up in Windows Explorer as a mapped network drive even though it is a disk physically on the same system. This is a relatively new disk (and computer). I copied my all of my data from my previous computer onto this disk in this new computer. I've always thought that I actually owned the files. The Windows security tab says that I own them. It wasn't until I installed Cygwin that I had any reason to believe otherwise. I see that I can do a "chown -R wes" on a directory and it makes me the owner as far as Cygwin is concerned. Windows Explorer says that I am the owner before and after doing this. I can do this to fix all of the files. It's just a bit curious to me that Cygwin says I am not the owner but Windows does. How was the data copied? By whom? I copied the data. I put both disks into one computer and used Windows Explorer to drag folders from one disk to another. As long as that was your target machine, that should have removed SIDs that the target machine didn't know about. I can't explain why any unknown SIDs would be left. The simple answer to the question of why Cygwin doesn't know you're the owner is likely to be that the SID of the owner of these files is not listed in '/etc/passwd'. Thanks. That is actually how this thread got started. My SID in my /etc/passwd file does not match that of my files. Evidently, the way I copied my files is incompatible with Cygwin. Hm. Get it in there using 'mkpasswd' and Cygwin will show you that user as the owner. mkpasswd shows an SID that is evidently different from that of my files. If you know where the SID came from and can run 'mkpasswd' on that machine, you should be able to take the right line from that file and move it into the one on your machine to make Cygwin show you a user and group that it knows about. But if your target system really doesn't have that SID, then this is largely machinations for the sake of cosmetics. In other words, if you know the SID involved, you can simply type it into '/etc/passwd' with a new, valid and concocted entry too but I'm not sure that helps. Since you changed the owner already, this is likely moot at this point though. If I re-install Windows on the same computer does the SID of the machine change? Or is the SID tied to the hardware? If it changes with a new install that would explain my problem. How it's computed seems to be a bit of a secret but I would say you can't be guaranteed of the same SID after a re-install, no matter how similar (or the same) the machine. That doesn't mean you cannot get a machine with the same SIDs. Cloning is the most common way to make this happen. Thanks Larry. Looking back I'm guessing that re-installing Windows was the most likely culprit in changing my SID. Windows itself appears to me more forgiving of this change. Since I've chowned my files, the matter is resolved on this system. I have other systems where I see the dreaded '' in my directory listings. Those systems are unrelated to this so I will use a different thread for them. -- Wes Barris Today's fortune: Memory should be the starting point of the present. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Resolving '????????' users and groups
Larry Hall (Cygwin) wrote: On 3/2/2010 9:21 PM, Wes Barris wrote: Dave Korn wrote: Do you *actually* own the files? What kind of drive is this; network or local? NTFS or FAT? This is a second drive in my XP system. The drive contains all of my data. One of the folders/directories on this drive is what I use as my home directory. It has an NTFS filesystem. I map my home directory on this drive to a drive letter so it shows up in Windows Explorer as a mapped network drive even though it is a disk physically on the same system. This is a relatively new disk (and computer). I copied my all of my data from my previous computer onto this disk in this new computer. I've always thought that I actually owned the files. The Windows security tab says that I own them. It wasn't until I installed Cygwin that I had any reason to believe otherwise. I see that I can do a "chown -R wes" on a directory and it makes me the owner as far as Cygwin is concerned. Windows Explorer says that I am the owner before and after doing this. I can do this to fix all of the files. It's just a bit curious to me that Cygwin says I am not the owner but Windows does. How was the data copied? By whom? I copied the data. I put both disks into one computer and used Windows Explorer to drag folders from one disk to another. The simple answer to the question of why Cygwin doesn't know you're the owner is likely to be that the SID of the owner of these files is not listed in '/etc/passwd'. Thanks. That is actually how this thread got started. My SID in my /etc/passwd file does not match that of my files. Evidently, the way I copied my files is incompatible with Cygwin. Get it in there using 'mkpasswd' and Cygwin will show you that user as the owner. mkpasswd shows an SID that is evidently different from that of my files. Since you changed the owner already, this is likely moot at this point though. If I re-install Windows on the same computer does the SID of the machine change? Or is the SID tied to the hardware? If it changes with a new install that would explain my problem. -- Wes Barris Today's fortune: Memory should be the starting point of the present. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: How to properly set up /etc/passwd and /etc/group
Dave Korn wrote: On 03/03/2010 00:34, Wes Barris wrote: My W: drive is a mapped network drive. However, it is mapped to a share coming from the same physical computer. This drive contains all of my data including a folder that I wish to use as my home directory (W: is mapped to //mycomputer/share/home). Just to check the obvious: is it mapped with the default (i.e., read-only!) permissions, or did you open it up? When I enabled sharing on that drive I checked the box that would allow network users to modify the files. The contents of this drive was copied from my previous computer on which I used the same username. Argh. Ouch. That's probably part of the problem. Using the same username on a different computer does *not* give your user account the same identity, when we're talking about local machine accounts rather than domain/workgroup accounts. How *exactly* did you copy "the contents of this drive" across? I put the two drives into the same computer and used Windows to copy the contents from one drive to the other. This was done in the new computer. I have also re-installed Windows on the new computer. Does re-installing Windows change the machine portion of the SID or is the SID tied to hardware? cheers, DaveK -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple -- Wes Barris Today's fortune: Memory should be the starting point of the present. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Resolving '????????' users and groups
Dave Korn wrote: On 02/03/2010 05:57, Wes Barris wrote: I'm trying to find a solution for my files being listed with '' as the owner and group: -rw-r--r-- 1 137894 2010-02-25 11:34 1536.gff The following page partially addresses this: http://www.cygwin.com/cygwin-ug-net/ntsec.html It says that: -- If another user (or a Windows group, treated as a user) is not present in /etc/passwd, the uid of that user will have a special value of -1 (which would be shown by ls as 65535). The user name shown in this As we discussed earlier, -1 is now a 32-bit value, so shows up as 4-billion-something rather than 65535 these days, but apart from that this is what is happening. case will be ''. -- I would like to modify the /etc/passwd file so that it shows me as the owner of these files instead of ''. No, you don't want to do that. You only want it to show you as the owner of those files if you actually *are* the owner of those files, and the way for that to happen is for your user account in the windows domain to actually be the owner of those files, and to be linked to your cygwin uid/gid via the /etc/passwd file. Do you *actually* own the files? What kind of drive is this; network or local? NTFS or FAT? This is a second drive in my XP system. The drive contains all of my data. One of the folders/directories on this drive is what I use as my home directory. It has an NTFS filesystem. I map my home directory on this drive to a drive letter so it shows up in Windows Explorer as a mapped network drive even though it is a disk physically on the same system. This is a relatively new disk (and computer). I copied my all of my data from my previous computer onto this disk in this new computer. I've always thought that I actually owned the files. The Windows security tab says that I own them. It wasn't until I installed Cygwin that I had any reason to believe otherwise. I see that I can do a "chown -R wes" on a directory and it makes me the owner as far as Cygwin is concerned. Windows Explorer says that I am the owner before and after doing this. I can do this to fix all of the files. It's just a bit curious to me that Cygwin says I am not the owner but Windows does. cheers, DaveK -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple -- Wes Barris Today's fortune: Memory should be the starting point of the present. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Shared home dir, samba, and workgroups
I use Cygwin 1.7 on my XP desktop system at work. I like having the same home directory on this Windows XP system as I do on our Unix server. The Windows XP system is a member of a domain. The Unix server is not. The Unix server is running Samba and is configured with a workgroup name. My home directory on the Unix server is mounted as a mapped network drive on the Windows XP system. Everything in the above setup is working properly from the Unix server side and from the Windows side when working with Windows Explorer. I can create and delete files via Windows Explorer and they show up on the Unix side with proper ownership and permissions (as controlled by Samba). Conversely, I can create and delete files under Unix and access these files from Windows Explorer. The problem is when I look at my mapped network home directory with Cygwin, my home directory files are owned by nobody ('') and have a group of nobody. I am guessing that this is because my Windows SID in /etc/passwd is the SID of my domain user and since the Samba server is not part of this domain the files look like they are from an unknown user. In our Samba server there is a file (usermap) that maps unix usernames to windows usernames. This appears to be working when working with Windows Explorer. Why doesn't this work with Cygwin? What is the way to fix this? Do I somehow need to map my unix username to a windows SID? Do I need to turn off ntsec? Do I need to change the mount options for /cygdrive? -- Wes Barris Today's fortune: Memory should be the starting point of the present. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: How to properly set up /etc/passwd and /etc/group
Dave Korn wrote: On 01/03/2010 23:08, Wes Barris wrote: Dave Korn wrote: On 01/03/2010 05:05, Wes Barris wrote: What I normally end up doing is to list the directory with the '-n' option that shows me the uid and gid information (in this case both are 4294967295. I manually edit the /etc/passwd and /etc/group files accordingly so that my directory listing looks like this: drwxrwxrwt+ 1 wes admin 0 2010-01-10 17:13 Projects That suggests you set your uid and gid to 4294967295, aka -1, aka 'nobody'; that's probably not a good thing. Hi Dave, I changed my uid an gid in my passwd file to 4294967295 because that is what ls -ln showed. If that is not a good thing to do what is the right thing to do? Hi Wes, The right thing to do is to leave your uid/gid in the way that mkpasswd and mkgrp choose, because that gives the cygwin dll the information it needs to link them back to your actual user account in the windows OS permissions. The other right thing to do is to then figure out what's going wrong with your W: drive, and why the perms on it are wrong. Is this some kind of network drive, by any chance? My W: drive is a mapped network drive. However, it is mapped to a share coming from the same physical computer. This drive contains all of my data including a folder that I wish to use as my home directory (W: is mapped to //mycomputer/share/home). The contents of this drive was copied from my previous computer on which I used the same username. The file ownerships appear to be ok when viewed though the Windows Explorer security tab. I can create and delete files via Windows Explorer so the permissions appear to be ok. However, cygwin does not recognize the same files as being owned by me. -- Wes Barris Today's fortune: Memory should be the starting point of the present. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Resolving '????????' users and groups
Andrew DeFaria wrote: On 03/01/2010 09:57 PM, Wes Barris wrote: I'm trying to find a solution for my files being listed with '' as the owner and group: -rw-r--r-- 1 137894 2010-02-25 11:34 1536.gff The following page partially addresses this: http://www.cygwin.com/cygwin-ug-net/ntsec.html It says that: -- If another user (or a Windows group, treated as a user) is not present in /etc/passwd, the uid of that user will have a special value of -1 (which would be shown by ls as 65535). The user name shown in this case will be ''. -- I would like to modify the /etc/passwd file so that it shows me as the owner of these files instead of ''. That page shows how /etc/passwd is used to create a mapping between Windows Security SIDs and Cygwin uids. How do I find/list the Windows SIDs of these files so that I can create the proper mapping in /etc/passwd? How about: $ mkpasswd -d >> /etc/passwd $ ls -l and see who owns it? mkpasswd -d would return all of the domain users (we have thousands). However, I know that these files are not owned by anyone else. The files in question are coming from a samba share (mapped network drive) served from a Linux system. Isn't there a way so see the SID of a file? -- Wes Barris Today's fortune: God invented automobiles so that we could pace locomotives. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Resolving '????????' users and groups
I'm trying to find a solution for my files being listed with '' as the owner and group: -rw-r--r-- 1 137894 2010-02-25 11:34 1536.gff The following page partially addresses this: http://www.cygwin.com/cygwin-ug-net/ntsec.html It says that: -- If another user (or a Windows group, treated as a user) is not present in /etc/passwd, the uid of that user will have a special value of -1 (which would be shown by ls as 65535). The user name shown in this case will be ''. -- I would like to modify the /etc/passwd file so that it shows me as the owner of these files instead of ''. That page shows how /etc/passwd is used to create a mapping between Windows Security SIDs and Cygwin uids. How do I find/list the Windows SIDs of these files so that I can create the proper mapping in /etc/passwd? -- Wes Barris Today's fortune: God invented automobiles so that we could pace locomotives. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: How to properly set up /etc/passwd and /etc/group
Dave Korn wrote: On 01/03/2010 05:05, Wes Barris wrote: What I normally end up doing is to list the directory with the '-n' option that shows me the uid and gid information (in this case both are 4294967295. I manually edit the /etc/passwd and /etc/group files accordingly so that my directory listing looks like this: drwxrwxrwt+ 1 wes admin 0 2010-01-10 17:13 Projects That suggests you set your uid and gid to 4294967295, aka -1, aka 'nobody'; that's probably not a good thing. Hi Dave, I changed my uid an gid in my passwd file to 4294967295 because that is what ls -ln showed. If that is not a good thing to do what is the right thing to do? cheers, DaveK -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple -- Wes Barris Web: www.wesbarris.com E-Mail: w...@wesbarris.com Today's fortune: Two wrongs are only the beginning. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: How to properly set up /etc/passwd and /etc/group
Pavel Kudrna wrote: Wes Barris wrote: On 03/01/2010 12:05 AM, Wes Barris wrote: I have installed cygwin on many systems. ... a long listing of my home directory shows a bunch of '?' question marks as the owner and group fields like this: drwxrwxrwt+ 1 0 2010-01-10 17:13 Projects If you used Sysprep utility to clone to many PCs the problem is missing right for System account in / and below, see <http://sourceware.org/ml/cygwin/2010-01/msg00485.html> I have solved the problem by adding rights with the command cacls "C:\Program Files\cygwin" /T /E /G SYSTEM:F before running sysprep. After that minisetup (running under System account) can correct old SID in ACLs also in cygwin directories and question marks disappear. With greetings Pavel Kudrna Hi Pavel, I don't think that I understood anything you said. I've never run something called "Sysprep" (whatever that is). Are you suggesting that I need to run "cacls ..."? What exactly will that do? -- Wes Barris -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: How to properly set up /etc/passwd and /etc/group
On 03/01/2010 12:05 AM, Wes Barris wrote: I have installed cygwin on many systems. One thing that has always bugged me is that I have to muck around with the uid and gid in the /etc/passwd and /etc/group files in order to get things working. The mkpasswd and mkgroup commands don't seem to produce files that work. I'm sure that I'm missing some fundamental knowledge about this but I don't know what. I've read the mkpasswd man page, the FAQ and searched for posts but have found nothing that helps me. Here is a simple case. My home computer runs XP. I want my /cygwin home directory to be the W drive (/cygdrive/w). After installing cygwin and changing the home path in the /etc/passwd file to /cygdrive/w, a long listing of my home directory shows a bunch of '?' question marks as the owner and group fields like this: drwxrwxrwt+ 1 0 2010-01-10 17:13 Projects What I normally end up doing is to list the directory with the '-n' option that shows me the uid and gid information (in this case both are 4294967295. I manually edit the /etc/passwd and /etc/group files accordingly so that my directory listing looks like this: drwxrwxrwt+ 1 wes admin 0 2010-01-10 17:13 Projects What is the correct procedure for getting this set up correctly? > It's not really clear from the above because it's not clear whether > you're in a domain or not. My guess is you are (since the above > has some hints suggesting that). If so, use the '-l -d' flags for > 'mkpasswd' and 'mkgroup'. That will get your domain as well > as your local users/groups in those files. If that's overwhelming, > check out the '-c' flag. These are all described in the man page > and/or Users Guide if you need more info. Hi Larry, No, I'm not in a domain. This is my home computer. It's just a stand-alone computer with a workgroup (if that makes any difference). I see this same problem on all computes (in a domain or not). I just wanted to start with my home computer because that should be a really simple case. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- Wes Barris -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
How to properly set up /etc/passwd and /etc/group
I have installed cygwin on many systems. One thing that has always bugged me is that I have to muck around with the uid and gid in the /etc/passwd and /etc/group files in order to get things working. The mkpasswd and mkgroup commands don't seem to produce files that work. I'm sure that I'm missing some fundamental knowledge about this but I don't know what. I've read the mkpasswd man page, the FAQ and searched for posts but have found nothing that helps me. Here is a simple case. My home computer runs XP. I want my /cygwin home directory to be the W drive (/cygdrive/w). After installing cygwin and changing the home path in the /etc/passwd file to /cygdrive/w, a long listing of my home directory shows a bunch of '?' question marks as the owner and group fields like this: drwxrwxrwt+ 1 0 2010-01-10 17:13 Projects What I normally end up doing is to list the directory with the '-n' option that shows me the uid and gid information (in this case both are 4294967295. I manually edit the /etc/passwd and /etc/group files accordingly so that my directory listing looks like this: drwxrwxrwt+ 1 wes admin 0 2010-01-10 17:13 Projects What is the correct procedure for getting this set up correctly? -- Wes Barris -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
RE: Man pages garbled in 1.7.1
> > From: Jeenu V > > Sent: Monday, January 18, 2010 02:48 > > To: cygwin@cygwin.com > > Subject: Re: Man pages garbled in 1.7.1 > > > > I'm now using UTF-8 encoding on PuTTYCyg and the man pages look fine. > > Could > > somebody tell me how to search for '-' on the man page, so that I can > > quickly jump to a known command option? > > > > -- > > :J > > The problem is how to enter the Unicode MINUS sign, which man is using > for the option prefix. The code point for this character (in decimal) > is 8722, so press ALT and from the NUM-LOCKed keypad enter 8 7 2 2, then > press Enter. > > --Ken Nellis This is probably a stupid question but here goes: What is it about UTF-8 that requires a UNICODE minus sign to be used in place of an ASCII minus sign? Normal ASCII characters are used in man pages -- why not a normal ASCII minus sign? Is the use of a UNICODE minus sign solving more problems than it creates? Just curious. -- Wes -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: R: Cygwin-1.7.1 perlMagick incompatible with perl
Marco Atzeri wrote: --- Mer 6/1/10, Wes Barris ha scritto: I just installed Cygwin 1.7.1. I noticed that the available version of perlMagick is incompatible with the available version of perl. The perlMagick package is built against perl 5.8 but the perl package is 5.10. perl-Graphics-Magick has been just rebuilt, I am just waiting for the upload on the server. Marco Is this likely to happen any time soon? How do I get the new version? Whenever I run setup, it still looks like perl-Image-Magick 6.4.0.6-1 is the latest but that is the one built against perl 5.8 . -- Wes Barris -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Weird characters in man pages
I just installed Cygwin 1.7.1 and Puttycyg 20091228. When I viewed a man page I saw the letter 'a' with two dots above it instead of '-' characters. So, knowing that Cygwin 1.7 now used UTF-8, I changed my character translation set in Puttycyg to UTF-8 for my Cygwin session. Now man pages have fat half-height vertical bars instead of '-' characters. I don't know if this is a Putty, Puttycyg, or Cygwin issue. I am asking here in case anyone has any insight about this issue. Thanks. -- Wes Barris -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Cygwin-1.7.1 perlMagick incompatible with perl
I just installed Cygwin 1.7.1. I noticed that the available version of perlMagick is incompatible with the available version of perl. The perlMagick package is built against perl 5.8 but the perl package is 5.10. -- Wes Barris -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
ssh and scp connect intermittently
Hi, I have cygwin installed on several WindowsXP systems. When trying to use ssh or scp to connect or send files to a remote system, the commands usually work the first few times but then they reliably hang. The problem I am having is exactly the same as one that was reported on this list about a month ago: http://cygwin.com/ml/cygwin/2009-09/msg00069.html The previous thread ended without a solution being posted. Has anyone looked into this problem? Thanks. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple