Re: Files and folders created with invalid ACL
* Andrey Repin (Mon, 22 Jun 2020 20:20:35 +0300) > > Greetings, Thorsten Kampe! > > > I'm experiencing the issue described here[1]: files and folders > > created with Cygwin utilities like touch and mkdir have an > > incorrect ACL ("The access control list (ACL) structure is > > invalid (os error 1336)"). > > > icacls test.txt /verify > > test.txt: Ace entries not in canonical order. > > This is normal. All conformant drivers MUST be able to correctly process such > ACL's. "Non-canonical" does not mean "invalid". `lsd` reports an error ("os error 1336"). But that might simply be a result of the "non canonical order". > > Interestingly the issue does not occur with files created in > > the user's Cygwin home directory but - for instance - in the > > Documents folder of the user's Windows profile. > > > This is a fresh Cygwin installation on a test system. Has > > anyone found a solution? > > > [1] > > http://cygwin.1069669.n5.nabble.com/Issues-with-ACL-settings-after-updating-to-the-latest-cygwin-dll-td124123.html > > Needs more specifics. > How did you set your fstab, particularly cygdrive prefix? Any extra mounts? > How did you modify nsswitch? As I wrote, it's a "fresh Cygwin installation on a test system" that means the phenomennon is observable directly after the installation. I did some testing: files created in the user's home directory (/home/Administrator), the home directory (/home) and other sub directories don't show the issue. If I create a file or directory directly under / or anywhere else on the drive, the issue occurs. If that would be the case on my main workstation, I would be fine with that. Unfortunately on my main workstation the issue occurs everywhere. Thorsten -- 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: Files and folders created with invalid ACL
* Thorsten Kampe (Sun, 21 Jun 2020 20:42:55 +0200) > > * Eliot Moss (Sun, 21 Jun 2020 14:10:21 -0400) > > > > This is normal, and has to do with how Cygwin arranges to > > model, > > within the Windows ACL permissions system, some features of the > > Posix permissions system. Don't "fix" the ACLs - that can make > > the Posix functionality break. While the entries are not in > > canonical order, they work fine :-) ... > > "The access control list (ACL) structure is invalid (os error > 1336". That's an error and not a cosmetic issue. Other tools > from the Unix world do not work fine with files that have an > invalid ACL: <https://github.com/Peltoche/lsd/issues/334 > #issuecomment-647119819> I tried the noacl mount option: no change. Thorsten -- 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: Files and folders created with invalid ACL
* Eliot Moss (Sun, 21 Jun 2020 14:10:21 -0400) > > On 6/21/2020 1:56 PM, Thorsten Kampe wrote: > > Hello, > > > > I'm experiencing the issue described here[1]: files and folders > > created with Cygwin utilities like touch and mkdir have an > > incorrect ACL ("The access control list (ACL) structure is > > invalid (os error 1336)"). > > > > icacls test.txt /verify > > test.txt: Ace entries not in canonical order. > > > > Interestingly the issue does not occur with files created in > > the user's Cygwin home directory but - for instance - in the > > Documents folder of the user's Windows profile. > > > > This is a fresh Cygwin installation on a test system. Has > > anyone found a solution? > > > > [1] http://cygwin.1069669.n5.nabble.com/Issues-with-ACL- > > settings-after-updating-to-the-latest-cygwin-dll-td124123.html > > This is normal, and has to do with how Cygwin arranges to model, > within the Windows ACL permissions system, some features of the > Posix permissions system. Don't "fix" the ACLs - that can make > the Posix functionality break. While the entries are not in > canonical order, they work fine :-) ... "The access control list (ACL) structure is invalid (os error 1336". That's an error and not a cosmetic issue. Other tools from the Unix world do not work fine with files that have an invalid ACL: <https://github.com/Peltoche/lsd/issues/334 #issuecomment-647119819> Thorsten -- 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
Files and folders created with invalid ACL
Hello, I'm experiencing the issue described here[1]: files and folders created with Cygwin utilities like touch and mkdir have an incorrect ACL ("The access control list (ACL) structure is invalid (os error 1336)"). icacls test.txt /verify test.txt: Ace entries not in canonical order. Interestingly the issue does not occur with files created in the user's Cygwin home directory but - for instance - in the Documents folder of the user's Windows profile. This is a fresh Cygwin installation on a test system. Has anyone found a solution? [1] http://cygwin.1069669.n5.nabble.com/Issues-with-ACL- settings-after-updating-to-the-latest-cygwin-dll-td124123.html -- 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: [ANNOUNCEMENT] TEST: Cygwin 3.1.0-0.1
* Takashi Yano (Tue, 13 Aug 2019 04:44:51 +0900) > I looked into this problem, and found that this is due to a > bug of ConEmu. > > Attached is the simple test case (conemu-chk.c). > In command prompt, the output of this program is: > AAA > BBB > > However, in ConEmu, the output is: > AAA >BBB > > If ENABLE_VIRTUAL_TERMINAL_INPUT flag is set to console input, > it affects to console output and becomes so that the newline '\n' > does not cause carriage return. This is weird. > > Thorsten, could you please report this bug to ConEmu developers? Thanks, I've opened #1966 (https://github.com/Maximus5/ConEmu/issues/1966) Thorsten -- 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: [ANNOUNCEMENT] TEST: Cygwin 3.1.0-0.1
* Thorsten Kampe (Tue, 13 Aug 2019 23:45:14 +0200) > The issue is definitely not just with ConEmu but also with a > standard Windows console (cmd.exe). > > I compiled tree > (http://mama.indstate.edu/users/ice/tree/src/tree-1.8.0.tgz). > > Mintty: 2.5s > Cmd: 122s > > Make clean[1]: > Mintty: 0.3s > Cmd: 60,3s A second compile took even three minutes: real3m1,822s user0m1,158s sys 0m0,751s The times in Mintty: real0m2,281s user0m1,006s sys 0m0,844s Note that user and sys are almost identical in Cmd and Mintty. Only real differs. Thorsten -- 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: [ANNOUNCEMENT] TEST: Cygwin 3.1.0-0.1
* Corinna Vinschen (Mon, 12 Aug 2019 15:01:52 +0200) > > On Aug 11 09:27, Thorsten Kampe wrote: > > * Corinna Vinschen (Fri, 9 Aug 2019 20:53:38 +0200) > > > I uploaded a new Cygwin test release 3.1.0-0.1 > > > > > > This release comes with a couple of new features and quite a few > > > bug fixes. > > > > > > The most interesting change, courtesy Ken Brown, is a revamp of the > > > old FIFO code. It should now be possible to open FIFOs multiple times > > > for writing, something the old code failed on. > > > > I've noticed two things in connection with pspg > > (https://github.com/okbob/pspg) - a pager for tables: > > Nobody from the dev team uses this application, afaics. > > To help tracking down the cause for the problems, can you bisect > Cygwin or at least check which of the snapshots from > http://www.cygwin.com/snapshots/ introduces the problem? The issue is definitely not just with ConEmu but also with a standard Windows console (cmd.exe). I compiled tree (http://mama.indstate.edu/users/ice/tree/src/tree-1.8.0.tgz). Mintty: 2.5s Cmd: 122s Make clean[1]: Mintty: 0.3s Cmd: 60,3s Thorsten [1] if [ -x tree ]; then rm tree; fi if [ -f tree.o ]; then rm *.o; fi rm -f *~ -- 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: [ANNOUNCEMENT] TEST: Cygwin 3.1.0-0.1
* Corinna Vinschen (Fri, 9 Aug 2019 20:53:38 +0200) > I uploaded a new Cygwin test release 3.1.0-0.1 > > This release comes with a couple of new features and quite a few > bug fixes. > > The most interesting change, courtesy Ken Brown, is a revamp of the > old FIFO code. It should now be possible to open FIFOs multiple times > for writing, something the old code failed on. > > > Please test. I've noticed two things in connection with pspg (https://github.com/okbob/pspg) - a pager for tables: 1. Configuring the source takes ages (for instance "checking whether the C compiler works..."). This is only in ConEmu, not in MinTTY. 2. Pager output is completely distorted: Before: > SELECT ArtistId FROM Chinook.dbo.Album WHERE ArtistId = 78 ++ | ArtistId | || | 78 | ++ (1 row affected) Time: 0.356s After: > SELECT ArtistId FROM Chinook.dbo.Album WHERE ArtistId = 78 ++ | ArtistId | || | 78 | Regards, Thorsten -- 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: [ANNOUNCEMENT] Test: postgresql-10.2-1
* Marco Atzeri (Mon, 12 Feb 2018 08:39:09 +0100) > > On 11/02/2018 23:07, Thorsten Kampe wrote: > > * Marco Atzeri (Sat, 10 Feb 2018 14:50:30 +0100) > >> Version 10.2-1 of packages > > > > > Getting error "The procedure entry point > > PQencryptPasswordConn could not be located in the > > dynamic link library F:\cygwin\bin\psql.exe" trying to > > start psql. Server runs fine. > > of course not here. > > $ psql postgres > psql (10.2) > Type "help" for help. > > postgres=# > - > > PQencryptPasswordConn belongs to cygpq-5.dll > in libpq5-10.2-1. libpq was still version 9.6. Shouldn't it be selected for upgrading automatically as a dependency? Thorsten -- 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: [ANNOUNCEMENT] Test: postgresql-10.2-1
* Marco Atzeri (Sat, 10 Feb 2018 14:50:30 +0100) > Version 10.2-1 of packages > >libecpg-compat3 >libecpg-devel >libecpg6 >libpgtypes3 >libpq-devel >libpq5 >postgresql >postgresql-client >postgresql-contrib >postgresql-devel >postgresql-doc >postgresql-plperl >postgresql-plpython > > are available in the Cygwin distribution: Getting error "The procedure entry point PQencryptPasswordConn could not be located in the dynamic link library F:\cygwin\bin\psql.exe" trying to start psql. Server runs fine. Thorsten -- 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 migrate from Cygwin Ports?
Hi, Cygwin Ports has recently been shut down. How can I identify all packages that were installed from their web site in order to uninstall those stale packages? Thorsten -- 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 make sshd start a shell other than bash when I log in?
* Andrew Schulman (Thu, 06 Apr 2017 21:22:38 -0400) > > My regular shell is fish. To make local terminals run fish instead of bash > when > I start them, I set > > SHELL=/usr/bin/fish > > in my desktop environment. This works fine: I start MinTTY, and fish starts. > > But when I log into that same host by sshd, bash starts, not fish (since sshd > doesn't have access to my desktop environment variables). How can I configure > either my ssh client or the ssh server to start fish instead of bash? I use db_shell in /etc/nsswitch.conf. Thorsten -- 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: /dev/stderr problem
* Thorsten Kampe (Mon, 17 Oct 2016 08:25:13 +0200) > the following bash script results in a different output when > redirected to a file. > > ``` > printf "FIRST LINE\n" > /dev/stderr > shopt -os xtrace > printf "SECOMD LINE\n" > /dev/stderr > ``` On further inspection: the `xtrace` is not related to the problem: script.sh ``` printf "FIRST LINE\n" > /dev/stderr printf "SECOMD LINE\n" > /dev/stderr ``` ``` $ bash script.sh FIRST LINE SECOMD LINE $ bash script.sh 2> file && cat file SECOMD LINE $ file /dev/stderr /dev/stderr: symbolic link to /proc/self/fd/2 ``` Thorsten -- 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
/dev/stderr problem
Hi, the following bash script results in a different output when redirected to a file. ``` printf "FIRST LINE\n" > /dev/stderr shopt -os xtrace printf "SECOMD LINE\n" > /dev/stderr ``` ``` $ bash script.sh FIRST LINE + printf 'SECOMD LINE\n' SECOMD LINE ``` ``` $ bash script.sh 2> file && cat file SECOMD LINE ``` When I use `>&2` instead of `> /dev/stderr` the problem does not occur. Since this problem does not occur on Linux but also with Zsh on Cygwin, I think this is a Cygwin issue. Thorsten -- 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: Native symlinks and setup.exe
* Gene Pavlovsky (Mon, 3 Oct 2016 00:46:54 +0300) > > So, when installing, the type of symlinks doesn't honor the CYGWIN > option since they are just unpacked by tar as is. > > The question I'm proposing now - should `tar` be modified to honor the > CYGWIN option and automatically convert symlinks when extracting, if > necessary? Tar's task is to unpack what's in the archive. So converting is out of question. You can ask the maintainer of the affected packages to create the symlinks in the postinstall script. Thorsten -- 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: Native symlinks and setup.exe
* Gene Pavlovsky (Sat, 1 Oct 2016 18:52:47 +0300) > > I'm installing Cygwin 64-bit on a fresh Win 7 x64 installation. > Before running setup.exe I've set the system env var CYGWIN=winsymlinks:native > After that I ran setup-x86_64.exe and installed cygwin64. > The symlinks to .exe files in bin, created by setup, are not native > symlinks, they are cygwin symlinks. Apparently, setup doesn't honor > the winsymlinks:native CYGWIN option. Is that intended (why?) or a > bug? Setup does not create symlinks. That's either done by the postinstall scripts or the contents of the package are simply unpacked to the folder. So the answer to your question is: the symlinks are not created but copied, that's why. Thorsten -- 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: which does not find batch files
* Thorsten Kampe (Sat, 17 Sep 2016 12:29:18 +0200) > while the Cygwin shell (bash and zsh) can find and execute batch > files (extension bat and cmd) the external and internal which command > cannot. Is there a way around this? On further inspection, it seems as the cause is that the batch files are located on an exFAT thumb drive. Still I wonder if it's possible to make which recognize these batch files as executable. Thorsten -- 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
which does not find batch files
Hi, while the Cygwin shell (bash and zsh) can find and execute batch files (extension bat and cmd) the external and internal which command cannot. Is there a way around this? Thorsten -- 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: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.5.0-0.11
* Yaakov Selkowitz (Mon, 4 Apr 2016 16:29:11 -0500) > Corinna just released a new Cygwin TEST version 2.5.0-0.11. > > If things are not going very wrong, this is basically what you'll > get as 2.5.0-1 release (really, we mean it this time). Please, please > test and report regressions. As reported by Ismail: I can't get an interactive Zsh with the newest snapshot. It hangs at eval $(dircolors -b ~/.dir_colors) eval $(ssh-pageant -qr -a $TMP/.ssh-pageant) ...and afterwards at line 106 in compdump (an internal function). Thorsten -- 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: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.5.0-0.1
* Corinna Vinschen (Sun, 24 Jan 2016 12:56:54 +0100) > Please give this new POSIX.1e ACL implementation a test. If you > have > a project or maintain a package utilizing ACLs, please make sure that > your project picks up the new POSIX.1e API and that it works as desired. Procps warning: ``` $ procps 2.4+ kernel w/o ELF notes? -- report this ``` Thorsten -- 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: Does sftp file system work in Cygwin?
* Woody Setzer (Thu, 23 Apr 2015 18:28:36 -0400) I am running Mate under Cygwin on a Windows 7 Professional system, and want to connect to a Linux server running on our local network. Ultimately, I will be connecting through my Agency's VPN, which is so slow as to render using X over that conduit useless. So, I want to access my files on the Linux computer's filesystem via sftp. I can get files from the Cygwin command line from that server using sftp, and can login via ssh. I have the gvfs package installed under Cygwin. The Cygwin installation on my Windows machine was updated 23 April 2015. I have tried two approaches to setting up an sftp based file system on Cygwin. The first was to run Mate on the Windows box, and use the Connect to Server dialog, specifying SSH for the file system. that results in the error Unable to spawn SSH program. The second was to use gvfs-mount from the command line, which results in a similar error: $ gvfs-mount sftp://xx.xx.xxx Error mounting location: Unable to spawn SSH program Should this work in Cygwin? Is there some configuration I need to attend to? I spent the afternoon with Google search, and have found very little about this. User-space file systems (mostly fuse based in Linux to my knowledge) are not going to work in Cygwin. This means you can mount a Cygwin SFTP server resource on Linux but not vice versa. Thorsten -- 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: cygwin bash script suddenly can't find ls, grep
* LMH (Sat, 11 Oct 2014 20:30:07 -0400) Good Lord, I guess I wasn't thinking very clearly trying to use PATH as a variable for something else. I changed to, FILE_DIR=$(ls -d './'$SET'/'$FOLD'/'$FOLD'_anneal/'$PARAM_SET'/'$AN_SET) echo $FILE_DIR FILE_LIST=($(ls $FILE_DIR'/'*'out.txt' )) echo ${FILE_LIST[@]} That looks pretty ugly. You probably can replace all that with FILE_LIST=(./$SET/$FOLD/$FOLD_anneal/$PARAM_SET/$AN_SET/*out.txt) Thorsten -- 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: [ANNOUNCEMENT] New package: tmux-1.9a-1
* Michael Wild (Tue, 4 Mar 2014 11:28:06 +0100) This is the first release of tmux that features support for Cygwin and despite me using it for some time now without any problems, you might encounter some rough edges. Should you find any glitches that are not due to my packaging, please report them directly to the upstream developers (http://sourceforge.net/p/tmux/tickets). I'm getting open terminal failed: not a terminal starting tmux in all terminal emulators I tried (except Mintty): Cmd.exe, ConEmu, Take Command. Thorsten -- 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: Need general snapshot testers
* Christopher Faylor (Thu, 27 Feb 2014 15:26:33 -0500) On Thu, Feb 27, 2014 at 07:14:49PM +0100, Thorsten Kampe wrote: * Christopher Faylor (Thu, 20 Feb 2014 13:11:39 -0500) I forgot to mention that I managed to duplicate this problem and am working on a fix for this and the other screen garbling seen in recent snapshots. Reporting a possibly related bug in connection with the latest snapshots: connecting to a Byobu session with GNU screen backend via ssh has the effect that everything in the last line will not be output. Sorry but I have no idea what Byobu is or what it means to be backed by ssh. ssh normally uses ptys which don't touch any of the code that I have been modifying. Please see my request for information in: http://cygwin.com/ml/cygwin/2014-02/msg00634.html I would REALLY appreciate it if anyone reporting issues would be as absolutely detail rich as possible. Byobu is a frontend for GNU screen (or tmux). The easiest way to reproduce it is... (Cygwin 32-bit 20140227) 1. Install byobu on the remote host: http://byobu.co/downloads.html 2. Select screen as backend: byobu-select-backend screen 3. Run a GNU screen session on remote host via ssh: ssh -t USER@HOST byobu 4. Press enter multiple times to reach the bottom of the screen. 5. Issue any command (ls, echo whatever) and see that there is no visible output Thorsten -- 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: Need general snapshot testers
* Christopher Faylor (Thu, 20 Feb 2014 13:11:39 -0500) I forgot to mention that I managed to duplicate this problem and am working on a fix for this and the other screen garbling seen in recent snapshots. Reporting a possibly related bug in connection with the latest snapshots: connecting to a Byobu session with GNU screen backend via ssh has the effect that everything in the last line will not be output. If I change the GNU screen backend to tmux the effect goes away. The main difference between GNU screen and tmux is that GNU screen uses a caption line additionally to the hard status (so in effect occupies two lines at the bottom: https://help.ubuntu.com/community/Byobu#Status_and_Caption_Lines ) Reverting to the last non snapshot cygwin1.dll resolves the issue. Thorsten -- 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: Newbie Alias and Profile questions
* Mike Rushton (Mon, 10 Feb 2014 20:15:28 -0500) I am trying to put an alias in a .bashrc alias clear='printf \033c' clear is part of the ncurses package, so I would simply install this. But what .bashrc do I put this in ? in /ect/skel or the one my user directory. I put this code in and it seems to get overwritten. I don't understand what I am doing wrong. /etc/skel is a template directory for new users. It is a minor thing that i can't clear the screen, but i want to work at this and try to fix this. Then I want to add a script to my profile. but what one the .profile or .bash_profile ? The two bash specific files you need to know are .bash_profile and .bashrc. Bash is different to other shells in that it will only read one of those two depending on whether bash is run as a login shell or not. The recommended way is to source .bashrc from .bash_profile (this is already the Cygwin default) and to leave .bash_profile empty. Put everything you need into .bashrc. Forget about .profile. It's only needed for backward compatibility and not an official bash file. Thorsten -- 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: cygwin64 1.7.25 locate core dumps
* Corinna Vinschen (Sat, 26 Oct 2013 13:11:18 +0200) On Oct 25 20:19, Steve wrote: On Mon, Sep 16, 2013 at 6:45 PM, jeff.newmil...@dnvkema.com wrote: Could not find reports on core dumps in system programs recently, or problems with the locate tool. What I do: -- JNEWM@FSEL7800 ~ $ locate junk /home/JNEWM/.cpan/build/Email-Simple-2.102-AftJAF/t/header-junk.t /home/JNEWM/.cpan/build/Email-Simple-2.102-AftJAF/t/test-mails/junk-in-header /home/JNEWM/.cpan/build/MIME-tools-5.503-wxTSaY/testmsgs/uu-junk-extracted.ref /home/JNEWM/.cpan/build/MIME-tools-5.503-wxTSaY/testmsgs/uu-junk-target.msg /home/JNEWM/.cpan/build/MIME-tools-5.503-wxTSaY/testmsgs/uu-junk.msg /home/JNEWM/.cpan/build/MIME-tools-5.503-wxTSaY/testmsgs/uu-junk.ref Segmentation fault (core dumped) Same with me on two Cygwin X64 installations (but not on x32). Thorsten -- 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: Obtaining Windows 7 behavior on Windows 8
* Eliot Moss (Sun, 13 Oct 2013 23:33:23 -0400) I am upgrading from one laptop to another, the old one running Windows 7 and the new one Windows 8. On the old one, I disabled UAC and bash appears to run with admin privileges (which is what I normally want). In particular, if I say 'groups' then Administrators appears among the groups. On the Windows 8 machine, I have set UAC to the lowest value, but 'groups' does not include Administrators, even though the current user is an admin. You cannot disable UAC this way in Windows 8 anymore. You have to disable Run all administrators in Admin Approval Mode group policy: http://windows.microsoft.com/is-is/windows7/how-do-i-change-the- behavior-of-user-account-control-by-using-group-policy Thorsten -- 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: Fwd: reboot command behaves different on Linux
* Fedin Pavel (Fri, 22 Mar 2013 11:53:39 +0400) On 22.03.2013 11:44, Frank Fesevur wrote: I'm also considering adding possibility to customize the shutdown message: shutdown -rf 22:00 Rebooting because of Windows Updates. Who knows... And does anybody ever use that reason thing on the windows shutdown? I know it is used by server versions of Windows. When you request shutdown/reboot you must enter a reason, and it is logged in system logs (don't know exactly where, i guess you can find this in Event viewer). Looks like it's ignored by desktop versions (XP/7/home/whatever). This is called the shutdown tracker and it's on by default on server systems (non core). Most people simply disable it. Thorsten -- 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
psql crashes with snapshot
Hello, I just downloaded the PostgreSQL client tools and noticed that psql crashes every time. The usual rebase didn't help. I reverted cygwin1.dll to the latest official version (1.7.17, 2012-10-19) and now psql works fine. What can I do - if anything at all - to debug the issue? Obviously, I cannot test every single snapshot after October last year and see where the crash starts... Thorsten -- 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: sshd service will not start on Windows 8 (Enterprise) because the netlogon service isn't running
* Dan Regan (Thu, 6 Sep 2012 17:02:23 -0700) The root of the problem appears to be that sshd relies on the netlogon service to be running Can you elaborate? Thorsten -- 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: Why won't my .sh file work with cygwin?
* Gundament (Tue, 3 Jul 2012 22:38:36 -0700 (PDT)) I am new to Cygwin but I understand it does it's best to simulate a linux terminal. No. Cygwin is: a collection of tools which provide a Linux look and feel environment for Windows. http://cygwin.com/ I want to make a little program and I have written out the entire code and saved it as a .sh file. I have paired my Windows computer to open .sh files with Cygwin's mintty.exe (terminal) You are confusing a terminal (like Mintty) with a shell (like bash). Thorsten -- 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: cygwin: how to mount linux FS from cygwin
* ping (Thu, 28 Jun 2012 14:01:34 -0400) I just installed full cygwin and I now need to access a folder from inside cygwin machine(win7). I did some google search but no good match. are there any known best practice for that (e.g through SSH)? the cygwin ssh client works fine but I just dont wanna bother to copy DIRs .. Your options are SMB and NFS depending on which is setup on the server. You mount both with Windows tools (not Cygwin). Or you use a SCP/SFTP client like WinSCP or FileZilla. Thorsten -- 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: sshd not doing key based authentication
* Rurik Christiansen (Tue, 10 Apr 2012 11:23:04 +1000) On 6/04/2012 08:44, Andrey Repin wrote: Greetings, Rurik Christiansen! [...] and my understanding is that I can't run the sshd frontend without screwing the permissions. I don't understand what you mean by this. From an earlier mail on this list: http://cygwin.com/ml/cygwin/2008-11/msg00212.html I cite: Ugh! This suggests that you have not read OpenSSH readme in /usr/share/doc/Cygwin. You can't do this without screwing up all the permissions on various directories and files that SSH checks the permissions of. Nonsense. sshd doesn't change or screw up any permissions. I've been running sshd as user or sshd via xinetd run as user for the last seven years on my workstation and never had no problem. Of course I can only login as myself but that's expected. Thorsten -- 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: error mounting smb shared with ~ in name
* Daniel D (Sun, 1 Apr 2012 07:49:49 + (UTC)) Thorsten Kampe thorsten at thorstenkampe.de writes: * Daniel D (Fri, 30 Mar 2012 21:52:35 -0700) Is ~ allowed on a smb share name when mounting it? I keep getting errors while trying to mount //server/~foo via fstab. If yes, can someone give me some tips for what to do to mount a share named \\server\~foo ? [...] It looks like mount command does not like ~ in the smb share name, though it is fine with ~ in the the mount point name. That's a shell issue not a mount issue. ~foo refers to the home directory of user foo. Either escape the ~ or quote the argument containing the ~. Thank you for the quick reply, however I still could not make it work: mount //server/\176foo /mnt/foo prints out no error, as if everything works out, however ls /mnt/foo I said escape or quote: mount //server/\~foo /mnt/foo mount //server/~foo /mnt/foo Thorsten -- 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: error mounting smb shared with ~ in name
* Daniel D (Fri, 30 Mar 2012 21:52:35 -0700) Is ~ allowed on a smb share name when mounting it? I keep getting errors while trying to mount //server/~foo via fstab. If yes, can someone give me some tips for what to do to mount a share named \\server\~foo ? [...] It looks like mount command does not like ~ in the smb share name, though it is fine with ~ in the the mount point name. That's a shell issue not a mount issue. ~foo refers to the home directory of user foo. Either escape the ~ or quote the argument containing the ~. Thorsten -- 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.9: dircolors error on WinXP
* Jon Seidel CMC (Sun, 18 Dec 2011 16:39:25 -0800) Running the following: dircolors -b .dircolors dircolors -b .dircolors results in the error: .dircolors:1: invalid line; missing second token eval $(dircolors -b ~/.dir_colors) Thorsten -- 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: Starting Z-shell via telnet connection to XP box
* Mike Brown (Thu, 8 Dec 2011 14:52:43 -0600) While I can use remote desktop to get from my Solaris server to the XP box, doing so while at some place other than the LAN, the DSL connection speed tends to cause the RD to fail and close. And since I don't really need a graphical connection, I figured that I would just start the XP Pro telnet server and connect that way. Ya, well, not so good there either. I want to be able to start zsh from the telnet session so that I have full access to the cygwin stuff, specifically being able to change crontab. But, when I enter zsh nothing happens. I do not get a Z-shell prompt based upon my Z-shell config files. Instead the telnet session hangs. I have to so a ^] and quit the telnet session. Can the cygwin tools be accessed via a telnet connection and if so how? Use SSH -- 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: Starting Z-shell via telnet connection to XP box
* Mike Brown (Fri, 9 Dec 2011 07:22:23 -0600) On Fri, Dec 09, 2011 at 12:31:44PM +0100, Thorsten Kampe wrote: Use SSH I installed the bitvise WinSSHD server and can connect with it. I had to build a different start BAT file in order to get zsh started and to use my home zsh config files. The only issue I have left is to find out how to change their white foreground and black background. I want that reversed :-) Thanks for te tip. Better use OpenSSH -- 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: Starting Z-shell via telnet connection to XP box
* Mike Brown (Fri, 9 Dec 2011 08:33:05 -0600) On Fri, Dec 09, 2011 at 03:10:34PM +0100, Thorsten Kampe wrote: Better use OpenSSH And why would that be? Okay, better is not correct. Let's call it equally good. It's free, constantly updated, easy to setup and is integrated in your existing Cygwin installation. Thorsten -- 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: Starting Z-shell via telnet connection to XP box
* Mike Brown (Fri, 9 Dec 2011 09:31:45 -0600) On Fri, Dec 09, 2011 at 03:42:42PM +0100, Thorsten Kampe wrote: I suppose I better update my installation. I may be in trouble as uname says that it is: CYGWIN_NT-5.1 cygcheck version 1.88 System Checker for Cygwin Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Red Hat, Inc. Compiled on Jan 20 2006 So, what is this, 1.5.x or 1.7.x? I'm guessing 1.5.x as I do not have a fstab file. It's Windows XP (NT 5.1). uname -a should give you the full information. The main web page has the following: PLEASE read the User's Guide before upgrading your Cygwin installation to 1.7. You'll be avoiding future trouble if you do this. I found no section in the user guide regarding converting from 1.5 to 1.7. The last thing I want to do is make my current install non-functional. I upgraded when it came available via Setup.exe and I don't remember having any problems. The longer you wait updating the more potential problems will arise. You should update at least once per month. Thorsten -- 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: [ANNOUNCEMENT] CALL FOR TESTING: Cygwin 1.7.10
* Corinna Vinschen (Tue, 6 Dec 2011 10:37:46 +0100) - Fifos have been rewritten and should now be more reliable. Trying to run GNU Screen: open fifo /tmp/uscreens/S-thorsten/2756.cons1.hombre: Bad file descriptor Thorsten -- 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: openSSH
* Clayton Evans (Wed, 5 Oct 2011 17:43:45 -0500) I have four questions that are not clear to after reading /usr/doc/Cygwin/openssh.README. 1) When running ssh-host-config, what is the correct string to enter for the CYGWIN environment variable? Just leave it blank. 2) When running ssh-host-config, is it necessary to use pwd as the password for the user sshd_server? No 3) Does one run ssh-user-config on the host machine or the client machine? Client 4) What files from the ssh-user-config is it necessary to move to the other machine? None. Just re-run ssh-user-config. Thorsten -- 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 run a .bat or .cmd file from bash prompt
* J.V. (Fri, 16 Sep 2011 13:03:35 -0600) To run a .bat or .cmd file, I can do this: $cmd C:mybat.bat or C:\mycmd.cmd In other words, I have to type two commands (one to get to the shell, and another to run the .bat or .cmd file). What I want is to write a shell script (bash), that will cd to a directory, enter the dos cmd prompt and execute a .bat file and then return to my bash shell. I do not know if this is possible, have tried many things, but nothing works. Now that is a really detailed description of what you tried. Anyway, you can run a batch script like any other script. It just works. Thorsten -- 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 run a .bat or .cmd file from bash prompt
* Robert Perlberg (Fri, 16 Sep 2011 15:10:38 -0400) cmd /c batch_file [arguments ...] This is such an original idea. I wish the Unix shell had something like that. It does. -- 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: cygwin 1.7.9, problem with cygwin1.dll, path_conv::check, has_acls()? (Windows 7)
* John Ruckstuhl (Wed, 14 Sep 2011 13:31:50 -0700) Larry Hall wrote: On 9/14/2011 1:56 PM, Thorsten Kampe wrote: The obvious way to troubleshoot this would be to use a network drive (Z: for instance) instead of UNC or to mount the share and see if that works. Naturally it would also make sense to test the latest Cygwin snapshot and to see if you get the same result if you use //localhost/C$. Right. I was thinking this could fall into the category of a network share that needs to have the noacl mount option set. So another option is to try mounting the UNC path to a Cygwin path (in /etc/fstab) and specify the noacl option. Both of your comments are a bit over my head. I'll put in an honest effort to figure out what you mean, and then reply with results. It seems you are suspicious of the mount... that a defective mount WOULD interfere when the target is expressed one way, and WOULDNOT interfere when the target is expressed the other way. Sorry, you completely missed the point. You cd'ed into //hyperdisk/Data/Engineering/ruck (Cygwin's representation of a UNC path) - that means you didn't mount or map /anything/! Use the mount command to mount or net use to map a share. Thorsten -- 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: cygwin 1.7.9, problem with cygwin1.dll, path_conv::check, has_acls()? (Windows 7)
* John Ruckstuhl (Tue, 13 Sep 2011 17:40:40 -0700) I'm trying to create files in the current dir, on a network fileserver. I do have the necessary permissions. The standard incantation fails, but some non-standard incantations succeed. I'm willing to bet $10 that it's a cygwin1.dll problem, but I guess it's possible it's a bash problem. I'll use touch to demonstrate: $ pwd //hyperdisk/Data/Engineering/ruck The obvious way to troubleshoot this would be to use a network drive (Z: for instance) instead of UNC or to mount the share and see if that works. Naturally it would also make sense to test the latest Cygwin snapshot and to see if you get the same result if you use //localhost/C $. Thorsten -- 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: cygwin started speaking German today
* Corinna Vinschen (Fri, 9 Sep 2011 16:59:21 +0200) And above all, there *is* an official way for the user to align the Cygwin locale with the Windows locale [...] Misses the point. Users who chose to have a specific language environment most likely want to have this choice of language for all their applications. All localized applications should honor that and there should be no need to explicitly align anything. This is the way it's handled on Linux and Windows. Thorsten -- 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: cygwin started speaking German today
* Corinna Vinschen (Fri, 9 Sep 2011 17:09:04 +0200) It is not at all the task of libintl to override the underlying OS, and in the case of Cygwin, the underlying OS is Cygwin, not Windows. Pardon me? Cygwin is: a collection of tools which provide a Linux look and feel environment for Windows. a DLL (cygwin1.dll) which acts as a Linux API layer providing substantial Linux API functionality. Cygwin does not have any user account management, no file system, no file system permissions, etc. So when did Cygwin become an operating system in an operating system? Thorsten -- 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: cygwin started speaking German today
* Christopher Faylor (Sat, 10 Sep 2011 09:49:50 -0400) On Sat, Sep 10, 2011 at 01:44:44PM +0200, Thorsten Kampe wrote: Corinna Vinschen (Fri, 9 Sep 2011 17:09:04 +0200) It is not at all the task of libintl to override the underlying OS, and in the case of Cygwin, the underlying OS is Cygwin, not Windows. Pardon me? Cygwin is: a collection of tools which provide a Linux look and feel environment for Windows. a DLL (cygwin1.dll) which acts as a Linux API layer providing substantial Linux API functionality. Cygwin does not have any user account management, no file system, no file system permissions, etc. So when did Cygwin become an operating system in an operating system? Corinna, and most of the rest of us, know full well that Cygwin is not a real OS but that was obviously not her point. I believe that Corinna's point was that Cygwin distributed packages should not normally call Windows functions. I think everyone agrees on that. The problem is that Cygwin is overriding the user's localization choice done in Windows. Corinna says users can align their shell locale with the Windows if they want to. Bruno says users shouldn't have to align anything but get this behaviour by default (and I agree). Cygwin is emulating an OS. That is a given. I assume that Corinna assumed that no one would be so pedantic as to send email to hundreds of people to pick nits about her use of the term OS in this context. You really don't seem to have a point beyond being disagreeably picky. My point is that Cygwin should not override Windows. Cygwin is less than an OS and it's more than a simple application. Nevertheless it should fit in the overall Windows environment and not contradict it. To paraphrase Corinna: It is not the task of Cygwin to override the underlying OS, and in the case of Cygwin, the underlying OS is Windows, not Cygwin. Or to quote myself: Users who chose to have a specific language environment most likely want to have this choice for all their applications. Thorsten -- 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: install on win7 enterprise, can't modify bash start up shortcut
* LMH (Fri, 19 Aug 2011 12:50:01 -0400) If you click on the small Cygwin icon, upper left on the top window bar, you can select properties. This gives you a window to modify properties of the bash shell window such as the size, font color, font size, etc. You're not modifying the bash shell but the terminal bash is running in. I have always done this as soon as I installed cygwin. This time, I got the aforementioned error message. I am not sure what to do to allow me to modify the bash window on a permanent basis. Why don't you just run the batch file directly (and not through the shortcut) and modify it then? The cygwin icon points to Cygwin.bat, so I presume there are some arguments in the script that configure the shell. Is there any religious taboo that would prevent you from opening the batch script in an editor and see that you're wrong? I could try to manually edit the .bat, but I'm not sure what I would change to get the window modifications I am looking for. You are confusing a terminal and the shell it runs in. Actually, it would make sense to directly configure the cmd terminal (via defaults) because you probably want the changes in all Windows terminal windows (Cmd.exe). Thorsten -- 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: install on win7 enterprise, can't modify bash start up shortcut
* Thorsten Kampe (Fri, 19 Aug 2011 20:56:49 +0200) You are confusing a terminal and the shell it runs in. I meant you are confusing a shell and the terminal it runs in. Thorsten -- 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: install on win7 enterprise, can't modify bash start up shortcut
* LMH (Wed, 17 Aug 2011 21:59:12 -0400) I have just installed 1.7 on win7 enterprise 64 bit and I tried to modify the shortcut that starts the bash window and I get a windows error message, can't modify the shortcut . make sure it has not been deleted or renamed Why on earth and in which way would you want to modify a shortcut?? If it points to a non-existing target than delete it and re-create manually. Or run setup again which should do the same. Thorsten -- 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: Failure of name resolution with ssh on windows 7 and VMware
* John Dzielski (Sat, 13 Aug 2011 17:11:03 -0400) I am unable to get name resolution to work with ssh. The command ssh X returns the error ssh: could not resolve hostname X: Non-recoverable failure in name resolution. The command nslookup X returns a valid IP address. Run a Wireshark trace when ssh fails and see if you actually have an attempt for name resolution. I'd rather suspect UAC or the firewall. I've created a partial workaround in my .bashrc file that creates variables containing the IP addresses of the names I need to resolve. This is a weird idea. Use /etc/hosts for that. Thorsten -- 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: SSHD Issue Windows 2003 64 bit
* Gary (Wed, 10 Aug 2011 15:59:14 -0700) The logs specify: /var/empty must be owned by root and not group or world-writable. That's pretty clear, isn't it? I've tried changing permissions, What exactly did you try? and also looking on the forums for this {http://cygwin.com/ml/cygwin/2008-02/msg00429.html} I still can't figure it out. Changing ownership is done with chown and permissions with chmod. Thorsten -- 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: /etc/fstab
* J.V. (Wed, 10 Aug 2011 16:17:42 -0600) What is the exact line I should put in /etc/fstab to get C:\ mounted to /c on Windows 7? none / cygdrive binary,posix=0,user 0 0 The documentation makes me think. Please do not make me think. I know, thinking can sometimes hurt. This is because you seem not used to it. Is there a reason this does not come by default? If you think (ouch!) about it, you will realize that you'll get a mess of Cygwin directories and (depending on the number of local drives and mapped network shares) single letter directories on the root. For the same reason, you don't mount all your external drives or shares on Linux to / but to /mnt or /media. Is cygwin installed on non windows systems like Linux? Cygwin - Get that Linux feeling - on Windows! (headline at http://cygwin.com/). Does that answer your question? jeez, why is this so complicated? Why am I forced to think about crap like this? If you think (sorry!) about it, you'd realize that there is nothing complicated in typing /cTABc. Actually there is nothing more simple than that. Thorsten -- 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: SSHD Issue Windows 2003 64 bit
* Gary (Thu, 11 Aug 2011 10:01:58 -0700) I've attempted chmod from the terminal and to change the permissions through the standard UI. Terminal is better. Try again chmod 700 /var/empty. I've attempted to chown to SYSTEM, but the user does not exist. It should: % grep -i system /etc/passwd SYSTEM:*:18:544:,S-1-5-18:: Try rerunning 000-cygwin-post-install.sh or passwd-grp.sh (move your passwd file first). Thorsten -- 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: SSHD Issue Windows 2003 64 bit
* Gary (Thu, 11 Aug 2011 11:25:04 -0700) I've tried re-running the 000-cygwin-post-install.sh receive no echo from the terminal, I've moved the passwd file (from my understanding outside the directory before running the post-install). My passwd file looks like this: sshd:*:27:27:sshd privsep:/var/empty:/sbin/nologin I can't find a passwd-grp.sh script. Both files should actually be in /etc/postinstall and end in .sh.done Just try running /bin/mkpasswd -l -c /etc/passwd and /bin/mkgroup - l -c /etc/group manually. What should my passwd file look like? On a Windows 7 non domain machine like this for instance (mind you, line breaks and I don't run sshd as service on my machine): SYSTEM:*:18:544:,S-1-5-18:: LocalService:*:19:544:U-NT AUTHORITY\LocalService,S-1-5-19:: NetworkService:*:20:544:U-NT AUTHORITY\NetworkService,S-1-5-20:: Administrators:*:544:544:,S-1-5-32-544:: Administrator:unused:500:513:U-hombre\Administrator,S-1-5-21-252259350- 3027294242-313109463-500:/home/Administrator:/bin/bash Guest:unused:501:513:U-hombre\Guest,S-1-5-21-252259350-3027294242- 313109463-501:/home/Guest:/bin/bash HomeGroupUser$:unused:1002:513:HomeGroupUser$,U-hombre\HomeGroupUser$,S- 1-5-21-252259350-3027294242-313109463-1002:/home/HomeGroupUser $:/bin/bash thorsten:unused:1001:513:U-hombre\thorsten,S-1-5-21-252259350- 3027294242-313109463-1001:/home/thorsten:/bin/bash __vmware_user__:unused:1004:513:__vmware_user__,U-hombre \__vmware_user__,S-1-5-21-252259350-3027294242-313109463-1004:/home/ __vmware_user__:/bin/bash Thorsten -- 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: Portable shell code between Cygwin and Linux
* Eliot Moss (Tue, 02 Aug 2011 11:40:44 -0400) On 8/2/2011 8:24 AM, Sebastien Vauban wrote: Thorsten Kampe wrote: * Sebastien Vauban (Mon, 01 Aug 2011 08:46:52 +0200) My goal is to have just 1 alias that would work both under Win32 (Cygwin) and Ubuntu Why don't have simply put your alias definitions in if [[ $OSTYPE = cygwin ]]; then else? Because I really want one single definition which could work on every system I'm using. [...] The suggestion to use a few conditionals that look at the which OS you're on does not involve continued tweaking. Once you have the right file, it works everywhere (for which you have provided suitable cases) using the exact same file. It's just that different parts get executed on different platforms. It's not as elegant as achieving an arrangement with no conditionals, but it's practical and flexible. Couldn't have said it better. Cygwin is not Linux and you just can't ignore the differences. For example I have different aliases for netstat and ps on Linux and on Windows. They just don't have the same options. Thorsten -- 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: Portable shell code between Cygwin and Linux
* Sebastien Vauban (Mon, 01 Aug 2011 08:46:52 +0200) My goal is to have just 1 alias that would work both under Win32 (Cygwin) and Ubuntu Why don't have simply put your alias definitions in if [[ $OSTYPE = cygwin ]]; then else? Thorsten -- 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: /bin/date differs 10-12 minutes from Windows time
* Voelker, Bernhard (Fri, 29 Jul 2011 09:28:42 +0200) I'm experiencing windows time (which is right) being constantly 10-12 minutes behind GNU's time: $ cmd.exe /c time /t ; /bin/date 09:21 Fri Jul 29 09:33:22 WEDT 2011 I've seens this for several weeks on this PC now. Why is that? If it were 1 or 2 hours, I'd say it a TZ issue ... Probably http://www.cygwin.com/ml/cygwin/2011-03/msg00838.html Thorsten -- 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: Strange cygpath behavior.
* Andrey Repin (Thu, 23 Jun 2011 19:05:34 +0400) Try it yourself, as well as what Peter tried to suggest (or correct me). Neither is working straight. Just for example: $ cygpath -u DAEMON1\\anrdaemon\\.profile /c/DAEMON1/anrdaemon/.profile $ cygpath -u DAEMON1\\anrdaemon\\.profile //DAEMON1/anrdaemon/.profile Or, before we get lost [...] Before /you/ get lost in your own ramblings: read Corinna's response. In case she's too elaborate, the simple version is: /you/ have a problem and the problem is entirely on /your/ side. Thorsten -- 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: Strange cygpath behavior.
* Andrey Repin (Thu, 23 Jun 2011 22:06:05 +0400) To tell you, that was actually a good idea for me. I don't have an eternity to type /cygwhatever every time I want to address another drive. Ever heard of tab completion? So the idea to map cygdrive to / was actually very handy, thanks to this mailing list helping to finish and polish it. Right. So instead of a clean Cygwin root layout like... |---bin |---cygdrive | |---c | |---d | |---e | |---f | `---z |---dev |---etc |---home |---lib |---proc |---sbin |---tmp |---usr `---var ...you will now have something like... |---bin |---c |---d |---dev |---e |---etc |---f |---home |---lib |---proc |---sbin |---tmp |---usr |---var `---z Thorsten -- 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
Console Windows Host stopped working stopped working
Hello, starting with the snapshot from June, 14th, I cannot run screen inside a Windows Console (also Take Command) terminal anymore. It terminates with the message mentioned in the subject while screen and the shell continue running and consume excessive CPU. Mintty, rxvt, Console (console.sourceforge.net) and others work fine. Thorsten -- 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: TMP and TEMP get redefined, but I need the original values
* Roland Bluethgen (Sun, 12 Jun 2011 23:01:12 +0200) Thorsten Kampe wrote: If you want Linux TMP and Windows TMP point to the same directory then mount it in fstab or use $USERPROFILE/AppData/Local/Temp. I shortened the story a bit, it's really more complicated. The TMP definition in my case is user-crafted, not the default value which is normally set up when a user is created in the Windows system. TMP in Cygwin is user-crafted? TMP in Windows? TMP in your script? Also, this approach would defeat the intended purpose of the redefinition of TMP (avoiding permissions screwup). Or am I missing something here? If you're the only Cygwin user on your machine, this is a reasonable way. Otherwise not. Thorsten -- 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
screen terminating with latest snapshot
[screen is terminating] message from screen trying to run screen with snapshot from June, 12th. Fine with snapshots up to the previous one (June, 8th). -- 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: TMP and TEMP get redefined, but I need the original values
* Roland Bluethgen (Sun, 12 Jun 2011 19:55:56 +0200) I don't update my Cygwin installation regularly, but recently I did, and then a script of mine stopped working. Looking for the cause I found out that the Cygwin maintainers chose to redefine the TEMP and TMP environment variables in /etc/profile like this: unset TMP TEMP TMP=/tmp TEMP=/tmp [...] So, any ideas how this could be solved in a clean way? If you want Linux TMP and Windows TMP point to the same directory then mount it in fstab or use $USERPROFILE/AppData/Local/Temp. Thorsten -- 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: User name in screen caption not displaying with snapshot from 28th
* Andrew Schulman (Tue, 31 May 2011 10:20:16 -0400) I have these two lines in my .screenr: backtick 0 0 0 echo $LOGNAME caption always %{= c}[%0`@%H:%n%f %{w}%t %{r}loadavg: %l %=%{g}%Y-% m-%d %0c:%s]%{d} Screen always displayed this until cygwin1-20110520.dll as [thorsten@hombre:0$loadavg: 0.00 0.00 0.00 2011-05-30 17:20:46] Starting with cygwin1-20110528.dll it displays as: [@hombre:0$loadavg: 0.00 0.00 0.00 2011-05-30 17:20:46] $LOGNAME is nonetheless set Thorsten, can you confirm that the difference is only due to cygwin1.dll, and not to a different version of screen? The reason I ask is that I did just issue a minor update to screen, version 4.0.3-7. The build didn't change AFAIK - I just added some documentation - but I'd like to be sure. Fixed in June, 1st snapshot Thorsten -- 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: Don't use snapshots until I send all-clear
* Thorsten Kampe (Wed, 1 Jun 2011 00:29:11 +0200) * Edward Lam (Tue, 31 May 2011 10:58:51 -0400) On 31/05/2011 10:54 AM, Christopher Faylor wrote: Oh, and, btw: All clear! So cygwin1-20110531.dll.bz2 is good? It still has the screen issue I reported yesterday and that issue sounds to me suspiciously pipish. So I would say, no. Fixed in June, 1st snapshot Thorsten -- 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: Don't use snapshots until I send all-clear
* Edward Lam (Tue, 31 May 2011 10:58:51 -0400) On 31/05/2011 10:54 AM, Christopher Faylor wrote: Oh, and, btw: All clear! So cygwin1-20110531.dll.bz2 is good? It still has the screen issue I reported yesterday and that issue sounds to me suspiciously pipish. So I would say, no. Thorsten -- 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: User name in screen caption not displaying with snapshot from 28th
* Andrew Schulman (Tue, 31 May 2011 10:20:16 -0400) I have these two lines in my .screenr: backtick 0 0 0 echo $LOGNAME caption always %{= c}[%0`@%H:%n%f %{w}%t %{r}loadavg: %l %=%{g}%Y-% m-%d %0c:%s]%{d} Screen always displayed this until cygwin1-20110520.dll as [thorsten@hombre:0$loadavg: 0.00 0.00 0.00 2011-05-30 17:20:46] Starting with cygwin1-20110528.dll it displays as: [@hombre:0$loadavg: 0.00 0.00 0.00 2011-05-30 17:20:46] $LOGNAME is nonetheless set Thorsten, can you confirm that the difference is only due to cygwin1.dll, and not to a different version of screen? Yes, I can confirm that. It's sounds to me like it maybe connected to the pipe issue. backtick = The output of such a command is used for substitution of the %` string escape. Thorsten -- 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
User name in screen caption not displaying with snapshot from 28th
Hi, I have these two lines in my .screenr: backtick 0 0 0 echo $LOGNAME caption always %{= c}[%0`@%H:%n%f %{w}%t %{r}loadavg: %l %=%{g}%Y-% m-%d %0c:%s]%{d} Screen always displayed this until cygwin1-20110520.dll as [thorsten@hombre:0$loadavg: 0.00 0.00 0.00 2011-05-30 17:20:46] Starting with cygwin1-20110528.dll it displays as: [@hombre:0$loadavg: 0.00 0.00 0.00 2011-05-30 17:20:46] $LOGNAME is nonetheless set Thorsten -- 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: File Name Case Sensitivity Globbing! Was: file system name case insensitivity issue: Possible inclusion for the FAQ or User Manual?
* Lee D. Rothstein (Fri, 27 May 2011 11:53:16 -0400) Globbing is case sensitive while full command name invocation/full filename use is not. And, you may never have been confused by that, but I maintain it's very confusing. This has nothing to do with Cygwin. You are (still[1]) confusing Cygwin and your shell. You would hugely benefit from gaining some basic knowledge about the tools you've been using since 1979. Your transcript was done in a shell called bash. Globbing in bash is - by default - case sensitive. If you want to change that, read the man page and then set option nocaseglob (shopt -s nocaseglob). Thorsten [1] http://www.cygwin.com/ml/cygwin/2003-02/msg01005.html -- 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: File Name Case Sensitivity Globbing! Was: file system name case insensitivity issue: Possible inclusion for the FAQ or User Manual?
* Edward McGuire (Fri, 27 May 2011 16:36:06 -0500) The globbing is not where the confusion lies. This globbing: $ ls xwin* ls: cannot access xwin*: No such file or directory works as expected and did not confuse anybody. Lee begs to differ: Globbing is case sensitive [while ...]. And, you may never have been confused by that, but I maintain it's very confusing. Here's what confused the OP: $ ls xwin xwin $ ls xwIN xwIN Interesting that you know that this is what confused Lee - although he doesn't mention it all in his transcript (http://permalink.gmane.org/gmane.os.cygwin/126959). Thorsten -- 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: Editing protected files in Windows 7 (like the etc/hosts file)
* Avishai Geller (Mon, 16 May 2011 02:09:57 -0700) How do I edit my hosts file in cygwin on Windows 7? VI opens it in read-only mode. I have administrator permissions, but Windows 7 has that UAC feature which I think is preventing editing the file. You disable UAC or run the shell as Administrator. Thorsten -- 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: EXTERNAL: Virus that deletes everything under c:/cygwin?
* Christopher Faylor (Tue, 29 Mar 2011 11:35:33 -0400) On Tue, Mar 29, 2011 at 05:33:05PM +0200, Thorsten Kampe wrote: * Dave Korn (Tue, 29 Mar 2011 14:46:13 +0100) On 29/03/2011 10:12, Thorsten Kampe wrote: As for rm, it already does kind-of have safeguards against this, and that's what the -f option is for - it turns them off. As far as I know -f is already the default... If you're saying that -f is always active when you type rm then, no that is not true. I'm saying that ignore nonexistent files, never prompt is the default behaviour if you're running plain unaliased /usr/bin/rm.exe. Thorsten -- 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: EXTERNAL: Virus that deletes everything under c:/cygwin?
* Dave Korn (Wed, 30 Mar 2011 00:11:05 +0100) And I just learnt about the `--preserve-root' option, that I didn't even know about before. You mean --preserve-root do not remove `/' (default) (quoting the man page)? I wonder whether I will receive another If you're saying that -- preserve-root is always active when you type rm then, no that is not true response. Thorsten -- 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: Resetting time via time server doesn't affect cygwin 'date'
* Henry S. Thompson (Wed, 30 Mar 2011 14:10:37 +0100) I'm running 1.7.9-1 on my 64-bit Windows 7 laptop. I recently noticed that my box was 15 seconds adrift from my Linux desktop. After some minor hassles, I was able to use Clock/Date and Time/Internet Time/Change Settings/Update now to sync with a local ntp server, the same one my desktop is using. At this point the Windows clock on the laptop and my desktop were in sync, but 'date' from a bash window was _still_ 15 seconds out. Is this a pervasive problem (to test this yourself, just use the Windows UI to set your clock forward a minute, test the 'date' (it should be as per Windows clock), then use the above path to resync with a time server, and observe that 'date' is _not_ adjusted back), or particular to Windows 7/Cygwin 1.7.9? I just tested it: I set the time manually back five minutes via the the control panel Date and Time. The time change was reflected in a Cmd window (time /t) while a date in bash still showed the old time (+ 5min). Where does the bash date gets the time from?! Thorsten -- 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: EXTERNAL: Virus that deletes everything under c:/cygwin?
* Dante Allegria (Mon, 28 Mar 2011 10:07:32 -0700 (PDT)) No, turns out it was because someone committed this into the nightly build scripts: rm -rf $(DOES_NOT_EXIST)/* sigh Should cygwin's rm have some built-in safeguards for this? :) Sure, it does. It's called intelligent scripting and it includes setting errexit and nounset in bash or Z Shell. If you are scripting and not using those above, then you got exactly what you deserved. Thorsten -- 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: EXTERNAL: Virus that deletes everything under c:/cygwin?
* Dave Korn (Tue, 29 Mar 2011 14:46:13 +0100) On 29/03/2011 10:12, Thorsten Kampe wrote: As for rm, it already does kind-of have safeguards against this, and that's what the -f option is for - it turns them off. As far as I know -f is already the default... Thorsten -- 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: CYGWIN setup home directorys for users
* Dale Harrison (Wed, 23 Mar 2011 08:29:56 +) When creating a user inside CYGWIN using net user *username* /add, could someone tell me the command that I can type to set the home directory the user is to land into when the connect? Sorry, you got it completely wrong. You cannot add a user inside Cygwin. Net user is a Windows commmand and it allows you to set the home directory: http://technet.microsoft.com/en-us/library/cc771865 (WS.10).aspx When the user is added inside CYGWIN it duly gets added to the Windows users, It's actually the other way round. And you have to use mkpasswd to update Cygwin's passwed. but it changing the home directory in the Windows user properties doesn't affect where the user lands, currently I have to go into the /etc/passwd file It should (see /etc/profile) and edit the bit at the end of the user's config to cygdrive/c/wherever - is there a CYGWIN command line I can use at time of user creation to set the home directory? man mkpasswd Thorsten -- 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: Newbie confused about chmod
* hardya (Tue, 15 Feb 2011 05:48:58 -0800 (PST)) I am running cgwin (for omnet++, but that's a BTW) on Windows 7 (NTFS). I cannot chmode files I untarred into a folder and I cannot chmod a file I create in cgwin myself. I cannot [whatever] is a bit weak. Can you be a bit more specific? What do you do exactly and what do you get exactly? Thorsten -- 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: FW: Windows XP Headaches w/ Network Communication
* Gary Furash (Thu, 10 Feb 2011 16:02:25 -0700) I just had to downgrade my PC from Windows 7 to Windows XP. I reinstalled Cygwin (from scratch), rebased, etc. However, now, none of my cygwin network programs work except within my work's internal network (they used to work just fine with Windows 7). I tried turning off windows firewall (the only firewall on, I believe), and it didn't help. So Ping, NSlookup, ssmtp, etc., don't work. The utilities work themselves, e.g., if I do ping 127.0.0.1 it works, just can't see beyond my PC! All the errors relate to not getting to hosts. I'm sure there's a simple solution to this. Thanks! Neither nslookup nor ping are Cygwin utilities (unless you explicitly install them). So whatever problem you have, it's likely a Windows problem and not a Cygwin one. Thorsten -- 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: Where to find a reliable provider of CygwinX?
* Jørgen Steensgaard (Wed, 02 Feb 2011 18:34:15 +0100) I want to terminate this discussion, originating from my concern for consistency among distribution providers. Originally I reported on a successful installation of basic Cygwin, i.e. without X, followed by a failing attempt to install X. Of course I have been aware all the way that X did not come with the basic installation, and I have no idea of how to install X on top of it without using setup.exe by Cygwin. Still I am asked to specify how I obtained the packages for X, because they are not part of the basic installation. I see no reason to spend more time on this, the experience of which is like being part of an absurd comedy, to say it mildly. I feel confident that I can overcome the technical issues if I use the time on them instead. You were asked simple and specific questions. You didn't bother to answer these questions. That's not absurd but rather sad. Thorsten -- 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: Windows 2008 64-bit install
* Bryan Slatner (Tue, 1 Feb 2011 15:25:26 + (UTC)) Thorsten Kampe thorsten at thorstenkampe.de writes: Why don't you simply run (at least) one of the scripts manually and see if you see an error?! I ran them all, with the following results: bash-3.2# /etc/postinstall/000-cygwin-post-install.sh bash-3.2# /etc/postinstall/base-files-mketc.sh bash: /etc/postinstall/base-files-mketc.sh: Permission denied bash-3.2# /etc/postinstall/base-files-profile.sh bash: /etc/postinstall/base-files-profile.sh: Permission denied bash-3.2# /etc/postinstall/bash.sh bash-3.2# /etc/postinstall/coreutils.sh bash-3.2# /etc/postinstall/joe.sh bash-3.2# /etc/postinstall/man.sh bash-3.2# /etc/postinstall/terminfo.sh Segmentation fault (core dumped) bash-3.2# /etc/postinstall/terminfo0.sh bash-3.2# I'd just delete everything and do a fresh minimal installation. If this fails again, you can continue here. First check http://cygwin.com/faq/faq.using.html#faq.using.bloda Thorsten -- 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: Windows 2008 64-bit install
* Bryan Slatner (Tue, 1 Feb 2011 04:33:40 + (UTC)) I'm trying to install Cygwin on a stock Amazon EC2 Windows 2008 64-bit image. At the end of setup, I get a dialog that says Postinstall script errors with the following information in it: Package: Unknown package 000-cygwin-post-install.sh exit code -1073741819 base-files-mketc.sh exit code -1073741819 base-files-profile.sh exit code -1073741819 bash.sh exit code 35584 coreutils.sh exit code -1073741819 joe.sh exit code -1073741819 man.sh exit code -1073741819 terminfo.sh exit code 35584 terminfo0.sh exit code -1073741819 Why don't you simply run (at least) one of the scripts manually and see if you see an error?! Following some suggestions, I turned off DEP, but the problem persists. UAC is much more likely a problem. Thorsten -- 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: Invoking GUI programs over SSH
* David Antliff (Fri, 21 Jan 2011 08:47:02 +1300) On Thu, Jan 20, 2011 at 20:06, Thorsten Kampe wrote: * David Antliff (Thu, 20 Jan 2011 18:31:25 +1300) Actually there is one outstanding issue with this Hudson slaves over SSH issue - due to the inability for Cygwin's bash to run scripts with DOS line endings, we've had to use SHELLOPTS=igncr in our Cygwin.bat files, since it cannot be modified once bash is running. Convert the shell scripts to LF endings. Yes, that would work, but it's not quite that simple - git clones files in CRLF format, with the autocrlf option set. I don't see the connection to git. Shell scripts should have LF endings. Trying to find a workaround for that will just require you to create more and more workarounds and custom scripts which eventually will break. I did a search and found an old cygwin mailing list thread from 2007 that resulted in use the new version of Cygwin, which I believe I have covered as I'm using Cygwin 1.7.5. Sorry, but this seems to get a bit ridiculous: http://cygwin.com/ - Current Cygwin DLL version... I didn't say I was using the latest, merely that I'm using a newer version than the thread from 2007 concerned. In that case ignore my response. At least the this seems to get a bit ridiculous part. Thorsten -- 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: Invoking GUI programs over SSH
* David Antliff (Wed, 19 Jan 2011 11:59:39 +1300) Jeremy: thank you also - ProcessMonitor is very useful, and I'm using it to compare the behaviour of the working (local) and non-working (over SSH) instances. It's going to take me some time to sift though them, but there are big differences: Working: http://pastebin.com/W30xcT6P Non-working: http://pastebin.com/Xt3an4Qs The two logs diverge massively at line 12. The working instance appears to start scanning the filesystem, whereas the non-working instance starts going through registry keys. I'm not 100% convinced I'm comparing oranges with oranges here, but I'm hoping there's a clue somewhere. I'll be spending some time trying to deduce what the problem might be, but if anyone looks at those logs and can easily tell me, I'd really appreciate it! :) I don't think anyone will do that unless you provide the logs in native (PML) format. Thorsten -- 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: Invoking GUI programs over SSH
* David Antliff (Wed, 19 Jan 2011 23:27:36 +1300) On Wed, Jan 19, 2011 at 21:30, Thorsten Kampe wrote: I don't think anyone will do that unless you provide the logs in native (PML) format. Ok, I can do that - I posted them as CSV as I thought they'd be easier to read/diff and I wasn't sure if I should attach a file here. The amount of data in a PM log is much easier to handle via PM itself (although it doesn't do diffs). So should I attach them to my response or host them elsewhere and link to them? Are on-list attachments acceptable? Attachments are okay in general (see http://cygwin.com/problems.html). Despite the do not compress recommendation, I think compression would be advisible since PM log files tend to be huge. Thorsten -- 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: Invoking GUI programs over SSH
* David Antliff (Thu, 20 Jan 2011 18:31:25 +1300) On Thu, Jan 20, 2011 at 16:28, David Antliff wrote: Ok, an update - I've managed to solve this problem - the vendor informed me (indirectly) that the error I was seeing was due to the access of files in c:\lsc_env - turns out I hadn't ensured that the LSC_INI_PATH environment variable was set properly in the 'ssh' instance. Actually there is one outstanding issue with this Hudson slaves over SSH issue - due to the inability for Cygwin's bash to run scripts with DOS line endings, we've had to use SHELLOPTS=igncr in our Cygwin.bat files, since it cannot be modified once bash is running. Convert the shell scripts to LF endings. I did a search and found an old cygwin mailing list thread from 2007 that resulted in use the new version of Cygwin, which I believe I have covered as I'm using Cygwin 1.7.5. Sorry, but this seems to get a bit ridiculous: http://cygwin.com/ - Current Cygwin DLL version... Thorten -- 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: Invoking GUI programs over SSH
* David Antliff (Tue, 18 Jan 2011 13:13:22 +1300) On Tue, Jan 18, 2011 at 12:06, David Antliff wrote: On Tue, Jan 18, 2011 at 11:06, Jeremy Bopp wrote: I've also tried running the sshd service as the same user currently logged in [snip] people are discouraged from attempting it and then asking for help Along these lines, I was wondering if anyone knows how to run the Cygwin SSH daemon manually, rather than as a service? On Linux one can just run sshd from the command line, specifying an alternative port if necessary. But in Cygwin I can't find sshd.exe or anything similarly named. On Cygwin you do it the same way as you do it on Linux and the executable is in the same place as it is on Linux. Thorsten -- 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: ls Slow When Using /cygdrive/...
* Tim Daneliuk (Mon, 03 Jan 2011 12:57:18 -0600) I am having a problem with ls being VERY slow on at least in some circumstances. For example, ls c:/ is quick, but lc /cygdrive/c/ is very slow. strace, Process Monitor Thorsten -- 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: USB flash drive not showing up in Cygwin under Windows 7
* Jeffrey J. Kosowsky (Sun, 02 Jan 2011 00:32:33 -0500) My USB thumb drive does not show up in /cygdrive/ (or seemingly anywhere else for that matter). It does of course show up in the regular Windows 7 GUI in the Computer folder. This happens even if I open the cygwin window using Runas Administrator I am running Cygwin 1.7. Am I missing something obvious here? Is there something I need to do to tell Cygwin to look for a USB flash drive? Turn off UAC. Thorsten -- 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: uptime not reporting CPU usage on Windows 7 (Possibly only when running in VMWare)
* Andy Koppe (Fri, 31 Dec 2010 06:11:22 +) On 31 December 2010 02:49, Andrew DeFaria wrote: IMHO it's 100% better than just outputting 0's. Putting out 0's gives you no info at all! Bollocks. You'd be the first to complain that those stupid Cygwin devs don't even understand what an average is. The 0% tells you pretty clearly that that information is not available. Nonsense. It tells you that the machine is completely idling (which is even worse than giving no information at all). Thorsten -- 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: problem with sshd
* Vasya Pupkin (Wed, 22 Dec 2010 13:17:11 +0300) On Wed, Dec 22, 2010 at 12:41 PM, Thorsten Kampe thors...@thorstenkampe.de wrote: * Vasya Pupkin (Wed, 22 Dec 2010 09:26:29 +0300) I have a problem running cygwin sshd. I often end up with a lot of bash processes running and eating memory while there are no single active ssh session. It happens when either connection lost or user closes connection without logging out, sshd process dies but bash remains in memory forever. Is it possible to prevent this? In all real unix environments this never happen, bash always dies when parent sshd exits. That is (or was) an old problem as far as I remember. Search the mailing list archives to see if it is supposed to be fixed or a workaround is available. Maybe someone else here remembers more than me... I searched and found only one message describing this problem which was left without answer... http://search.gmane.org/?query=zombie%20ssh% 20bashgroup=gmane.os.cygwin Thorsten -- 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: problem with sshd
* Vasya Pupkin (Wed, 22 Dec 2010 09:26:29 +0300) I have a problem running cygwin sshd. I often end up with a lot of bash processes running and eating memory while there are no single active ssh session. It happens when either connection lost or user closes connection without logging out, sshd process dies but bash remains in memory forever. Is it possible to prevent this? In all real unix environments this never happen, bash always dies when parent sshd exits. That is (or was) an old problem as far as I remember. Search the mailing list archives to see if it is supposed to be fixed or a workaround is available. Maybe someone else here remembers more than me... Thorsten -- 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: Fwd: Suspicious EXE named [.exe in c:\cygwin\bin?
* Christopher Faylor (Sun, 12 Dec 2010 14:59:51 -0500) However, since you are reporting 1) a nonissue and 2) a known issue [...] Best of 2010. Thorsten -- 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: Cygwin 1.7.7, User Variables, User Profiles
* rudolf.be...@extern.sdv-it.de (Wed, 24 Nov 2010 09:13:14 +0100) I try to invoke the set command over ssh to a Cygwin 1.7.7 server and would expect that I get the variables I have defined in $HOME/user/.profile ... TEST=test export TEST That's equivalent to export TEST=test. But I dont see the variables I defined in $HOME/user/.profile. What can I do? Define them in the right place: $HOME/.profile instead of $HOME/user/.profile. And make sure there is no .bash_profile. Actually .bash_profile would be even better. And .bashrc would be even better better (since it's recommended to leave .bash_profile empty except a source statement for .bashrc (which is the default in Cygwin anyway)). Thorsten -- 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
Cannot suspend shell (Ctrl+Z)
[latest Cygwin DLL and all updates] Hi, I cannot suspend applications (like Midnight Commander) in a running shell (bash or Zsh) - nothing happens. Nevertheless when I run mc (for instance) in screen session then it works as expected: % mc ~ [1] + 5752 suspended mc % I vaguely remember that it used to be possible to suspend applications from a standard shell... Can anyone shed some light on this issue? Thorsten -- 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: Cannot suspend shell (Ctrl+Z)
* Christopher Faylor (Tue, 16 Nov 2010 10:59:26 -0500) On Tue, Nov 16, 2010 at 04:40:35PM +0100, Thorsten Kampe wrote: [latest Cygwin DLL and all updates] Hi, I cannot suspend applications (like Midnight Commander) in a running shell (bash or Zsh) - nothing happens. Nevertheless when I run mc (for instance) in screen session then it works as expected: % mc ~ [1] + 5752 suspended mc % I vaguely remember that it used to be possible to suspend applications from a standard shell... Can anyone shed some light on this issue? Try using mintty or rxvt. You can't suspend processes running in a console window (like CMD) unless they are waiting for input. You are right. But why does it work when I first start screen and then - say - Midnight Commander? Process Explorer doesn't show screen as parent process. Thorsten -- 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