Re: Problem with Deltacopy failed
21.03.24, 11:32 +0100, Mohamed AYARI via Cygwin: > 20 [main] rsync 7112 find_fast_cwd: WARNING: Couldn't compute FAST_CWD > pointer. Please report this problem to the public mailing list > cygwin@cygwin.com > > > > Could you please help me resolve this. https://cygwin.com/faq.html#faq.using.fixing-find_fast_cwd-warnings -- Regards mks -- 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: Cygwin.com domain not working
16.12.20, 10:41 +0100, Hamish McIntyre-Bhatty via Cygwin: > I'm sure you're probably already aware of this, but the cygwin.com > domain no longer seems to be working. https://cygwin.com/acronyms/#WJFFM -- Regards mks -- 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: Error
18.12.2017, 12:13 CET, Joe Nayo: > 1 [main] opengrads 2340 find_fast_cwd: WARNING: Couldn't compute FAST_CWD > pointer. Please report this problem to > the public mailing list cygwin@cygwin.com https://cygwin.com/faq.html#faq.using.fixing-find_fast_cwd-warnings -- Regards mks -- 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: uniq not working
Am 11.10.2016 um 12:43 schrieb Felipe Vieira: > the uniq program seems to be faulty on my cygwin: > [...] > /tmp » uniq -c u.txt > 1 1 > 1 2 > 1 3 > 1 4 > 1 5 > 1 1 > 1 2 > 1 3 > 1 6 > 1 7 > 1 8 > 1 > /tmp » > > As you can see it does not eliminate duplicate lines. > This file was created with vim. Same results if created with windows notepad. > What am I missing? >From man uniq: | Note: 'uniq' does not detect repeated lines unless they are | adjacent. You may want to sort the input first, or use 'sort -u' | without 'uniq'. -- Regards mks -- 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 archive
21.03.2012 08:29, Denis Excoffier: Please if someone can do something, i have to search for detect_bloda. In my archive, I find detect_bloda (literally) - in a thread Corinna started on Feb/27/2012 BLODA detection code in latest snapshot, - in a post of yours Mar/3/2012 Re: cygwin-1.7.10-1 fork - address space needed by ... already in use - in the post of yours I just replied to. -- Regards mks -- 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 archive
21.03.2012 09:52, Markus Schönhaber: - in a post of yours Mar/3/2012 Re: cygwin-1.7.10-1 fork - address It's Mar/5/2012. -- Regards mks -- 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 archive
21.03.2012 10:41, Denis Excoffier: On Wed, Mar 21, 2012 at 09:52:59AM +0100, Markus Schönhaber wrote: 21.03.2012 08:29, Denis Excoffier: In my archive, I find detect_bloda (literally) - in a thread Corinna started on Feb/27/2012 BLODA detection code in latest snapshot, Thank you, that was what i was looking for. Just FTR, Gmane - for example - provides a searchable interface to the Cygwin ML: http://dir.gmane.org/gmane.os.cygwin -- Regards mks -- 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 ssh-agent regression in 5.9p1-1: Could not open a connection to your authentication agent error
29.01.2012 10:21, Corinna Vinschen: This is supposed to be fixed in Cygwin 1.7.10. I just tried it and it worked for me. Please fetch a recent snapshot DLL from http://cygwin.com/snapshots/ and try again. Indeed. I installed the 20120123 snapshot and didn't see any problems with ssh-agent anymore. Thanks! -- Regards mks -- 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 ssh-agent regression in 5.9p1-1: Could not open a connection to your authentication agent error
28.01.2012 22:00, Philip Lowman: There appears to be a regression in the most recent OpenSSH cygwin package (5.9p1-1, built 1/18/2012) related to the ssh-agent program. I see that too. The ssh-add program is unable to add SSH keys because the ssh-agent program doesn't appear to be creating its socket file properly in /tmp. AFAIKT the socket file is created - but the ssh-agent process dies shortly after being started. 1. Install OpenSSH 5.9p1-1 in Cygwin (or upgrade to it) 2. Run the ssh-agent program spawning a bash shell $ ssh-agent bash This seems to happen only if ssh-agent is told to spawn another process. Running ssh-agent without arguments works fine for me. Platform: Windows 7 64-bit XP 32-bit here. Workarounds: Downgrade to OpenSSH_5.8p1 using Cygwin's setup.exe. Yep. -- Regards mks -- 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: permission denied problem
sowiso: That was the first thing I tried but didn't help. ls -l shows the permission as -rxwr-xr-x+, but I am still getting the permission I wonder if the + means that the file is in currently in use? No, it means that ACLs are set for the file. man getfacl Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: tcpdump package
mwade wrote: I am pretty new to cygwin. I am looking for a tcpdump package and from the cygwin package page (http://www.cygwin.com/packages/) there does not appear to be one. I don't know of a cygwin port of tcpdump. But you could take a look at this: http://www.winpcap.org/windump/ Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: wget and HTTP_PROXY question
Ronald Fischer wrote: I can't fetch anything from the web using wget (Connection timed out). My guess is that it has to do with the proxy settings, but: - my environment variable HTTP_PROXY is set, and Among the environment variables wget recognizes is http_proxy not HTTP_PROXY. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: ftp hangs
A A wrote: Here is a simple way to reproduce the problem: $ ftp -A mirror.rhsmith.umd.edu Anonymous login succeeded for [EMAIL PROTECTED] After this the ftp hangs forever. Windows' ftp.exe shows this behaviour when called from a Cygwin shell because it lacks knowledge of Cygwin's way of I/O. Make sure that you use Cygwin's ftp. What does which ftp show? Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: CVS pserver on cygwin
Sonie John Thomas wrote: I want to access cvs pserver running in cygwin through eclipse. Is there a tutorial on how to setup cvs pserver on cygwin? Has anybody got it working? I did that once, a long, long time ago. AFAIR there was nothing Cygwin-specific to be done. Following the Cederqvist was enough. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Space in Home Directory Path
G. Huang wrote: From: Markus Schönhaber [EMAIL PROTECTED] http://cygwin.com/acronyms/#PCYMTNQREAIYR Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Space in Home Directory Path
G. Huang wrote: So my question is: Is there a way to change the home directory on the XP machine to c:\cygwin\home\gang? Or alternatively, get around the space problem? http://cygwin.com/faq/faq.setup.html#faq.setup.home In /etc/passwd, set the the user home directory field to the desired value, ex. /cygdrive/c/home/gang. The workaround for the problem with spaces in paths is to not have spaces in paths - as the FAQ has already told you. One possible way to achieve this is to use the 8.3-style-version of the path. For example, the user home directory field in /etc/passwd for my main account is set to /cygdrive/c/DOKUME~1/mks/Home (i. e. pointing to C:\Dokumente und Einstellungen\mks\Home) and I have never had any problems with this setting. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Cygwin1.DLL soon to be Windows Vista only
Roberto Veiga wrote: You are joking, aren't you? No, cgf never jokes. Especially not when it's April 1st. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: xargs problem
Markus Hoenicka wrote: maybe I'm being dense, but xargs does not seem to do what it should: $ echo test1 test2|xargs -t /bin/echo test1 test2 test1 test2 I'd expect the output to read: /bin/echo test1 test1 /bin/echo test2 test2 What am I doing wrong? Your expectation is wrong. xargs will - by default - not start a seperate instance of the to-be-executed process for each of the arguments it reads from stdin, but instead it gathers some and feeds them to the process at once. You can limit the number or args each sub-process will be fed with -n or --max-args. I. e. echo test1 test2|xargs -t -n 1 should do what you expect. BTW: this is not Cygwin-specific. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: ld not found
Bill Ross wrote: Christopher Faylor wrote: Problem reports: http://cygwin.com/problems.html Lots of clues there, but nothing that obviously relates to my problem. E.g. searched archives for ld.exe, ld, and compile. Did you actually read the page cgf pointed you to - especially the parts which are for some reason formatted in bold face? http://cygwin.com/problems.html#cygcheck Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: bash shell globbing not working anymore
Andy Telford wrote: Has any experienced this? - ls works but ls * returns ls: *: No such file or directory - same if I just use the shell builtin echo * just returns * I experience this every time when I issue those commands with an empty directory as cwd. That's simply the way it's meant to be. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Xalan and path problem
Thomas Porschberg wrote: we use Xalan on our UNIX/LINUX machines and I want now to the same on Cygwin. I installed Xerces+Xalan(the windows binaries). In our UNIX scripts the call to Xalan is: Xalan -o $RESULTFILE $XMLFILE $XSLFILE where $RESULTFILE, $XMLFILE and $XSLFILE are specified as UNIX-paths. That doesn't work under Cygwin I had to write: Xalan -o `cygpath -w $RESULTFILE` ... Of course I could now write if $cywin ; then Xalan -o `cygpath -w $RESULTFILE` ... else Xalan -o $RESULTFILE $XMLFILE $XSLFILE fi but I don't want change the script. Is there another way to solve the problem ? You could create a script that cygpath-ifies the parameters and passes them to a call to the actual Xalan executable, name that script Xalan and put it somewhere into the PATH where it gets called instead of the actual Xalan binary. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: SSH: The authenticity of host XXX can't be established
Kai Schlichting wrote: I have some problems using the ssh.exe from ...\cygwin\bin\: Each time, i log in into my ssh-Server (Linux), i get the following output: C:\cygwin\binssh -i identity [EMAIL PROTECTED] Could not create directory '/home/_Kai_/.ssh'. The authenticity of host XXXmyIPXXX can't be established. RSA key fingerprint is XXXmyFingerprintXXX . Are you sure you want to continue connecting (yes/no)? yes Failed to add the host to the list of known hosts (/home/_Kai_/.ssh/known_hosts). Welcome to MySSHServer! MyLinuxServer Explanations: - identity is my Private Key File in ...\cygwin\bin\ - on my Windows Client, i'm logged in as _Kai_ - on the ssh-Server exists the directory /home/backup/.ssh/ Problem: What can I do that i have not to answer with 'yes' each time? You should ensure that ssh is able to create the directory /home/_Kai_/.ssh on the machine where you issue the ssh command. Which obviously means that /home/_Kai_/ has to exist. BTW: ~/.ssh (i. e. /home/_Kai_/.ssh in your case) is where the identity file belongs IMO. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: SSH: The authenticity of host XXX can't be established
Kai Schlichting wrote: I think, now it's all like you say, but same problems: RootUserName # ls -al /home/_Kai_/ What's this? total 12 drwxrwxrwx 3 _Kai_ users 4096 Aug 16 14:27 . drwxr-xr-x 9 root root 4096 Aug 11 23:38 .. drwxrwxrwx 2 root root 4096 Aug 16 14:27 .ssh Why is .ssh owned by root? Is this really your Cygwin machine? Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: SSH: The authenticity of host XXX can't be established
Kai Schlichting wrote: Markus Schönhaber schrieb: I think, now it's all like you say, but same problems: RootUserName # ls -al /home/_Kai_/ What's this? because my SSH is installed on an Eisfair-Server, my rootusername is eis. I wrote RootUserName so that you know, that i was logged on as root. The actual command line was eis # ls -al /home/_Kai_/ total 12 drwxrwxrwx 3 _Kai_ users 4096 Aug 16 14:27 . drwxr-xr-x 9 root root 4096 Aug 11 23:38 .. drwxrwxrwx 2 root root 4096 Aug 16 14:27 .ssh Why is .ssh owned by root? Is this really your Cygwin machine? I was logged on as root when i created /home/_Kai_/.ssh... The Windows machine with Cygwin and the Server with Linux/ Eisfair/ SSH are both my machines. Once again: ssh must be able to create /home/_Kai_/.ssh on the machine where you issue the ssh command, i. e. the Cygwin machine. Creating those files on the machine you want to connect to, won't help. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: SSH: The authenticity of host XXX can't be established
Kai Schlichting wrote: Markus Schönhaber schrieb: Once again: ssh must be able to create /home/_Kai_/.ssh on the machine where you issue the ssh command, i. e. the Cygwin machine. Creating those files on the machine you want to connect to, won't help. That means i must have on my Windows machine /home/_Kai_/.ssh? It means that the home directory that is configured (in Cygwin) for your user account should exist. ssh will create the .ssh directory there - if it is able to do so. How do i do that? mkdir /home/_Kai_ for example? Or you could change the entry for user _Kai_ in /etc/passwd so that the home directory points to something that already exists. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Escape Character
mattlucasv wrote: I am new to Cygwin and I am just trying to use the escape character example is echo \t\t Hello but this returns \t\t Hello and ignores the escape characters. I was looking for it to return Hello with a couple of TABS in front like it does on our True64 unix system. Is the escape character differant in Cygwin or am I missing something ??? any help would be great man echo would have shown you echo's -e option. Try echo -e \t\t Hello I doubt that that's a matter of whether you use Cygwin or not but a matter of whether you use the echo command from the GNU core utilities or not. On your True64 unix, you propably don't. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Escape Character
Markus Schönhaber wrote: I doubt that that's a matter of whether you use Cygwin or not but a matter of whether you use the echo command from the GNU core utilities or not. On your True64 unix, you propably don't. This statement isn't necessarily correct. I use bash and doing an echo something there won't call the executable from the coreutils but the bash builtin. But since both behave very similar wrt escape characters that doesn't matter too much, I guess. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cygwin copy problems usb 2.0
Christopher Faylor wrote: A few weeks ago there was a guy in libc-alpha mailing list complaining that glibc's API wasn't as rich and powerful as what is found on Windows. As far as I know he's still alive. You made my day! Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cygwin 1.5.20 and stalling cygstart
Krzysztof Duleba wrote: I've just upgraded to 1.5.20 to get gvim 7 running and one of my programs doesn't work anymore. I attach simple test case: if you compile foo.cpp and start it from a cygwin shell, it should run OK. However, if you start it from a windows shell / windows explorer / whatnot, you should see stalling cygstart. cygstart process won't exit even when you close notepad, you will have to kill it manually. WJFFM. I don't see any cygstart processes after running foo or after calling the perl script directly on the cmd-line. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: snapshots: first resort, or last resort?
Igor Peshansky wrote: On Mon, 26 Jun 2006, Linda Walsh wrote: If it were me, (and I know it's not, thank-you), I'd feel better about getting updated releases into user's hands as soon as reasonable. If I fix something, or change something, I wouldn't want to wait 6 months to release it, (ideally,) so if a change I make introduces an untested and unthought-of incompatibility I'm more likely to remember the changes that went into the code. Five-Six months later, on active code and the changes might as well have been made by someone else and I'm more likely to have to go in cold to figure out which change broke things for some isolated user test case. If there have been many changes, it's all the more difficult to find out which change introduced the problem (IMNSHO). I would take advantage of the Test release present in setup to give people time to check things, then rotate it into the Current slot, and the older one to Previous. I know other people have different working styles, but it helps to understand where they are coming from and their rationale for doing it the way they do it. Linda What is the difference between installing a test release of Cygwin and installing a snapshot of Cygwin (other than the mechanism by which you do it)? How would it help you if the current snapshot were made available as a release today? It would be as (un)stable as the snapshot it was packaged from. The Cygwin developers intentionally do not make snapshots installable via setup, because of exactly that mindset: releases are stable, snapshots aren't. If you got something via setup, you would feel you have the right to complain about it if something breaks and demand that it be fixed. If you install a snapshot, well, you were warned. You'd still complain (and we want you to), but you'll probably invest more effort in tracking down the problem and producing a simple testcase. Nevertheless I'd like to propose that the cygwin snapshots shouldn't merely be called snapshot in the future but stable snapshot. This might help to provide the cozy and warm feeling which seems to be so desperately needed. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
[OT] Sysinternals (was: Re: Multiple cygwin installs)
Alexander Herrmann wrote: On 3/27/06, Igor Peshansky [EMAIL PROTECTED] wrote: On Sun, 26 Mar 2006, Larry Hall (Cygwin) wrote: Brian Hawkins wrote: See the junction utility from www.sysinternal.com if you're interested in this. This link is broken(@ least for me) takes you to a popup netster.com site. Typo. Try http://sysinternals.com/ Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Permissions problem - odd setup
Andrew DeFaria wrote: Andrew DeFaria wrote: Andrew DeFaria wrote: Markus Schönhaber wrote: Don't know if this is of any help: you can set the SIDs for the user and the user's primary group on the Samba box with pdbedit ... -U SID -G SID ...Maybe it helps if you use the same SIDs your Windows Domain account has. OK, got the admin to do that command. Remapped the drive. Same problems. Any other ideas? It seems that this didn't work because we are using only smbpasswd and need to update to using tdbsam (http://swamp.chl.chalmers.se/samba/docs/man/Samba-HOWTO-Collection/passdb. html#pdbeditthing): Yes, should have mentioned that. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Permissions problem - odd setup
Andrew DeFaria wrote: Eric Blake wrote: I have a somewhat odd setup here and am having a permissions problem with my userid and authentication. In general I'm trying to have one home directory that is shared between Windows and Linux. On Windows I use Cygwin. Normally this involves mounting my Windows oriented home directory and proper generation of my domain userid in /etc/passwd. Here things are a bit different. My home directory here is on a Linux box running Samba. I login as domain\defaria on my Windows box. I have generated my /etc/password entry with mkpasswd -d -u defaria /etc/passwd. However the Linux box running Samba does not participate in a domain rather it is using a workgroup. I don't have access to a Samba mount point, so maybe my advice won't help much, but here goes anyways. The symptoms that I see are as follows: While I can create a file in my home directory I cannot edit it - access denied: $ cp opts.cfg opts.cfg.new cp: cannot create regular file `opts.cfg.new': Permission denied $ ls -l opts.cfg* -rw-rw-r-- 1 98 Feb 14 11:17 opts.cfg -rwxr--r-- 1 0 Feb 15 16:01 opts.cfg.new* You'll note that the uid and gid is not correct. First, have you run mkpasswd and mkgroup to create valid /etc/passwd and /etc/group files? Without a valid user database, cygwin gets lost when trying to check/display/modify permissions of an unknown user. http://cygwin.com/cygwin-ug-net/using-utils.html#mkpasswd has more details on running mkpasswd. I've run mkpasswd but the real question I believe is what domain should I run mkpasswd for? As I stated above I have run it for the Windows domain that I log into. However, again, my home directory is served by a Linux box using Samba but that link box does not participate in the Windows domain that I log into rather it just runs in it's own workgroup. Don't know if this is of any help: you can set the SIDs for the user and the user's primary group on the Samba box with pdbedit ... -U SID -G SID ... Maybe it helps if you use the same SIDs your Windows Domain account has. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to grant user rights with cygwin
Am Montag, 27. Juni 2005 08:06 schrieb Oliver Geisen: Hello, for some services to run under user security other than SYSTEM it is neccessary to give the user special windows rights. For now i only now some Windows-Tools (from ResourceKit, or Freeware) to do this. But, is there a cygwin-way for doing this ?! Example: I want to run sshd as user daemon. This user had to have the rights: - Increase quotas - Replace process level token - Logon as service edightrights.exe from the editrights package should be the tool you can use. Try editrights -hv for more info. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: IE5 settings in setup.exe
Am Freitag, 17. Juni 2005 17:32 schrieb Andrea M: I am having problems with the IE5 settings in the setup program (can't get a list of download sites). Does anybody know what user-agent cygwin uses? None. This is the request/response from my version of setup getting the server-list: -snip- GET http://sources.redhat.com/cygwin/mirrors.lst HTTP/1.0 Host: sources.redhat.com HTTP/1.0 200 OK Date: Fri, 17 Jun 2005 15:37:41 GMT Server: Apache/2.0.46 (Red Hat) Last-Modified: Thu, 16 Jun 2005 21:44:24 GMT ETag: 2384c3-1b75-c5d81e00 Accept-Ranges: bytes Content-Length: 7029 Content-Type: text/plain Age: 136 X-Cache: HIT from Saruman.schoenhaber.de X-Cache-Lookup: HIT from Saruman.schoenhaber.de:3128 Proxy-Connection: close # Do not edit - see warning in mirrors.html http://www.carfield.com.hk/mirror/sources.redhat.com/cygwin;www.carfield.com.hk;Asia;Hong Kong [...] -snap- Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to give commands to execute after (login)shell invoked
Am Freitag, 17. Juni 2005 17:50 schrieb Oliver Geisen: there is a neat trick to expand window's context menu (right-click) with commands. I would like to add something like Open BASH here... so if i right-click on an Folder in Explorer i can open a bash shell and it's already cd'ed into the path. Install the chere package. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: IE5 settings in setup.exe
Am Freitag, 17. Juni 2005 19:57 schrieb Igor Pechtchanski: Ugh, top-posting. Reformatted. On Fri, 17 Jun 2005, Andrea M wrote: On 6/17/05, Markus Schnhaber [EMAIL PROTECTED] wrote: http://cygwin.com/acronyms/#PCYMTNQREAIYR. Thanks. Am Freitag, 17. Juni 2005 17:32 schrieb Andrea M: I am having problems with the IE5 settings in the setup program (can't get a list of download sites). Does anybody know what user-agent cygwin uses? None. This is the request/response from my version of setup getting the server-list: -snip- GET http://sources.redhat.com/cygwin/mirrors.lst HTTP/1.0 Host: sources.redhat.com HTTP/1.0 200 OK Date: Fri, 17 Jun 2005 15:37:41 GMT Server: Apache/2.0.46 (Red Hat) Last-Modified: Thu, 16 Jun 2005 21:44:24 GMT ETag: 2384c3-1b75-c5d81e00 Accept-Ranges: bytes Content-Length: 7029 Content-Type: text/plain Age: 136 X-Cache: HIT from Saruman.schoenhaber.de X-Cache-Lookup: HIT from Saruman.schoenhaber.de:3128 Proxy-Connection: close # Do not edit - see warning in mirrors.html http://www.carfield.com.hk/mirror/sources.redhat.com/cygwin;www.carfiel d.com.hk;Asia;Hong Kong [...] -snap- Regards mks Any idea how I can make it send an user-agent? Otherwise it won't work. Thanks! AIUI, the above is when setup uses Direct Connection. When IE5 Settings is used, setup simply delegates to IE to do what it will -- including sending the User-agent header. It's been a while since I've looked at the relevant code, though, so I may be wrong. Oh, I didn't consider it might make a difference. The above snippet was captured with manual setting of Use HTTP/FTP Proxy:. On my machine with setup.exe 2.457.2.2 and Use IE5 Settings the following request is made: GET http://sources.redhat.com/cygwin/mirrors.lst HTTP/1.1 User-Agent: Cygwin Setup Host: sources.redhat.com Proxy-Connection: Keep-Alive Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Assembler problem while trying to integrate D iompiler in GCC suite
Am Dienstag, 7. Juni 2005 17:25 schrieb Gerrit P. Haase: Gerrit P. Haase wrote: [...] Sadly, neither can I help you nor am I able to provide something at least remotely useful. But I can provide something utterly useless (this mail) so you are not completely alone in this thread... Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: how to remove CYGWINsshd win2k service
Am Donnerstag, 31. März 2005 02:34 schrieb Markus Schönhaber: Am Donnerstag, 31. März 2005 01:39 schrieb Hunter Peress: while c:\cygwin was still there, i reinstalled cygwin to c:\cgywin3. the ssh service in services namely CYGWINsshd still points to the now deleted c:\cygwin\bin\cygrunsrv.exe so how can i remove the service? Use cygrunsrv: $ cygrunsrv --help Usage: cygrunsrv [OPTION]... Main options: Exactly one is required. -I, --install svc_name Installes a new service named svc_name. -R, --remove svc_name Removes a service named svc_name. -S, --start svc_nameStarts a service named svc_name. [...] Oh, well... xyz is gone - what should I use instead? Use xyz! I should practice reading. But nevertheless, cygrunsrv.exe from your new installation should work. If it does not, you can still use something like sc. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: how to remove CYGWINsshd win2k service
Am Donnerstag, 31. März 2005 01:39 schrieb Hunter Peress: while c:\cygwin was still there, i reinstalled cygwin to c:\cgywin3. the ssh service in services namely CYGWINsshd still points to the now deleted c:\cygwin\bin\cygrunsrv.exe so how can i remove the service? Use cygrunsrv: $ cygrunsrv --help Usage: cygrunsrv [OPTION]... Main options: Exactly one is required. -I, --install svc_name Installes a new service named svc_name. -R, --remove svc_name Removes a service named svc_name. -S, --start svc_nameStarts a service named svc_name. [...] Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Service not starting unless...
Larry Hall wrote: If you allow the service to interact with the desktop, the implication is that it wants to run something that would be visual on your desktop. It also has the disadvantage that the service will terminate when the desktop is closed (i.e. you log out), which is not usually what people expect from a service. Allowing a service to interact with the desktop doesn't necessarily mean that it will be terminated when when the user logs out. OTOH I don't understand what the Cygwin service is, the OP refers to. It might be the exception that really terminates on user log-off. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Searching the archives was: Stable and Unstable Install Trees
Christopher Faylor wrote: On Thu, Feb 10, 2005 at 01:35:32AM -0800, Brian Dessent wrote: the htdig search on cygwin.com was never very good anyway. That is true but someone is working on changing this, even as we speak. Since someone is working on it, I guess you have already made a descision. But nevertheless: I have found lucene doing a brilliant job. http://jakarta.apache.org/lucene Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: hyperthreading fix, try #1
Dave Korn wrote: I thought you meant CGF should be promoted to Sherriff! Oh no! He's much to mean for being promoted to Sherriff. Think of the children! But those gold stars are more then well deserved. Thanks cgf! Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Question on setup.exe
Jurzitza, Dieter wrote: Dear listmembers, when downloading new packages from the internet via setup.exe, every value is remembered - but the port of our proxy. Does anybody know how to tell setup that our proxy is 8080 and not 80 other than typing it manually every other time? Many thanks for your efforts, take care http://sources.redhat.com/ml/cygwin/2005-01/msg00049.html Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cygcrypt-0.dll infected
Igor Pechtchanski wrote: I'm half-tempted to suggest leaving the package as-is, just to force people to complain to their anti-virus provider. Unfortunately, all these complaints are more likely to go to this list, thus rivaling the traffic in the obscenity of cygwin thread (and we can't have that, can we?). Of course not! Think of the children! Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Issue in using xinetd service on windows
Sharma, Pallavi (GE Healthcare) wrote: The problem is not with killing the xinetd process. I can kill it by running /etc/rc.d/init.d/xinetd stop. Killing xinetd ist not the problem, but...? Now i am facing a new problem. telnet/ftp service is hanging. :-( xinetd process is running but telnet and ftp hangs. If I reboot the system, everything works fine. I guess this hang is related to the xinetd start/stop issue i am having. Any idea why telnet/ftp is hanging?? No. And since you didn't tell what exactly you mean when you say hanging and what exactly you did when this hanging occurred, I guess it will be very difficult for anybody to give an helpful answer. IMO you should check the logfiles, the system log and - most of all - you should read http://cygwin.com/problems.html If you provide the relevant info, maybe someone is able to provide a solution. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Issue in using xinetd service on windows
Sharma, Pallavi (GE Healthcare) wrote: I forgot to mention it but yes I am starting this service using following command : net start xinetd This service is visible on Windows service Interface but when I run command net start to list all the servcies, xinetd service is missing in the list. I can start this service by using command net start xinetd but to stop this service I cant use net stop xinetd as it gives error The Cygwin xinetd service is not started. That's the behaviour I'm experiencing since I'm using xinetd. Wild guess: Maybe after startup xinetd forks a new process which does the aktual work and the originally started process is terminated. Therefore the servicemanager is led to think that the service itself did terminate. As stated above: that is just a wild guess. If you're really want to know what's going on, you should ask someone who does know - not me. This is very strange problem. Any help will be appriciated. Is this really a problem? You can stop the service by doing /bin/kill -TERM PID of xinetd If xou installed xinetd with the '-pidfile ...' parameter you can do /bin/kill -TERM `cat path to the pid-file` Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: sed: altered results in bash and cmd
fergus wrote: To delete all lines beginning with a space in a text file, this command (a) seems correctly composed and (b) works: sed '/^ .*$/d' filename but if I use it in a cmd window, the result is that all lines _containing_ a space are deleted, not just those beginning with a space. In general, and assuming PATHs etc correctly set, should not Cygwin command lines work identically in bash and cmd windows? Is this a problem with sed, with (my) command line syntax above, or with my understanding of what should work when? The difference in behaviour you are seeing results from the difference in the way cmd and bash interpret command lines and pass the resulting arguments to the specified commands. Compare: C:\E:\cygwin\bin\echo.exe '/^ .*$/d' / .*$/d C:\ to: mks ~ $ /cygdrive/e/cygwin/bin/echo.exe '/^ .*$/d' /^ .*$/d mks ~ $ As you can see, the '^' isn't passed to echo.exe by cmd. I'm not really sure but I think cmd doesn't treat single quotes as quoting characters - at least not in the way bash does. If you use double quotes, it shout work in cmd: C:\E:\cygwin\bin\echo.exe /^ .*$/d /^ .*$/d C:\ BTW: '/^ /d' shoud be enough to achieve what you are trying to. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Getting latest version of cygwin1.dll
Darkfalz wrote: When I go to the main website, ALL I want to do is get the latest cygwin1.dll file. You SHOULD have a link to a zip containing it on the main page. But no, instead you offer your stupid installer, or you offer a page to browse packages, but what do the packages contain? TEXT LISTING OF FILES WHICH AREN'T EVEN THERE! This is intended. It acts as a protection against broken Shift-keys. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: nul
Mironov, Leonid {PBG} wrote: Once when I felt particulary stupid, I've added redirection to 'nul' instead of '/dev/null' to a program run from cygwin cron. Now I've got a file called 'nul' on NTFS disk and can do nothing about it neither with windows tools nor from cygwin shell. Not a big problem, but annoying. Any ideas on how to get rid of it? Assuming you created C:\some\path\nul using del \\.\C:\some\path\nul in the Windows console might help you to get rid of it. http://support.microsoft.com/default.aspx?scid=kb;en-us;315226 Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: 1.5.9-1: weird console I/O behaviour compiling with -mno-cygwin
Enzo Michelangeli wrote: Unfortunately, I have no MSVC++ compiler, so I can't see what happens compiling with the tools of the Evil Empire. Any idea? Get one: http://www.microsoft.com/downloads/details.aspx?FamilyId=272BE09D-40BB-49FD-9CB0-4BFA122FA91Bdisplaylang=en Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: procps Unknown HZ value question
Richard Duran wrote: Does anyone know what to do (what argument to pass) so that procps doesn't display the Unknown HZ value... error message? Disabeling hyperthreading or - in case you're on a real multiprocessor system - using the /NUMPROC=1 switch for booting up windows might have the desired effect. But I guess that's not really what you want. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: setup hangs during postinstall
Brian Ford wrote: Another weird thing I noticed in the msvcrt.dll properties: Created: Tuesday, May 13 2003 3:34:33 PM Modified: Saturday, July 15 2000 Huh? Quite a normal thing, when a file is copied. The creation date/time of the copy is set to the date/time the copy is performed, while the modification date/time is copied unaltered from the original file. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Windows Scripting and Perl
Look here: http://www.activestate.com/Products/ActivePerl/ Regards mks Paul Bezzam wrote: Hello, I have a question: Is it possible to integrate Perl into Windows Scripting(like VBScript)? I would really appreciate any pointers on this. Thanks in advance. Paul -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: mingw libs
Does using g++ instead of gcc help? Regards mks [EMAIL PROTECTED] wrote: Hi Igor, I added that -mno-cygwin to both compiler and linker and have started a build...should be about an hour or two before its donw. I didn't write the makefiles, but I have modified them to use GCC, so its really too complicated to post in its entirety...but the exact linker command is as follows: Bare in mind, I've tried several variations on these, so its not exactly the cleanest right now. I've been 'thrashing' it. The commands are on a separate line, but that's just how the build system works here. It does get fed into gcc correctly. * gcc -mno-cygwin -LC:\cygwin\lib\mingw -BC:\cygwin\lib\mingw #list the libraries -lstdc++ -lwsock32 -lmingw32 -g -o$(_Target) %foreach Link in $(LinkFiles) $(LinksPath)\$(Link) %end * Quoting Igor Pechtchanski [EMAIL PROTECTED]: On Thu, 9 Oct 2003 [EMAIL PROTECTED] wrote: Hi all, I'm trying to build an app using cygwin-gcc and the mingw package all provided by the standard cygwin install. This is a purely console app, whose only use beyond standard c++ is the conio library. I'm getting errors like: undefined refernce to operator new undefined refernce to operator delete .. I think I'm not linking in the appropriate libs. Does anyone know the standard libs to include for general c++ usage (-lstdc++ -lmingw32) and winsock (-lwsock32) usage. I just want to make sure I'm linking in everything. Laslty, I just want to make sure my general approach is correct. When compiled, I removed the standard include dirs, and only included the mingw ones. Thanks all, Yamin What is the exact command that you use to invoke gcc? Try compiling/linking normally, but pass a -mno-cygwin flag to gcc. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-'Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton This mail sent through www.mywaterloo.ca -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: sorry about the spam
http://www.dilbert.com/comics/dilbert/archive/dilbert-20030821.html Regards mks Christopher Faylor wrote: I just checked in a new version of the spam blocker which worked well in testing but died a horrible death in production. Sorry about the spam/viruses that came through. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to diagnose Cygwin / Windows shutdown problem
Igor Pechtchanski wrote: There is such a mechanism on Win2k. I don't think there is one on Win9x. This thread seems to indicate that there isn't one on WinXP, either, at least not for shutdown messages. Igor I don't see any difference in the behaviour on W2k and WinXP. As Richard stated on the other thread, clicking the window's close button on WinXP does end bash (or python) - logging off doesn't. On W2k the behaviour is the same (just tried that too). Regards mks On Wed, 23 Jul 2003, Andrew DeFaria wrote: Randall R Schulz wrote: Andrew, Cygwin apps don't have a Windows event handler do they? To tell you the truth... I don't know for sure. The two programming models (Win32 and POSIX) are fundamentally different, so based on my very limited understanding, it seems that Cygwin itself (code in Cygwin1.dll) would have to intercept these OS-generated events and translate them into POSIX signals (SIGUP, say). Makes sense to me! I would suspect that when one clicks on the close button in the window frame that generates a Windows event that is translated somehow to send a kill signal to the shell. If true then there is already a mechanism for Win Event - POSIX signal. Randall Schulz At 17:16 2003-07-23, Andrew DeFaria wrote: Randall R Schulz wrote: Cygwin apps don't know about and cannot respond to the system-generated messages that request that applications quit in preparation for the system to shut down or the user to log off. Cannot respond to? When a system-generated message that requests that applications quit in preparation for the systme to shut down or the user to log off why can Cygwin apps (in particular bash or other shell) simply do what it would have done if TMOUT was just triggered? TMOUT If set to a value greater than zero, TMOUT is treated as the default timeout for the read builtin. The select command termi- nates if input does not arrive after TMOUT seconds when input is coming from a terminal. In an interactive shell, the value is interpreted as the number of seconds to wait for input after issuing the primary prompt. Bash terminates after waiting for that number of seconds if input does not arrive. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
cygwin-1.5.0-1: Problem stat-ing big file
While trying if the new support for files larger than 2GB works, I created a file with a size of 4.53 GB (4,869,120,000 Bytes) using a simple write in python. No problems here. But when stat-ing the file with python's os.stat or by calling stat from C as done in the little program below, the size of the file gets reported as 574,152,704 Bytes. #include stdio.h #include sys/stat.h int main(int argc, char** argv) { struct stat s; stat(argv[1], s); printf(Size of file %s: %ld, argv[1], s.st_size); return 0; } What I also found interesting is the output of ls. While the size reported next to the file (big.bin) is wrong, the total seems reasonable: $ /bin/ls -l /cygdrive/c total 4755283 -rwxrwx---+ 1 Administ SYSTEM 0 Jun 19 17:43 AUTOEXEC.BAT -rwxrwx---+ 1 Administ SYSTEM 0 Jun 19 17:43 CONFIG.SYS drwxrwxr-x+ 9 Administ SYSTEM 0 Jul 9 09:15 Dokumente und Einstellungen -r-xr-x---+ 1 Administ SYSTEM 0 Jun 19 17:43 IO.SYS drwx--+ 6 mks Kein0 Jun 20 02:57 Inetpub -r-xr-x---+ 1 Administ SYSTEM 0 Jun 19 17:43 MSDOS.SYS -r-xr-x---+ 1 Administ SYSTEM 47580 Jun 19 17:56 NTDETECT.COM dr-xr-x---+ 29 Administ SYSTEM 0 Jul 9 23:28 Programme drwx--+ 3 mks Kein0 Jun 19 19:13 RECYCLER d---rwx---2 Administ SYSTEM 0 Jun 19 17:47 System Volume Information drwxrwx---+ 68 Administ SYSTEM 0 Jul 10 00:08 WINDOWS -rw-r--r--1 mks Kein 574152704 Jul 10 13:09 big.bin -rwxrwx---+ 1 Administ SYSTEM194 Jun 19 17:34 boot.ini -r-xr-x---+ 1 Administ SYSTEM 4952 Aug 23 2001 bootfont.bin -r-xr-x---+ 1 Administ SYSTEM 235296 Jun 19 17:56 ntldr Regards mks Cygwin Win95/NT Configuration Diagnostics Current System Time: Thu Jul 10 13:18:15 2003 Windows XP Professional Ver 5.1 Build 2600 Service Pack 1 Path: E:\cygwin\usr\local\bin E:\cygwin\bin E:\cygwin\bin c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem %JAVA_HOME%\bin d:\Extensions e:\Programme\Perl\bin E:\cygwin\usr\X11R6\bin . Output from E:\cygwin\bin\id.exe (nontsec) UID: 1004(mks) GID: 513(Kein) 513(Kein) Output from E:\cygwin\bin\id.exe (ntsec) UID: 1004(mks) GID: 513(Kein) 513(Kein) 544(Administratoren) 545(Benutzer) SysDir: C:\WINDOWS\System32 WinDir: C:\WINDOWS HOME = `c:\DOKUME~1\mks\Home' MAKE_MODE = `unix' PWD = `/cygdrive/c/DOKUME~1/mks/Home' USER = `mks' ALLUSERSPROFILE = `C:\Dokumente und Einstellungen\All Users' APPDATA = `C:\Dokumente und Einstellungen\mks\Anwendungsdaten' CLIENTNAME = `MKS-XP-1' COLORFGBG = `0;default;15' COLORTERM = `rxvt-xpm' COMMONPROGRAMFILES = `C:\Programme\Gemeinsame Dateien' COMPUTERNAME = `SAURON' COMSPEC = `C:\WINDOWS\system32\cmd.exe' CVS_RSH = `/bin/ssh' DISPLAY = `:0' HOMEDRIVE = `C:' HOMEPATH = `\Dokumente und Einstellungen\mks' HOSTNAME = `sauron' INCLUDE = `E:\Programme\Microsoft Visual Studio .NET 2003\SDK\v1.1\include\' JAVA_HOME = `E:\Programme\j2sdk1.4.2' LESSCHARSET = `latin1' LIB = `E:\Programme\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\' LOGONSERVER = `\\SAURON' MANPATH = `:/usr/ssl/man' MOZ_PLUGIN_PATH = `E:\Programme\mozilla.org\Plugins' NUMBER_OF_PROCESSORS = `1' OLDPWD = `/usr/bin' OS = `Windows_NT' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 6, GenuineIntel' PROCESSOR_LEVEL = `6' PROCESSOR_REVISION = `0806' PROGRAMFILES = `C:\Programme' PS1 = `\[\033]0;\w\007 [EMAIL PROTECTED] \[\033[33m\w\033[0m\] $ ' SESSIONNAME = `RDP-Tcp#3' SHLVL = `1' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINDOWS' TEMP = `c:\DOKUME~1\mks\LOKALE~1\Temp' TERM = `xterm' TMP = `c:\DOKUME~1\mks\LOKALE~1\Temp' USERDOMAIN = `SAURON' USERNAME = `mks' USERPROFILE = `C:\Dokumente und Einstellungen\mks' VS71COMNTOOLS = `E:\Programme\Microsoft Visual Studio .NET 2003\Common7\Tools\' WINDIR = `C:\WINDOWS' WINDOWID = `168047040' _ = `/usr/bin/cygcheck' ftp_proxy = `http://Saruman:3128' http_proxy = `http://Saruman:3128' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x0022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `E:\cygwin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `E:\cygwin/bin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `E:\cygwin/lib' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Re: cygwin-1.5.0-1: Problem stat-ing big file
Corinna Vinschen wrote: On Thu, Jul 10, 2003 at 01:26:34PM +0200, Markus Sch?nhaber wrote: While trying if the new support for files larger than 2GB works, I created a file with a size of 4.53 GB (4,869,120,000 Bytes) using a simple write in python. No problems here. But when stat-ing the file with python's os.stat or by calling stat from C as done in the little program below, the size of the file gets reported as 574,152,704 Bytes. The changes to 64 bit file access are not propagated automatically to existing applications. E.g. the current `ls' from the fileutils package is compiled with the old (small) stat structure which only has 32 bit off_t for the file size. If you want to actually use the new struct stat and off_t with 64 bit, you have to recompile the application. Sorry, but there's no way around that. Thanks for the quick reply, Corinna. I was playing around a bit with the new cygwin as this occurred to me and I just reported it. Could have come to the conclusion that it has to be this way by myself. In fact this is not bothering me much, since I - at the moment - have no need for being able to create and handle files that large. But it's good to know what had to be done if I had the need. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cygwin-1.5.0-1: Problem stat-ing big file
Corinna Vinschen wrote: On Thu, Jul 10, 2003 at 01:35:37PM +0200, Corinna Vinschen wrote: On Thu, Jul 10, 2003 at 01:26:34PM +0200, Markus Sch?nhaber wrote: While trying if the new support for files larger than 2GB works, I created a file with a size of 4.53 GB (4,869,120,000 Bytes) using a simple write in python. No problems here. But when stat-ing the file with python's os.stat or by calling stat from C as done in the little program below, the size of the file gets reported as 574,152,704 Bytes. The changes to 64 bit file access are not propagated automatically to existing applications. E.g. the current `ls' from the fileutils package is compiled with the old (small) stat structure which only has 32 bit off_t for the file size. If you want to actually use the new struct stat and off_t with 64 bit, you have to recompile the application. Sorry, but there's no way around that. ...and two more hints, just to clarify that a bit: - You must compile using the header files and libcygwin.a which has been released together with the DLL to get the correct results. Mixing old Cygwin headers with the new import lib or vice versa are sure candidates for segmentation fauls. - Since off_t is now 64 bit and the st_size member of struct stat is a off_t, your printf isn't correct: printf(Size of file %s: %lld, argv[1], s.st_size); %lld is necessary. %ld matches 32 bit types on Cygwin. Thanks again for clearing that up. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: 1.5.0-1 Working Great Here
Elfyn McBratney wrote: On Thu, 10 Jul 2003, Gary R Van Sickle wrote: XPPro, NTFS. Builds working GCC cross compiler and binutils just fine, which covers a lot of intermediate territory. Autoconf/Automake/Perl still work. I don't know if the tools thus built use 64-bit file APIs, since I don't have any source files exceeding 4GB ;-). And I've even been using the snapshots. We can't have that. No complaints. No bug reports. Only praise! What's wrong? ;-) Well, if you're insisting: I had to add a second l to my printf-Statement, otherwise it would produce the wrong output for stat.st_size. That's absolutely inacceptable! Regards mks PS: Really great work, guys! -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cygwin 1.5.0 coming - 64 bit file I/O and more
Christopher Faylor wrote: I'm about to release cygwin 1.5.0. We've bumped the version to 1.5.0 because of some major changes in functionality - cygwin now uses 64 bit file I/O by default. This was a substantial effort on the part of Corinna Vinschen who deserves major kudos for her work (which was entirely volunteered). Corinna deserves five gold stars for this work. It *really* was not an easy task. Anyway, expect a testing version of 1.5.0 soon. Just to whet your appetite a little, [...] You definitely did wet my appetite a lot. And I guess it is high time to say the big thank you I owe to the contributors to cygwin who made it invaluable to me. Thanks to all of you for your efforts and work. So, barring any problems, expect a test (aka Exp) version of the cygwin DLL soon. Since you are going to release a test version, I guess this test version is intended, well, for testing. So, if I am told what especially needs testing, maybe I can do a thing or two. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: g++ error
Peng Yu wrote: Hi, When I tried to compile this file by g++, I got a error. #include iostream int main(){ cout Hello World endl; } errors are: test.C: In function `int main()': test.C:3: `cout' undeclared (first use this function) test.C:3: (Each undeclared identifier is reported only once for each function it appears in.) test.C:3: `endl' undeclared (first use this function) Do I need to install some library? No, you simply have to respect C++ namespaces. Try std::cout ... std:endl; or alternatively #include iostream using namespace std; ... Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: ls question
[EMAIL PROTECTED] wrote: Hi, I'm working with a localized (german) Windows (XP) version and Cygwin 1.3.20-1 (in conjunction with rxvt). Doing the following: cd /cygdrive/c cd Profile cd Administrator ll | grep Start dr-xr-xr-x+ 3 Administ Kein0 1. Mar 12:00 Startmenü 'Startmenü' is now properly displayed, though performing 'ls -l' results in: [...] dr-xr-xr-x+ 2 Administ Kein 0 1. Mar 12:00 SendTo dr-xr-xr-x+ 3 Administ Kein 0 1. Mar 12:00 Startmen? drwxrwxrwx+ 6 Administ Kein 0 1. Mar 12:00 UserData [...] Try: ls --show-control-chars Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: setup.exe beta (testing needed - really!)
Robert Collins wrote: A new release of setup.exe is imminent. There are many changes, and to reduce problems, feedback from YOU, is needed. The new version is available from http://www.cygwin.com/setup-snapshots/setup-2.340.2.2.exe (binary) and http://www.cygwin.com/setup-snapshots/setup-2.340.2.2.tar.bz2 (source). Pending any regressions being discovered, this release will become the production release in ~1 weeks time. I have upgraded two XP SP1 machines and done a fresh install on a W2k box using the setup snapshot. All worked flawlessly. So I guess I can't be of much help regarding the occasional errors others have experienced. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: launching win apps inside Xfreee86?
Ajay Simha wrote: Is it techincally possible to: 1. have cygwin XFree86 window to be full sreen (meaning no boarder) XWin -fullscreen 2. have windows apps run inside the Xfree86 session? I don't know a way to. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] New release of setup.exe (2.249.2.10)
Pierre A. Humblet wrote: On Tue, Mar 18, 2003 at 07:42:01AM +0100, Markus Schönhaber wrote: Pierre A. Humblet wrote: On Tue, Mar 18, 2003 at 12:44:12AM +0100, Markus Schönhaber wrote: Same machine as last time (same machine as every time, James). I assume it's not the same as the very first time, when you wrote Most files seem to have no permission for others. No, it's been the same W2k box I did the testchown thing on, half an hour before. I meant the report in http://cygwin.com/ml/cygwin/2003-03/msg00988.html I know, that's why I said no. It's the same machine as in http://cygwin.com/ml/cygwin/2003-03/msg01223.html Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] New release of setup.exe (2.249.2.10)
Pierre A. Humblet wrote: On Mon, Mar 17, 2003 at 08:35:34AM +0100, Markus Schönhaber wrote: OK, I should be able to get that done. OK, thanks Markus. The results of this test will not be influenced by the flavour of the existing cygwin installation (who did it, what was installed etc.)? Yes, it will depend on who did it. The only data point I am interested in is what happens when a non privileged user answers Yes to the Run As administrator Windows pop up. Pierre I'm not quite sure whether this answers my question. To be able put a script into /etc/postinstall there has to exist a cygwin installation on the machine or /etc/postinstall wouldn't even be there to drop something in. I wondered if the way this previously existing cygwin installation was created had any influence on the outcome of the test. Anyway, here's what I did: W2k Server SP3, domain member, old cygwin moved out of the way, registry keys deleted, CYGWIN unset. - Download setup.exe from cygwin.com (version info on welcome screen says: 2.249.2.10), - start setup.exe as non-privileged domain user, - Install program as... box comes up, - use credentials of local admin, - select some packages, - setup completes without visible warning, - /etc/passwd and /etc/group contain all local users and groups but, as expected, no domain users / groups, - most files are owned by local admin group, group is set to users (also local). So, setup seems to have done it's job as good as can be expected when run by a user with local admin but no domain rights. - create /etc/postinstall/testchown.sh with the contents you posted, - chown it to 544:545, - chmod it to a+rwx, - start setup.exe as non-privileged domain user, - Install program as... box comes up, - use credentials of local admin, - leave package list as is, - setup says that nothing was to be installed, - in /etc: $ cat testchown uid=500(mks) gid=513(Kein) groups=513(Kein),544(Administratoren),545(Benutzer) (Admin account is renamed, as you see) $ ls -l testchown -rw-rw-rw-1 SYSTEM SYSTEM 79 Mar 17 22:58 testchown I hope this will help. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] New release of setup.exe (2.249.2.10)
Pierre A. Humblet wrote: Cool, setup handles ntsec very well everywhere you have tried. The only problem so far is that of a non-privileged domain user answering Yes to the Run As pop up. He won't be included in /etc/passwd. I don't see how we can fix that. Thanks again for your help, Markus. There is one more thing though: can you see what happens if the domain user answers No to the pop up and runs setup as himself? I am particularly interested by what ls -l will show. Same machine as last time (same machine as every time, James), previous setup deleted, registry keys deleted, CYGWIN still unset, same steps followed. Exception: setup.exe run under non-privileged domain user account, left the Install For setting as proposed to Just Me: - /etc/passwd contains all local users plus the domain user who ran setup, - /etc/group contains all local groups plus domain group 10513, mkgroup_l_d, - all files seem to have kdall (the domain user who ran setup) as owner and mkgroup_l_d as group. Since I'm not sure what exactly you are looking for, I have attached the ls -l output for /bin, /usr/bin and /etc, - testchown: $ ls -l testchown -rw-rw-rw-1 kdallmkgroup_ 106 Mar 18 00:34 testchown $ cat testchown uid=11170(kdall) gid=10513(mkgroup_l_d) groups=545(Benutzer),1027(TerminalServiceUser),10513(mkgroup_l_d) Regards mks total 23542 -rwxrwxrwx1 kdallmkgroup_67072 Dec 16 19:03 addftinfo.exe -rwxrwxrwx1 kdallmkgroup_ 8544 Dec 16 19:03 afmtodit -rwxrwxrwx1 kdallmkgroup_ 2381 Mar 10 06:26 apropos -rwxrwxrwx1 kdallmkgroup_13824 Nov 12 06:35 ascii.exe lrwxrwxrwx1 kdallmkgroup_ 19 Mar 18 00:09 awk.exe - gawk.exe -rwxrwxrwx1 kdallmkgroup_16384 Nov 12 06:35 banner.exe -rwxrwxrwx1 kdallmkgroup_23040 Jan 7 06:49 basename.exe -rwxrwxrwx1 kdallmkgroup_ 531968 Mar 13 10:29 bash.exe -rwxrwxrwx1 kdallmkgroup_ 7756 Mar 13 10:28 bashbug -rwxrwxrwx1 kdallmkgroup_77312 May 7 2002 bunzip2.exe -rwxrwxrwx1 kdallmkgroup_77312 May 7 2002 bzcat.exe lrwxrwxrwx1 kdallmkgroup_ 17 Mar 18 00:08 bzcmp - bzdiff -rwxrwxrwx1 kdallmkgroup_ 2105 May 7 2002 bzdiff lrwxrwxrwx1 kdallmkgroup_ 17 Mar 18 00:08 bzegrep - bzgrep lrwxrwxrwx1 kdallmkgroup_ 17 Mar 18 00:08 bzfgrep - bzgrep -rwxrwxrwx1 kdallmkgroup_ 1582 May 7 2002 bzgrep -rwxrwxrwx1 kdallmkgroup_77312 May 7 2002 bzip2.exe -rwxrwxrwx1 kdallmkgroup_ 8192 May 7 2002 bzip2recover.exe lrwxrwxrwx1 kdallmkgroup_ 17 Mar 18 00:08 bzless - bzmore -rwxrwxrwx1 kdallmkgroup_ 1259 May 7 2002 bzmore -rwxrwxrwx1 kdallmkgroup_ 3642 Feb 19 18:42 c_rehash -rwxrwxrwx1 kdallmkgroup_20480 Nov 12 06:35 cal.exe lrwxrwxrwx1 kdallmkgroup_ 18 Mar 18 00:10 captoinfo.exe - tic.exe -rwxrwxrwx1 kdallmkgroup_17408 Feb 20 2002 cat.exe -rwxrwxrwx1 kdallmkgroup_30720 Jun 15 2001 chgrp.exe -rwxrwxrwx1 kdallmkgroup_30208 Jun 15 2001 chmod.exe -rwxrwxrwx1 kdallmkgroup_32256 Jun 15 2001 chown.exe -rwxrwxrwx1 kdallmkgroup_23040 Jan 7 06:49 chroot.exe -rwxrwxrwx1 kdallmkgroup_22016 Feb 20 2002 cksum.exe -rwxrwxrwx1 kdallmkgroup_ 3072 Jan 9 2002 clearn.exe -rwxrwxrwx1 kdallmkgroup_18432 May 17 2002 cmp.exe -rwxrwxrwx1 kdallmkgroup_17408 Nov 12 06:35 col.exe -rwxrwxrwx1 kdallmkgroup_12288 Nov 12 06:35 colcrt.exe -rwxrwxrwx1 kdallmkgroup_11264 Nov 12 06:35 colrm.exe -rwxrwxrwx1 kdallmkgroup_17408 Nov 12 06:35 column.exe -rwxrwxrwx1 kdallmkgroup_15872 Feb 20 2002 comm.exe -rwxrwxrwx1 kdallmkgroup_17408 Nov 12 06:35 conv.exe -rwxrwxrwx1 kdallmkgroup_ 6656 Feb 20 2002 conv2gdbm.exe -rwxrwxrwx1 kdallmkgroup_77312 Jun 15 2001 cp.exe -rwxrwxrwx1 kdallmkgroup_55808 Feb 20 2002 csplit.exe -rwxrwxrwx1 kdallmkgroup_ 2253 Nov 19 19:46 curl-config -rwxrwxrwx1 kdallmkgroup_ 128000 Nov 19 19:46 curl.exe -rwxrwxrwx1 kdallmkgroup_18944 Feb 20 2002 cut.exe -rwxrwxrwx1 kdallmkgroup_58880 May 7 2002 cygbz2-1.dll -rwxrwxrwx1 kdallmkgroup_39936 Mar 12 06:26 cygcheck.exe -rwxrwxrwx1 kdallmkgroup_ 867328 Feb 19 18:42 cygcrypto-0.9.7.dll -rwxrwxrwx1 kdallmkgroup_ 825244 Feb 19 19:15 cygcrypto.dll -rwxrwxrwx1 kdallmkgroup_ 504350 Nov 19 19:46 cygcurl-2.dll -rwxrwxrwx1 kdallmkgroup_ 138752 Oct 17 19:09 cygexpat-0.dll -rwxrwxrwx1 kdallmkgroup_51200 Mar 17 2002 cygexslt-0.dll -rwxrwxrwx1 kdallmkgroup_46080 Apr 25 2001 cygform5.dll -rwxrwxrwx1 kdallmkgroup_35328 Jan 9 2002 cygform6.dll -rwxrwxrwx1 kdallmkgroup_78334 Mar 9 21:59 cygform7.dll -rwxrwxrwx1 kdallmkgroup_18944
Re: [ANNOUNCEMENT] New release of setup.exe (2.249.2.10)
Pierre A. Humblet wrote: I recall another problem that somebody had reported after answering yes. The chown command in a postinstall script had no effect. That would mean that at, at least at that site, the program was lacking the Restore privilege. To test if this is a prevalent problem, a simple test is to put a testchown.sh script in /etc/postinstall . setup will then run it and wecan see if the command worked. I'll check that out. But you'll have to explain that to me in clear and simple words, that even I am able to understand what I am supposed to do. Very simple. Put the text below in /etc/postinstall/testchown.sh, then run setup as an ordinary user (with Run As). After running, there should by a file /etc/testchown, containing info about user group membership (can be useful). Check if it is owned by SYSTEM or not. testchown.sh will be renamed to testchown.sh.done, so you need to undo the renaming if you try multiple times. Again the purpose of the test is to understand what users face. Pierre #! /bin/sh export CYGWIN=ntsec rm -f /etc/testchown id /etc/testchown touch /etc/testchown chown 18:18 /etc/testchown OK, I should be able to get that done. The results of this test will not be influenced by the flavour of the existing cygwin installation (who did it, what was installed etc.)? Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] New release of setup.exe (2.249.2.10)
Pierre A. Humblet wrote: Markus Schönhaber wrote: Pierre A. Humblet wrote: Markus Schönhaber wrote: I just started setup under a non-privileged account and XP's mechanism to show the Run as Administrator dialog when starting a program called setup.exe or install.exe kicked in. Maybe this is what you meant? If so - it worked for me. Yes, that's it. You seem to be very familiar with it. Where is it documented? Is it language dependent? No, I'm not too familiar with it. I just know that it has been there when I expected it to be. Have quickly looked into the MSDN Lib and found nothing. So getting the exact specification will take some research. I have done some more research now but it seems the exact specification is buried somewhere where at least I can't find it. Nevertheless I have found some potential reasons for the Install Program as other User dialog not appearing. In the W2k Group Policy Reference there are two pages related to this: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gp/337.asp describes how to turn off this feature using group policy, while http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gp/338.asp explains how to enable it even for network shares. There is (as always?) a registry entry related to the Group Policy: http://www.tburke.net/info/regentry/GPRef.htm#93546 (should check for Microsoft's documentation regarding this point - but I beleive him) There is also a knowledge base article with the same info: http://support.microsoft.com/?kbid=310360 Just loosely related but also interesting: http://support.microsoft.com/?kbid=314855 This clearly doesn't answer your questions where this feature is documented and whether it is language dependent but it hints at two more spots to look at when it's not working: - it might be turned off by Group Policy or the corresponding registry value, - setup.exe might reside on a network share meaning that the Install... dialog won't show up by default (could verify that behaviour on my machine). Here are some unproven opinions of mine (beware! yet to be verified): - Since setup.exe triggered this mechanism on a German windows, I doubt that this feautre is language-dependent. - To work properly, I think this feature relies on the secondary locon service (Run As service in W2k?). So if the dialog doesn't appear on some machine - even though the user has *not* at least power user rights - the first thing I'd check is wether the secondary logon service is running. - As mentioned above, I seem to remember that the dialog will not appear if you are power user or administrator (to me only the latter was obvious). The main question is: what's the group of the files (Users or Administrators)? If it's Administrators and Everyone does not have access, then most normal users probably don't have rx access. The Group is Users. Seems OK to me. OK, thanks for the information, Markus. So far so good. I recall another problem that somebody had reported after answering yes. The chown command in a postinstall script had no effect. That would mean that at, at least at that site, the program was lacking the Restore privilege. To test if this is a prevalent problem, a simple test is to put a testchown.sh script in /etc/postinstall . setup will then run it and wecan see if the command worked. I'll check that out. But you'll have to explain that to me in clear and simple words, that even I am able to understand what I am supposed to do. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] New release of setup.exe (2.249.2.10)
Pierre A. Humblet wrote: Markus Schönhaber wrote: I just started setup under a non-privileged account and XP's mechanism to show the Run as Administrator dialog when starting a program called setup.exe or install.exe kicked in. Maybe this is what you meant? If so - it worked for me. Yes, that's it. You seem to be very familiar with it. Where is it documented? Is it language dependent? No, I'm not too familiar with it. I just know that it has been there when I expected it to be. Have quickly looked into the MSDN Lib and found nothing. So getting the exact specification will take some research. Here are some unproven opinions of mine (beware! yet to be verified): - Since setup.exe triggered this mechanism on a German windows, I doubt that this feautre is language-dependent. - To work properly, I think this feature relies on the secondary locon service (Run As service in W2k?). So if the dialog doesn't appear on some machine - even though the user has *not* at least power user rights - the first thing I'd check is wether the secondary logon service is running. - As mentioned above, I seem to remember that the dialog will not appear if you are power user or administrator (to me only the latter was obvious). The main question is: what's the group of the files (Users or Administrators)? If it's Administrators and Everyone does not have access, then most normal users probably don't have rx access. The Group is Users. Seems OK to me. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] New release of setup.exe (2.249.2.10)
Pierre A. Humblet wrote: Here is another point of concern: assume a non privileged domain user runs setup and answers yes to the Run as Administrator dialog. It is likely that no entry will be made for the domain user in /etc/passwd To verify that it will be necessary to rename /etc/passwd before running setup. Thanks for trying when you have a chance. Well, the account that is proposed by default by the Run As dialog ist the local Administrator. Running under that account setup will alomost certainly fail to create the domain relevant information in /etc/passwd and /etc/group. But I will try and verify that next week. OTOH: I wouldn't worry too much about that. Put that in the FAQ. This should make things clear to the domain user who does an installation with local administrative rights. Any domain administrator logged on under a restricted account and therefore using the Run As feature knows that it would be a gould idea to switch to his domain admin account when doing things where domain access is relevant or he shouldn't have been made domain administrator in the first place. Pierre P.S.: in my previous e-mail: normal users probably don't have rx access. ^^ seem to I think this time I got the point at first try ;-) Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] New release of setup.exe (2.249.2.10)
Pierre A. Humblet wrote: On Thu, Mar 13, 2003 at 11:45:58PM +0100, Markus Schönhaber wrote: Thanks a lot for the report, Markus. You're welcome. Guess, your reply reached me and not the list because I forgot to set the Reply-To: field correctly. Sorry. Did a fresh install at my XP-Prof box at home - moving the directories and registry keys out of th way beforehand. I just now realize, I forgot to remove the CYGWIN environment variable. Don't know if this has any influence on the installation process. Only possibly in postinstall scripts, if they do not set it. Seems to me that almost everything has worked fine (haven't intensively tested though). Just, when the postinstall script ran, I was able to read a message saying that the domain controller wasn't found. Seems to me, this message came from mkpasswd (is it called with the -d param in postinstall?). Sorry about that, see http://cygwin.com/ml/cygwin/2003-03/msg00890.html Your mirror seems to be updated slowly. No problem. There are some more boxes waiting to get updated (domain members / standalone workstations). I'll do that next week. Propably then my mirror will carry the most recent files. Read/execute permission was set for owner and group (Users) for all files in /bin. So i guess the problem of bash not finding some executables when logged in with other credentials should be gone now. Most files seem to have no permission for others. Great. Note that setup.exe respects the inherited access rights definedon your system (where Everyone apparently has no access). Only the *display* has been improved. Exactly: No ACE for Everyone. Thanks for clearing that up. Since I did the installation logged in under an administrator account there wasn't any need for setup to ask wether it should run as Administrator - and it didn't ask. Too bad :( This behavior has only been reported a few times, I'd like to understand it! The way setup behaved is exactly the way I expected it to and the way I would consider right. But you seem to consider this a problem. Obviously I did miss the point here - maybe we are talking about different things. It's not about the Select Root Install Directory dialog where you can select to install for All Users or Just Me, is it? I just started setup under a non-privileged account and XP's mechanism to show the Run as Administrator dialog when starting a program called setup.exe or install.exe kicked in. Maybe this is what you meant? If so - it worked for me. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Terminal output from ssh much slower than putty
Erik Vigmostad wrote: Is there some way to speedup the output to my terminal? I would like to use cygwin for ssh'g to various servers, but it is so much slower that using putty that I can't. I found that Windows XP's Clear Type font smoothing algorithm makes rxvt virtually unusable on my machine at work. Chaning the AA setting to Standard made me happy again. But that may be a very special case, since this machine is a dual proc dual screen system with a TNT2 and a Voodoo3 graphics card - doesn't make it really easy for windows I think. OTOH: on my machine at home - single proc, single GF card - I am quite happy with Clear Type and the performance of rxvt. I sure don't know if you're in a similar situation as I am at work but if you're using XP and Clear Type it's at least worth a try switching it off / to Standard. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Cygwin crashes on .Net Server 2003 with Terminal Services enabled
Christoph Hense wrote: I try to use cygwin on a .Net Server 2003 RC2 with Terminal Services enabled. However none of the cygwin tools work. All of the commands like ls, ps, pwd just return tons of error messages. If I deinstall the Terminal Services cygwin runs o.k. I am also able to run cygwin on a Windows 2000 Server with Terminal Services enabled. I uses Cygwin 1.3.20-1. For instance if I run pwd on a command line I get: 27308584 [unknown (0x878)] ? 2164 handle_exceptions: Error while dumping state (probably corrupted stack) 27312569 (same message repeating over and over with different numbers at the beginning). Does anyone have any idea? cygwin works like a charm on my .NET Standard Server 2003 RC2 with remote desktop enabled. I have not enabled the real terminal services though, since I don't run the machine as an application server, and with remote desktop I can have (at least) two concurrent RDP sessions - which is enough for my needs. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: remapping Cygwin 'bash' readline functions to PC keys
Lee D. Rothstein wrote: John, thanks for the C-V heads up! Others had suggested, variations of 'cat foo' and 'od -c'. (The former I got to work, the latter remains a mystery.) Your solution, besides being the most straight-forward, is also a great tool to have around. Apparently, it's a feature of Cygwin, or 'bash', since it doesn't work in a naked 'cmd.exe' window. I'll be sure to add it to my documentation. Unfortunately the key combos I'm trying to map to are: ^-- and ^-- (control- and the right and left arrow keys). It turns out that the character string outputs for both the: * naked key * shift - and the naked key * control- and the naked key are all the same. 'od -c' remains a mystery to me too - I guess I'll understand how that command works sometime later this century. But since I too am strongly interested in putting the Ctrl-Arrow keys into buisiness (as previos-word, next-word), I tried the Ctrl-V trick. It worked - thanks to John from me too. This is what I got: plain left: ^[[D shift-left: ^[[d ctrl-left: ^[Od (it's a capital O contained in there - not the number zero) So I added these lines to my .inputrc to get the wordwise movement using Ctrl-arrow: \eOd: backward-word \eOc: forward-word All the way long I have been talking about rxvt, of course. Regards mks Actually, I no longer consider these to be KIDs; these are the character string graphemic outputs of hitting the key. I'll continue to reserve KIDs for when one represents these [and the key isomorphisms] with '/e...', 'C-...', etc. notation. Apparently (?), the only way to discriminate among these three alternatives is with Scan Codes. Apparently, all the -x-ish stuff I've used (Microemacs, Thompson shell command line editing) that can discriminate among the three alternatives all use Scan Codes (?). - Any way to map to Scan Codes to 'bash' 'readline' functions under Cygwin? + Or to key names like: 'CTRL-left-arrow', 'CTRL-HOME' - Any interest among Cygwin developers in adding this? At 2003-02-19 08:02 AM -0800, John Mapole wrote: ... You can build your own KID table. Once at the cygwin prompt you can type C-V, that's control-V, followed by the key. On my machine, if I type C-VINSERT, I see ^[[2~. This is the same as \e[2~. Why these mapping are like this relates to how windows maps them and then how cygwin maps them. Something I am now very clear on. Hope this helps some. John Mapoles --- Lee D. Rothstein [EMAIL PROTECTED] wrote: ... Q1 -- When you remap a 'bash' Edit Mode function in .inputrc, it looks like this: \e[3~: delete-char # DEL key The entity in double quotes (\e[3~), I'm calling the key ID (KID). In the above '.inputrc' declaration, the function 'delete-char' being remapped from its default key assignment to the KID -- \e[3~ -- the DEL key. What are the KIDs of the following IBM PC keys (specified below with facsimiles of the key caps contained in angle brackets -- '...')? Cursor control key pad -- HOME END left-arrow right-arrow PAGE_UP PAGE_DOWN INSERT Numeric pad --- - + ENTER / I should have included in the above lists, all variations of the above with the control, alt and shift keys. In general, I'd like a table that maps the KIDs for all 104 keys on the keyboard I use. Or, better still, is there a way to use scan codes? (Incidentally, what makes finding a table of these KIDs so difficult is the failure of the documentation to assign this concept a unique, or even a consistent word.) Q2 -- Is there a way to make the INSERT key a toggle between the insert and overwrite modes of 'bash' edit mode? I used to have these figured out for 'Microemacs', but that was half a lifetime ago, for me, Microemacs supported scan codes, if I remember correctly. -- Lee D. Rothstein -- [EMAIL PROTECTED] VeriTech -- 603-424-2900 7 Merry Meeting Drive Merrimack, NH 03054-2934 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: remapping Cygwin 'bash' readline functions to PC keys
Randall R Schulz wrote: Hi, Jeez, guys, what's the problem: % od -c [ Press F1 through F12 followed by two CTRL-Ds: ] 000 033 [ [ A 033 [ [ B 033 [ [ C 033 [ [ D 020 033 [ [ E 033 [ 1 7 ~ 033 [ 1 8 ~ 033 [ 040 1 9 ~ 033 [ 2 0 ~ 033 [ 2 1 ~ 033 [ 2 060 3 ~ 033 [ 2 4 ~ 067 % od -c [ Press Insert, Home, Page Up, Delete, End, Page Down followed by two CTRL-Ds: ] 000 033 [ 2 ~ 033 [ 1 ~ 033 [ 5 ~ 033 [ 3 ~ 020 033 [ 4 ~ 033 [ 6 ~ 030 Randall Schulz Ah, I see. Thanks for lighting the way, Randall. I guess, I've got it at last. Regards mks Hasn't grown too much older in the meantime - this century, that is... At 03:42 2003-02-21, Markus Schönhaber wrote: 'od -c' remains a mystery to me too - I guess I'll understand how that command works sometime later this century. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: ssh port forwarding
Matt wrote: I am trying to forward TCP ports over ssh. I have had this up and running on three different machines. Now they all report the same error: Matt@aptivaxp ~ $ ssh 5903:localhost:5900 [EMAIL PROTECTED] ssh: 5903:localhost:5900: no address associated with hostname. Try -L: $ ssh -L 5903:localhost:5900 [EMAIL PROTECTED] Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: ssh port forwarding
Markus Schönhaber wrote: Matt wrote: I am trying to forward TCP ports over ssh. I have had this up and running on three different machines. Now they all report the same error: Matt@aptivaxp ~ $ ssh 5903:localhost:5900 [EMAIL PROTECTED] ssh: 5903:localhost:5900: no address associated with hostname. Try -L: $ ssh -L 5903:localhost:5900 [EMAIL PROTECTED] or -R might be the right choice - depending on the direction you want the port to be forwarded. Regards mks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/