Re: Permissions issues after installing Windows 10
On 2022-06-02 10:14, Bill Stewart wrote: On Thu, Jun 2, 2022 at 6:44 AM Brent Epp wrote: In the [Security] tab for these files or directories, under "Group or user names", it lists the owner as "Account Unknown(S-...)". In some cases, these files are completely inaccessible and I can't even take ownership or change the permissions. I have to either restore them from a backup or boot to a Linux environment to access them. Windows displays "Account Unknown" (with a SID) in the ACL when it can't resolve the SID reference. There can be a number of reasons for this. One common reason is that the SID belongs to a domain account and the domain is not accessible. Another is that the SID belongs to a local account on a different computer (e.g., a removable disk is moved between computers and local accounts are in the ACL). This is essentially what happened (removable disk moved from one computer to another). Well-known SIDs (e.g., S-1-5-32-544 for the local Administrators group, etc.) should resolve from any computer. I would think so too, but that doesn't appear to be happening.If it makes a difference, the SID actually starts with S-1-5-21. I have to manually take ownership in order to even access the files at all. - Brent -- 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: Permissions issues after installing Windows 10
On 2022-05-08 10:35, Andrey Repin wrote: Greetings, Brent Epp! I recently (finally) installed Windows 10 on my system (clean install). All of my files are stored in on a secondary drive/partition, on which cygwin is also installed. I expected to be able to just pick up where I left off, but I'm getting all sorts of permissions issues with cygwin. I did run the cygwin setup again to reinstall/upgrade. First, I had restore my cygwin home directory from a backup, since it was giving me permissions errors on .bash_history, .ssh, etc, but the biggest headache is with git repos. First, it gives a "fatal: unsafe repository" error. If I add it to the safe directories list, it git still has to reindex the repo every time I run `git status`, and it still fails when I try to enter a commit. It seems most or everything is owned by "Administrators". The only way I've been able to fix this is to go through the Windows advanced permissions dialog, change the owner to my user, and set all sub-objects to inheritable permissions, but I'm very leery about mass changes like this. Why did this happen? And is there a better/safer/correct way to fix this? The only way is to install a clean copy of Cygwin and carefully copy your changes over. This will ensure that all permissions are set correctly, and all programs are rebased correctly as well. This is because Windows uses a very different file access control that that of simple POSIX permissions, on top of which Cygwin emulates them. If you want your pain to be somewhat less in the future, move your home away from Cygwin directory and use noacl flag on it, which will defer permissions control to the underlying OS layer. I'm using my Windows profile as Cygwin home, but your mileage may vary. Thanks, I did try a clean install of cygwin. This has not resolved the issue. I think what's happened is that some of all files modified by by various command line programs (git, rsync, etc.) in cygwin have ended up with permissions that didn't carry across with the new Windows installation. In the [Security] tab for these files or directories, under "Group or user names", it lists the owner as "Account Unknown(S-...)". In some cases, these files are completely inaccessible and I can't even take ownership or change the permissions. I have to either restore them from a backup or boot to a Linux environment to access them. - Brent -- 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
Permissions issues after installing Windows 10
I recently (finally) installed Windows 10 on my system (clean install). All of my files are stored in on a secondary drive/partition, on which cygwin is also installed. I expected to be able to just pick up where I left off, but I'm getting all sorts of permissions issues with cygwin. I did run the cygwin setup again to reinstall/upgrade. First, I had restore my cygwin home directory from a backup, since it was giving me permissions errors on .bash_history, .ssh, etc, but the biggest headache is with git repos. First, it gives a "fatal: unsafe repository" error. If I add it to the safe directories list, it git still has to reindex the repo every time I run `git status`, and it still fails when I try to enter a commit. It seems most or everything is owned by "Administrators". The only way I've been able to fix this is to go through the Windows advanced permissions dialog, change the owner to my user, and set all sub-objects to inheritable permissions, but I'm very leery about mass changes like this. Why did this happen? And is there a better/safer/correct way to fix this? Thanks - Brent -- 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: Continued rsync failures
Sorry, my silly mail client doesn't reply to the list by default. -- It might be worth noting that these rsync commands run using an on-demand script to manage sync jobs. Generally, it will execute rsync once with `--dry-run` to gather a list of files for me to preview: rsync -avi --progress --no-perms --no-owner --no-group --delete --dry-run -s --exclude-from='/cygdrive/d/my/exclusion/file' --exclude-from='/cygdrive/d/my/additional/exclusion/file' /cygdrive/d/path/to/source'/. '/cygdrive/d/path/to/target' trace file: http://cygtestdata.ddnsfree.com/strace.exec1.out Then it can run rsync a consecutive time: rsync -avi --progress --no-perms --no-owner --no-group --delete -s --exclude-from='/cygdrive/d/my/exclusion/file' --exclude-from='/cygdrive/d/my/additional/exclusion/file' /cygdrive/d/path/to/source'/. '/cygdrive/d/path/to/target' trace file: http://cygtestdata.ddnsfree.com/strace.exec2.out Thanks - Brent On 2021-05-07 13:09, Ken Brown via Cygwin wrote: On 5/7/2021 12:43 PM, Brent Epp wrote: Hello, I've reported this in the past, but I cannot reliably use rsync. This is a *local* synchronization between two Windows directories. It seems that after a number of executions (a few dozen, maybe?), it just stops working and reports errors: rsync: connection unexpectedly closed (185 bytes received so far) [generator] rsync error: error in rsync protocol data stream (code 12) at io.c(228) [generator=3.2.4dev] rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(228) [sender=3.2.4dev] I have upgraded to the latest version of cygwin as of this morning and the problem persists. I have no software on the BLODA list and I have tried with all security software disabled. The only thing I can do is wait for a period of time (never timed it, but 10-20 minutes or so), which is immensely frustrating, as I am heavily dependent on it for work. How can get I this working once and for all? Please run the failing rsync command under strace, like this: strace -o strace.out rsync Then post the output file strace.out somewhere where others can look at it. Ken -- Brent Epp E-Mail:br...@pdc.ca Web site: www.pdc.ca/it Call/Text: (204) 304-9057 -- 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
Continued rsync failures
Hello, I've reported this in the past, but I cannot reliably use rsync. This is a *local* synchronization between two Windows directories. It seems that after a number of executions (a few dozen, maybe?), it just stops working and reports errors: rsync: connection unexpectedly closed (185 bytes received so far) [generator] rsync error: error in rsync protocol data stream (code 12) at io.c(228) [generator=3.2.4dev] rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(228) [sender=3.2.4dev] I have upgraded to the latest version of cygwin as of this morning and the problem persists. I have no software on the BLODA list and I have tried with all security software disabled. The only thing I can do is wait for a period of time (never timed it, but 10-20 minutes or so), which is immensely frustrating, as I am heavily dependent on it for work. How can get I this working once and for all? Thanks - Brent -- 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: Rsync frequently hangs
Hi Andrey, Thanks, I do have some security software running, but the rsync problem persists when it (the security software) is disabled. Thanks - Brent Can you expand on this? On 2020-04-17 05:07, Andrey Repin wrote: Greetings, Brent Epp! I have a large collection of custom tooling that depends on rsync. It used to work very well, but recently, rsync has become highly unstable. It frequently (dozens of times a day) hangs. These are rsync executions where the source and target are both on the same local drive. Eventually once it times out, it reports: rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.2] No changes have recently been made to the tooling. I just upgraded cygwin as well, the problem persists. I'm going to do a clean install of cygwin, but if that doesn't solve things, what else can I do? Check for BLODA. Although I'm still suspicious. All I've seen so far is rsync error: protocol incompatibility (code 2) at receiver.c(582) [receiver=3.1.0] rsync error: protocol incompatibility (code 2) at io.c(1642) [generator=3.1.0] this is a link to production VPS. It consistently hangs midway the transfer. Like it has a clairvoyance, no matter if the upload is 1 file of 100 files, halfway through it drops, and I have to restart the upload, then it goes to complete success. -- 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
Rsync frequently hangs
Hello, I have a large collection of custom tooling that depends on rsync. It used to work very well, but recently, rsync has become highly unstable. It frequently (dozens of times a day) hangs. These are rsync executions where the source and target are both on the same local drive. Eventually once it times out, it reports: rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.2] No changes have recently been made to the tooling. I just upgraded cygwin as well, the problem persists. I'm going to do a clean install of cygwin, but if that doesn't solve things, what else can I do? - Brent -- 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: Is there a way to clone-install Cygwin?
Fair enough. I don't think I've encountered any scripts that modify the system in my use of cygwin, so I didn't think of it. You're correct, "mostly portable" is more accurate. On January 20, 2020 20:33:22 "Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin" wrote: Cygwin is totally portable! I wouldn't be so sure, as some package installation scripts do modify the actual system, which is not contained within the Cygwin installation tree. But mostly it is indeed portable. You can simply copy the installation folder If you think that didn't occur to me, then please read my original message that said: > I want to avoid to dumb-copy the entire C:\cygwin tree from one PC to another Thank you for your time, though. Anton -- 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 -- 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: Is there a way to clone-install Cygwin?
Sorry, this reply was meant to go the list but I was using a different mail client and it replied directly. __ Cygwin is totally portable! You can simply copy the installation folder to another PC, copy the shortcut (edit target if needed) and it will work. I've done this numerous times for this exact reason. You may also want to copy the package directory and setup log if you want to update the installation on the clone. Cheers - Brent On January 20, 2020 18:59:09 "Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin" wrote: Hi List, I have a question, is there a way to clone-install Cygwin? Like I have installed whatever packages I selected on some PC, then maintained that installation for a while, doing upgrades etc. Now I need to install the exact same set on another PC. Can I pull up a list and use it in a sort of a batch install with setup.exe? I want to avoid to dumb-copy the entire C:\cygwin tree from one PC to another, rather use a semi-automatic install procedure from scratch, if possible, using the list of packages that I need. Thanks for all the insights you can provide. Cheers, Anton -- 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 -- 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: mintty window flashes open and immediately closes
Hello Andrey, The way I ended up "solving" this is by restoring a backup of cygwin I had from a few weeks ago. Almost nothing had changed with my working files, so I considered it good enough and called it a day. However, I kept a copy of the failed/corrupted install and put it in a VM so I can continue to diagnose the failure. Interestingly, it exhibits the same failure within the VM, so now we know it's not something within the specific Windows environment. Also worth noting, the host environment is Windows 7, the VM guest is Windows 10. I took your suggestion and ran `rebase-trigger full`, closed cygwin windows, and re-ran setup. It has not resolved the problem, unfortunately. - Brent On 2019-12-21 08:31, Andrey Repin wrote: Greetings, Brent Epp! I've been using cygwin for years with no problems. I just updated cygwin again and I suddenly can't get into the terminal. When I click the cygwin icon, the window just flashes and immediately closes. What's interesting is that I have a number of cygwin/mintty shortcuts for SSH servers as `c:\path\to\cygwin\bin\mintty.exe /bin/ssh u...@server.com`, which work just fine. I can also get in if I run `cygwin.bat` in `cmd`, `console2` or any other Windows command terminal. I've tried running the latest cygwin setup, reinstalling `mintty`, and the shortcut still fails. The shortcut is just the default target: `C:\path\to\cygwin\bin\mintty.exe /bin/bash --login -i` I don't know what else to try. What happened here and how do I fix this? I'd suggest running `rebase-trigger full`, closing all Cygwin programs/services, and running setup again as a first attempt to resolve it. -- 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: mintty window flashes open and immediately closes
Thanks, but I'm still on Windows 7, so this has no effect. - Brent On 2019-12-18 05:24, Takashi Yano wrote: On Tue, 17 Dec 2019 14:58:56 -0600 Brent Epp wrote: Hello, I've been using cygwin for years with no problems. I just updated cygwin again and I suddenly can't get into the terminal. When I click the cygwin icon, the window just flashes and immediately closes. What's interesting is that I have a number of cygwin/mintty shortcuts for SSH servers as `c:\path\to\cygwin\bin\mintty.exe /bin/ssh u...@server.com`, which work just fine. I can also get in if I run `cygwin.bat` in `cmd`, `console2` or any other Windows command terminal. I've tried running the latest cygwin setup, reinstalling `mintty`, and the shortcut still fails. The shortcut is just the default target: `C:\path\to\cygwin\bin\mintty.exe /bin/bash --login -i` I don't know what else to try. What happened here and how do I fix this? Does anything change if the registry value ForceV2 is set to 0 under HKEY_CURRENT_USER\Console? This disables the pseudo console feature. Note: Do not forget to revert the registry value. -- 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: mintty window flashes open and immediately closes
This is interesting: I have a backup copy of my cygwin installation from 2 days ago. I restored it to another folder, made a shortcut... and it works. I'll have to run some diffs to double-check, but I'm pretty certain the only thing that's changed in the past two days is that I ran the latest installer today to update. - Brent On 2019-12-17 17:36, Brent Epp wrote: Thanks, I should mention, I did try disabling my .bashrc file and actually my entire user directory... still didn't work. Also, mintty tells me neither of those options are valid? These are the options it tells me are available: https://i.imgur.com/vyMG9t6.png Also, just a correction to my original email, the shortcut was actually:`...mintty.exe -i /Cygwin-Terminal.ico -` The shortcut I previously stated was something I had done as a troubleshooting step and then pasted it into the email by mistake. - Brent On 2019-12-17 17:17, René Berber wrote: On 12/17/2019 2:58 PM, Brent Epp wrote: I've been using cygwin for years with no problems. I just updated cygwin again and I suddenly can't get into the terminal. When I click the cygwin icon, the window just flashes and immediately closes. What's interesting is that I have a number of cygwin/mintty shortcuts for SSH servers as `c:\path\to\cygwin\bin\mintty.exe /bin/ssh u...@server.com`, which work just fine. I can also get in if I run `cygwin.bat` in `cmd`, `console2` or any other Windows command terminal. I've tried running the latest cygwin setup, reinstalling `mintty`, and the shortcut still fails. The shortcut is just the default target: `C:\path\to\cygwin\bin\mintty.exe /bin/bash --login -i` I don't know what else to try. What happened here and how do I fix this? Probably a problem with your bash init scripts. Try (for the shortcut): C:\cygwin64\bin\mintty.exe --noprofile --norc - If that works, then start spelunking those init files (.bashrc, .profile, /etc/{profile,bash.bashrc}). BTW you don't need to call bash in the shortcut, mintty by default opens bash with those parameters; but the "-" at the end is required. HTH -- 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 -- 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: mintty window flashes open and immediately closes
Thanks, I should mention, I did try disabling my .bashrc file and actually my entire user directory... still didn't work. Also, mintty tells me neither of those options are valid? These are the options it tells me are available: https://i.imgur.com/vyMG9t6.png Also, just a correction to my original email, the shortcut was actually:`...mintty.exe -i /Cygwin-Terminal.ico -` The shortcut I previously stated was something I had done as a troubleshooting step and then pasted it into the email by mistake. - Brent On 2019-12-17 17:17, René Berber wrote: On 12/17/2019 2:58 PM, Brent Epp wrote: I've been using cygwin for years with no problems. I just updated cygwin again and I suddenly can't get into the terminal. When I click the cygwin icon, the window just flashes and immediately closes. What's interesting is that I have a number of cygwin/mintty shortcuts for SSH servers as `c:\path\to\cygwin\bin\mintty.exe /bin/ssh u...@server.com`, which work just fine. I can also get in if I run `cygwin.bat` in `cmd`, `console2` or any other Windows command terminal. I've tried running the latest cygwin setup, reinstalling `mintty`, and the shortcut still fails. The shortcut is just the default target: `C:\path\to\cygwin\bin\mintty.exe /bin/bash --login -i` I don't know what else to try. What happened here and how do I fix this? Probably a problem with your bash init scripts. Try (for the shortcut): C:\cygwin64\bin\mintty.exe --noprofile --norc - If that works, then start spelunking those init files (.bashrc, .profile, /etc/{profile,bash.bashrc}). BTW you don't need to call bash in the shortcut, mintty by default opens bash with those parameters; but the "-" at the end is required. HTH -- 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
mintty window flashes open and immediately closes
Hello, I've been using cygwin for years with no problems. I just updated cygwin again and I suddenly can't get into the terminal. When I click the cygwin icon, the window just flashes and immediately closes. What's interesting is that I have a number of cygwin/mintty shortcuts for SSH servers as `c:\path\to\cygwin\bin\mintty.exe /bin/ssh u...@server.com`, which work just fine. I can also get in if I run `cygwin.bat` in `cmd`, `console2` or any other Windows command terminal. I've tried running the latest cygwin setup, reinstalling `mintty`, and the shortcut still fails. The shortcut is just the default target: `C:\path\to\cygwin\bin\mintty.exe /bin/bash --login -i` I don't know what else to try. What happened here and how do I fix this? Thanks - Brent -- 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