RE: changing bash window title

2003-06-17 Thread DePriest, Jason R.
The cygwin FAQ has a section on the CYGWIN environment variable:
http://cygwin.com/cygwin-ug-net/using-cygwinenv.html
It includes the (no)strip_title and (no)title options.

You could also try the suggestions from section 6.3 of the Bash Prompt
HOWTO:
http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/xterm-title-bar-manipulation
s.html

> -Original Message-
> From: Sanjay Goel [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 17, 2003 3:09 AM
> To: [EMAIL PROTECTED]
> Subject: changing bash window title
> 
> 
> Hi,
> the bash window has title Cygwin by default .. whenever I do 
> a telnet or
> lynx .. it changes the title .. how do I restore it again or 
> change it to
> something custom ..
> TIA
> Sanjay
> 
> 
> 
> 
> --
> 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: SSH users cannot see SMB mounted network drives

2003-06-17 Thread DePriest, Jason R.
First of all, you might want to check out the excellent cygwin + ssh
mailing list here:
List Information: http://tech.erdelynet.com/mailman/listinfo/ssh-l/
List Archives:http://archive.erdelynet.com/ssh-l/

This issue has been beaten to death over there.

The end result is this: if you want SSH users to be able to access
network resources, sshd must run with an account that has access to
network resources.  SYSTEM does not have access to network resources.

--
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: User names with spaces

2003-06-23 Thread DePriest, Jason R.
Yes.
Cygwin only really cares about the SSID.
Say my local administrator account is 'Administrator' with an SSID of
S-1-5-21-11-11-11-500.
However, I want cygwin to call it 'root' and call it's home directory
'admin'.
So the line in /etc/passwd would look like this:
root::500:513:U-LOCALHOST\Administrator,S-1-5-21-11-11-1
1-500:/home/admin:/bin/bash

And everything works great.
When I open up cygwin, I get this:

[EMAIL PROTECTED] ~
$ pwd
/home/admin
[EMAIL PROTECTED] ~
$ 

> -Original Message-
> From: andrew brian clegg [mailto:[EMAIL PROTECTED] 
> Sent: Monday, June 23, 2003 10:17 AM
> To: [EMAIL PROTECTED]
> Cc: Igor Pechtchanski
> Subject: Re: User names with spaces
> 
> 
> 
> 
> On Mon, 23 Jun 2003, Igor Pechtchanski wrote:
> 
> > > However I'd like to just change the name of the old 
> account using XP Pro's
> > > facilities for doing so, so I can keep all of my old 
> settings etc., and
> > > just rename my cygwin home dir to match. Has anyone tried 
> this? I don't
> > > want to mess everything up and end up having to reinstall 
> lots of stuff.
> > 
> > Andrew,
> > 
> > Why not simply edit the /etc/passwd entry?
> 
> Umm -- because I'm still slightly hazy and over-cautious about the
> interaction between Windows accounts and cygwin accounts? :)
> 
> I take it then that if I (for example) just change the space to an 
> underscore in my /etc/passwd entry and in "/home/Andrew 
> Clegg/" it'll all 
> work swimmingly when I log back in -- terrific.
> 
> Cheers for the hint,
> 
> Andrew.
> 
> 
> 
> --
> 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: download the older version of openssh

2003-06-24 Thread DePriest, Jason R.
Installing the older version does make a difference.
I am using the installers from http://lexa.mckenna.edu/sshwindows/ on
remote systems.

Using the 20030512 build which includes sshd version 3.6.1p1-1 led to
the problems described previously.
Reverting to the 20030203 build (ssh 3.5p1-3) immediately fixed the
problems.

-Jason

> -Original Message-
> From: Larry Hall [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 24, 2003 1:16 PM
> To: Doug VanLeuven
> Cc: [EMAIL PROTECTED]
> Subject: Re: download the older version of openssh
> 
> 
> Doug VanLeuven wrote:
> 
> > Larry Hall wrote:
> > 
> >> Doug VanLeuven wrote:
> >>
> >>> Larry Hall wrote:
> >>>
>  Arnold Wang wrote:
> 
> > Can someone tell me whether I can still download the 
> older version, 
> > 3.5p1-3,
> > of openssh? It fixed the display problem I'm 
> experiencing. With the 
> > latest
> > version, 3.6.1p1-2, I downloaded, certains NT console 
> applications, 
> > like net
> > commands, won't have its output displayed through ssh 
> session.   
> 
> 
>  I expect the answer to this is 'no where', unless there 
> is a very dated
>  mirror out there.  Perhaps you'd be interested in 
> tracking this problem
>  a little more closely in an effort to localize the 
> problem and find a
>  solution?
> >>>
> >>>
> >>> That would help.   But in the meantime, I just checked.
> >>> I have a copy lying in my local download directory.
> >>> Can you accept a 450kb mail attachment?
> >>
> >>
> >> Arnold may.  I and the list will not.  Please don't send 
> it to anyone
> >> other than Arnold, assuming he requests it.  Note, I 
> expect that you were
> >> only asking if Arnold would like to receive this 
> attachment and not the
> >> entire list but I decided I would clear up any ambiguity. ;-)
> > 
> > 
> > Ok Dad.  Didn't mean to scare anyone.
> > Actually, the only reason I cc'd the list was on the off 
> chance someone 
> > might
> > contribute the proper way to include it so setup could revert it.
> > I've never done that.
> > 
> 
> 
> It would be available for folks to optionally revert to if it 
> were still
> available on the mirrors.  If a package maintainer feels that 
> a particular
> problem is so terrible that the proper short-term patch is to 
> revert the
> package, that can be accomplished via setup by the maintainer creating
> a new package with a later Cygwin version number but earlier code.
> However, I don't think that applies in this case since the 
> OpenSSH versions in
> question are different (3.5 versus 3.6).  In this case, the maintainer
> would have to explicitly state what the current version is in 
> setup.hint.
> But this is all at the discretion of the package maintainer.
> 
> At this point, I haven't seen anything yet that signifies whether the
> problem is related to the OpenSSH version or something else.  
> If someone
> who has access to the older OpenSSH package wants to 
> (carefully) install
> it to see if it makes a difference in this case, that would 
> be worthwhile
> feedback for this list.  Otherwise debugging the problem in 
> the current
> version is the proper way to a long-term solution.  Stepping 
> back, even if
> it's an option, is a stop-gap solution at best.  Anyone who 
> can help with
> the long-term solution to this problem is heartily encouraged 
> to do so. :-)
> 
> 
> 
> -- 
> Larry Hall  http://www.rfk.com
> RFK Partners, Inc.  (508) 893-9779 - RFK Office
> 838 Washington Street   (508) 893-9889 - FAX
> Holliston, MA 01746
> 
> 
> --
> 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: rxvt shortcut problem (bash, XP, memory, heap, Win32 error 487)

2003-07-10 Thread DePriest, Jason R.
What are the contents of your shortcut?

I point to this batch file:

@echo off
C:
cd \cygwin\bin
rxvt.exe -bg white -fg black -fn "Lucida Console-12" -ls -sl 9000 -rv
-geometry 110x49 -sb -si -sk -sr -sw -e bash --login -i


Which works fine.  I briefly see a command window and then the RXVT term
comes up and the command window disappears.

> -Original Message-
> From: Garrett, Ron [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, July 10, 2003 10:14 AM
> To: [EMAIL PROTECTED]
> Subject: rxvt shortcut problem (bash, XP, memory, heap, Win32 
> error 487)
> 
> 
> I'm having trouble starting rxvt from a shortcut icon. If I 
> simply click on
> the rxvt.exe icon in a Windows Explorer window, then I get a 
> console window
> that is running /usr/bin/sh. If I then try to start bash, I get a heap
> allocation error:
> 
> $ ps
>   PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
>   180   1 180180  con 1005 11:43:00 /usr/bin/rxvt
>  3292 18032929480 1005 11:43:01 /usr/bin/sh
>  381232923292   24400 1005 11:43:17 /usr/bin/ps
> $ bash
> C:\cygwin\bin\bash.exe: *** Couldn't reserve space for cygwin's heap
> (0x2B8) in child, cygheap, Win32 error 487
>  
> 
> If I try a shortcut that starts bash immediately (as 
> suggested by several
> sources), then I see two windows open briefly and close. I'm 
> guessing the
> same problem is happening there.
> 
> If I start rxvt from a cygwin terminal window (already 
> running bash), then
> rxvt starts up fine, and begins running bash itself. This 
> happens even when
> I don't include the "-e /bin/bash" arguments to rxvt.
> 
> I'm running Windows XP and my env under bash includes
> BASH_VERSION=$'2.05.0(6)-release'.
> 
> Anyone have any clues what's going wrong with my shortcut?
> 
> 
> 
> --
> 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: Backing up Cygwin

2003-07-11 Thread DePriest, Jason R.
Did you also back up and restore the "HKLM\SOFTWARE\Cygnus Solutions"
registry key?

-Jason

> -Original Message-
> From: Luciano [mailto:[EMAIL PROTECTED] 
> Sent: Friday, July 11, 2003 11:10 AM
> To: [EMAIL PROTECTED]
> Subject: Backing up Cygwin
> 
> 
> Suppose I back up my entire Cygwin directory, format the disk, 
> reinstall Windows and restore Cygwin. It doesn't work. Why not? 
> Running Setup again then hunt and pecking very specific files from 
> the backup to the new installation is quite annoying. What else does 
> Setup copy/install and where?
> 
> Thanks,
> 
> -- 
> Luciano ES
> <[EMAIL PROTECTED]>
> Santos, SP - Brasil
> 
> 
> --
> 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: Spammers watching this user forum

2003-07-17 Thread DePriest, Jason R.
The archives already show email addresses slightly obfuscated by
replacing the '@' with 'at' and the '.' with 'dot' and adding spaces.

-Jason

-Original Message-
From: Brian Dessent [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 17, 2003 2:28 PM
To: [EMAIL PROTECTED]
Subject: Re: Spammers watching this user forum


Todd Bowden wrote:
> 
> Just received an email from an email address that only could of
received
> my address from this user list.
> 
> My address was only created a couple weeks ago for the sole purpose of
> emailing this user-list.  Might there be a way to
> hide peoples email addresses and just use their alias names instead of
> publishing them on the user list thread?

Uh, it's called a public mailing list.  You should never be surprised to
receive spam on an email address you use to post to a ML, that's just
how the world works.  Use a throwaway account if it bothers you.  I also
suggest SpamAssassin.

Brian

--
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: Cygwin vs: Windoze services for Unix

2003-07-18 Thread DePriest, Jason R.
I used to have a universal subscription to MSDN (until I switched
departments) and I was able to test Windows Services for Unix and the
(at the time) separate Interix subsystem.

They do what they are supposed to do, but cygwin does a whole lot more.

I found the cygwin project to be actively developed and far more robust
than the other offerings.

I have no idea what the newest versions of WSfU offer, but I highly
doubt it has the day-to-day usefulness of cygwin.

-Jason

-Original Message-
From: Doug VanLeuven [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2003 12:00 PM
To: cygwin-list
Subject: Re: Cygwin vs: Windoze services for Unix


The interix subsystem isn't as flexible as cygwin IMHO.
The useful bits are the NFS utilities which do not have source & 
password synchronization which has source for *nix (not GPL).

terry wrote:

> I just received an evaluation copy with Linux Magazine as was 
> wondering if this is a direct 'competitive' product to Cygwin, and if 
> so, what are the significant functional differences (other than the 
> obvious - not being open source / free software and Cygwin being 
> higher quality, of course ;>).

-- 

Doug VanLeuven




--
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/



a /moderated/ mailing list would be nice

2003-07-18 Thread DePriest, Jason R.
Can people please stop sending emails about SPAM and return to the
regularly scheduled CYGWIN emails???

-Jason

--
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: Problem call a cygwin command from a dos batch file

2003-07-29 Thread DePriest, Jason R.
My /etc/profile (the default one with cygwin) contains this:
export PATH="/usr/local/bin:/usr/bin:/bin:$PATH"
which implies that the behavior you are seeing is to be expected (if you
have the same /etc/profile).

See what happens when I add the '--logon' postfix to 'bash'.

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\>cd cygwin

C:\cygwin>bash -c "echo $PATH"
'bash' is not recognized as an internal or external command,
operable program or batch file.

C:\cygwin>cd bin

C:\cygwin\bin>bash -c "echo $PATH"
/cygdrive/c/Perl/bin/:/cygdrive/c/Perl/bin/:/cygdrive/c/WINNT/system32:/
cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/Program
Files/Microsoft SQL Server/80/Tools/BINN:/cygdrive/c/Program
Files/WinZip:/cygdrive/g/Tools/NmapWin/bin:/cygdrive/c
C:\cygwin\bin>bash --login -c "echo $PATH"
/usr/local/bin:/usr/bin:/bin:/cygdrive/c/Perl/bin/:/cygdrive/c/Perl/bin/
:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32
/Wbem:/cygdrive/c/Program Files/Microsoft SQL
Server/80/Tools/BINN:/cygdrive/c/Program Files/WinZip:/cygdrive/g/
C:\cygwin\bin>



-Original Message-
From: Lisbeth Kellogg [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 29, 2003 4:40 PM
To: [EMAIL PROTECTED]
Subject: RE: Problem call a cygwin command from a dos batch file


Yes, that would fix it.  But I think we have a bug here.  In cygwin I
get:

$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINN
T:/cygdr
ive/c/WINNT/System32/Wbem:/cygdrive/c/Program Files/Microsoft SQL
Server/80/Tool
s/BINN:/cygdrive/c/PROGRA~1/ULTRAE~1:/usr/bin:/cygdrive/c/blat184:/cygdr
ive/c/AP
I360/Programs:/cygdrive/c/Program Files/Adobe/Acrobat
4.0/Distillr:/cygdrive/c/x
mlconvert:/cygdrive/c/Program Files/msxsl:/cygdrive/c/Program
Files/PKWARE:/cygd
rive/c/Program
Files/PKWARE/PKZIPC:/cygdrive/c/jdk1.3.1_02/bin:/cygdrive/c/TIFFl
Ib

In DOS I get:

C:\WINNT>bash -c "echo $PATH
/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/
Wbem:/cy
gdrive/c/Program Files/Microsoft SQL
Server/80/Tools/BINN:/cygdrive/c/PROGRA~1/U
LTRAE~1:/usr/bin:/cygdrive/c/blat184:/cygdrive/c/API360/Programs:/cygdri
ve/c/Pro
gram Files/Adobe/Acrobat
4.0/Distillr:/cygdrive/c/xmlconvert:/cygdrive/c/Program
 Files/msxsl:/cygdrive/c/Program Files/PKWARE:/cygdrive/c/Program
Files/PKWARE/P
KZIPC:/cygdrive/c/jdk1.3.1_02/bin:/cygdrive/c/TIFFlib

They shouldn't be different.

---
Lisbeth Kellogg
Office: 651-675-2610
 

-Original Message-
From: Elfyn McBratney [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 29, 2003 4:33 PM
To: Lisbeth Kellogg
Cc: [EMAIL PROTECTED]
Subject: RE: Problem call a cygwin command from a dos batch file


On Tue, 29 Jul 2003, Lisbeth Kellogg wrote:

> I guess I found the answer to my own question.  Since some other 
> people have had this same problem, here is the solution.
> 
> There is a problem with the PATH environment under Win 2000.  To 
> identify the problem I typed the following in DOS:
> 
>  bash -c "which sort"
> 
> I got a response of "/cygdrive/c/WINNT/system32/sort" instead of 
> "/usr/bin/sort".  This is the DOS sort command, not the cygwin sort 
> command.  I just had to change my command to:
> 
>  bash -c "c:/cygwin/bin/sort -t \| -k 3 -k 11 -k 12 -o 
> sortedfile.txt unsortedfile.txt"
> 
> This could be a problem any time the DOS and cygwin commands have the 
> same name.

Like find, rexec, ... Having 'C:\Cygwin\bin' at the front of your PATH 
environment variable would have solved this.

Elfyn

-- 
Elfyn McBratney, EMCB  |  http://www.nongnu.org/wwwauth/
http://www.emcb.co.uk  |  http://www.emcb.co.uk/webauth/
[EMAIL PROTECTED]   |  wwwauth-users AT nongnu DOT org


--
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: Take 2: Testers for new ssh-*-config scripts wanted!

2003-11-03 Thread DePriest, Jason R.
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Corinna Vinschen
> Sent: Monday, November 03, 2003 3:41 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Take 2: Testers for new ssh-*-config scripts wanted!
[--]
> However, I have still a problem.  Does anybody know how I can set
> "Password never expires" from the command line?  I know how to do this
> with dsadd, but that only works on domain machines so it's no generic
> solution.  If I can't do this in the script, everybody would have to
> set this in the Computer Management Console by hand :-(
[--]
[--]
> Thanks,
> Corinna
> 
> -- 
> Corinna Vinschen  Please, send mails 
> regarding Cygwin to
> Cygwin Developer
> mailto:[EMAIL PROTECTED]
> Red Hat, Inc.

Corinna,

User Accounts have a USER_FLAGS attribute that can be any combination of
a couple of values.  One of these can be UF_DONT_EXPIRE_PASSWORD.  If it
is present, the password never expires.

I typically manipulate it using Dave Roth's Win32::AdminMisc perl module
(UserGetMiscAttributes and UserSetMiscAttributes)... which is likely
beyond the scope of what you want this script to do.

The CREATEUSERS.VBS script from the Windows 2000 Resource Kit
(Supplement 1) looks promising.  I haven't used it, but the code seems
capable of specifying the UF_DONT_EXPIRE_PASSWORD option.
I would attach the .vbs file (as a .txt file), but it is copyrighted by
Microsoft.  If anyone knows if emailing it would be "bad" or not, let me
know.

-Jason

--
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: problem with lftp 2.6.8-1 postinstall script

2003-11-07 Thread DePriest, Jason R.
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Waltman
> Sent: Friday, November 07, 2003 11:14 AM
> To: [EMAIL PROTECTED]
> Subject: problem with lftp 2.6.8-1 postinstall script
> 
> I don't know if anyone else has run into this, but thought I 
> should send
> something out to let people know to be on the lookout.
> 
> Thanks,
> Andrew
> 

I had this happen to me last night.  Thanks for letting me know it
wasn't "just me".
I didn't debug it as thoroughly as you did (it was late, I was tired).
I just killed processes until it told me the install completed
successfully.

I'll have to check out the setup log files tonight to make sure they
aren't ~huge~.

-Jason

--
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: Plus sign '+' in file permissions

2003-11-19 Thread DePriest, Jason R.
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Derek Mahar
> Sent: Tuesday, November 18, 2003 10:07 AM
> To: [EMAIL PROTECTED]
> Subject: Plus sign '+' in file permissions
> 
> 
> To what does the plus sign '+' refer at the end of the list of file
> permissions in a Cygwin directory listing (for example, -rw-rw-rw-+)?
> I'm unfamiliar with this permission since I've never seen it in either
> Solaris or Linux directory listings.  Using bash or Windows Explorer,
> how do I enable or disable this file permission?
> 
> Once or twice, after having changed NTFS file permissions, 
> I've seen the
> plus sign '+' disappear, but I don't know exactly how I did it, what
> permission(s) I changed, or how to repeat the process.
> 
> Thanks,
> 
> Derek
> 
> -
> Derek Mahar
> Software Developer
> Penson Financial Services Canada
> 360 St-Jacques St West, 12th Floor
> Montreal QC  H2Y 1P5
> 514.841.9665 x212 Phone
> 514.841.9700 Fax
> -
> 

I'm guessing the '+' is used whenever there are permissions that do not
comply directly with the rwx(user,group,world) schema.

Behold:
[EMAIL PROTECTED] /bin
$ ls -l ls.exe
-rwxrwxrwx1 admins   mkgroup 71680 Jul 13 10:23 ls.exe*
is the same as
C:\cygwin\bin>xcacls ls.exe
C:\cygwin\bin\ls.exe Everyone:F

However, a newly downloaded and chmod'd to 777 .exe file looks like
this:
[EMAIL PROTECTED] /bin
$ ls -l connect.exe
-rwxrwxrwx+   1 admins   mkgroup 69632 Nov 19 12:52 connect.exe*
which equals the extremely ugly NTFS permission-set below
C:\cygwin\bin>xcacls connect.exe
C:\cygwin\bin\connect.exe BUILTIN\Administrators:(special access:)
 STANDARD_RIGHTS_ALL
 DELETE
 READ_CONTROL
 WRITE_DAC
 WRITE_OWNER
 SYNCHRONIZE
 
STANDARD_RIGHTS_REQUIRED
 FILE_GENERIC_READ
 FILE_GENERIC_WRITE
 FILE_GENERIC_EXECUTE
 FILE_READ_DATA
 FILE_WRITE_DATA
 FILE_APPEND_DATA
 FILE_READ_EA
 FILE_WRITE_EA
 FILE_EXECUTE
 FILE_READ_ATTRIBUTES
 FILE_WRITE_ATTRIBUTES

  DOMAIN\Domain Users:(special access:)
 READ_CONTROL
 SYNCHRONIZE
 FILE_GENERIC_READ
 FILE_GENERIC_WRITE
 FILE_GENERIC_EXECUTE
 FILE_READ_DATA
 FILE_WRITE_DATA
 FILE_APPEND_DATA
 FILE_READ_EA
 FILE_WRITE_EA
 FILE_EXECUTE
 FILE_READ_ATTRIBUTES
 FILE_WRITE_ATTRIBUTES

  Everyone:(special access:)
   READ_CONTROL
   SYNCHRONIZE
   FILE_GENERIC_READ
   FILE_GENERIC_WRITE
   FILE_GENERIC_EXECUTE
   FILE_READ_DATA
   FILE_WRITE_DATA
   FILE_APPEND_DATA
   FILE_READ_EA
   FILE_WRITE_EA
   FILE_EXECUTE
   FILE_READ_ATTRIBUTES
   FILE_WRITE_ATTRIBUTES

  DOMAIN\DEPRIESTJ:F
  NT AUTHORITY\SYSTEM:F

--
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 ProxyCommand - connect.exe

2003-11-19 Thread DePriest, Jason R.
Is SSH running on port 80 on yahoo.com?

You are asking 'connect.exe' to use 'surf.proxy.com' as your SOCKS proxy
server to connect via SSH to 'www.yahoo.com' on port 80.

The 'SOCKS' port defaults to 1080 since you didn't specify one.

-Jason

I am not sure where you downloaded connect.exe from, but the information
I used to troubleshoot this was from this site:
http://www.imasy.or.jp/~gotoh/ssh/connect.html

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Ben Anderson
> Sent: Wednesday, November 19, 2003 10:37 AM
> To: [EMAIL PROTECTED]
> Subject: Re: ssh ProxyCommand - connect.exe
> 
> 
> sorry to post again, but to avoid confusion, I did have a 
> copy and pasting 
> error.  The actual command line should be:
> $ connect.exe -d -S surf.proxy.com www.yahoo.com 80
> 
> >From: "Ben Anderson" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: ssh ProxyCommand - connect.exe
> >Date: Wed, 19 Nov 2003 16:33:33 +
> >
> >I followed the installation instructions for connect.c to 
> use for ssh 
> >connections, but it's not working.  Instead of compiling connect.c I 
> >downloaded the precompiled connect.exe.  Here's the output:
> >
> >$ connect.exe -d -S the.proxy.com www.yahoo.com 80
> >DEBUG: (none)
> >DEBUG: relay_method = SOCKS (2)
> >DEBUG: relay_host=surf.proxy.com
> >DEBUG: relay_port=1080
> >DEBUG: relay_user=banderso
> >DEBUG: socks_version=5
> >DEBUG: socks_resolve=REMOTE (2)
> >DEBUG: local_type=stdio
> >DEBUG: dest_host=www.yahoo.com
> >DEBUG: dest_port=80
> >DEBUG: Program is $Revision: 1.69 $
> >DEBUG: resolving host by name: www.yahoo.com
> >DEBUG: resolved: www.yahoo.com (216.109.118.70)
> >DEBUG: not matched, addr to be SOCKSified: 216.109.118.70
> >DEBUG: resolving host by name: surf.proxy.com
> >DEBUG: resolved: surf.proxy.com (192.168.2.5)
> >DEBUG: connecting to 192.168.2.5:1080
> >DEBUG: connect() failed.
> >FATAL: Unable to connect to relay host, errno=10061
> >
> >any ideas?  I know the authentication method (USER/PASS) requires a 
> >password, but I believe it's supposed to prompt me, correct?
> >
> >TIA,
> >Ben
> >
> >_
> >Gift-shop online from the comfort of home at MSN Shopping!  
> No crowds, free 
> >parking.  http://shopping.msn.com
> >
> >
> >--
> >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/
> >
> 
> _
> Set yourself up for fun at home!  Get tips on home 
> entertainment equipment, 
> video game reviews, and more here.   
> http://special.msn.com/home/homeent.armx
> 
> 
> --
> 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: ssh ProxyCommand - connect.exe

2003-11-19 Thread DePriest, Jason R.
I am able to exactly reproduce your problem and I do not know why.
Because I have always used the ProxyCommand method described on the
website.
By creating a ~/.ssh/config file and using the guidelines to add this:
[file]
Host *
ProxyCommand connect -S socks.local.net:1080 %h %p
[/file]

I can just run 
$ ssh host.domain.net
and it works.

It ~does not~ prompt me for a user name and password for the SOCKS5
server like it is supposed to.
I am prompted for my SSH user name and password on the remote system,
though.

$ ssh -vvv deep-thought.milliways.net
OpenSSH_3.7.1p2, SSH protocols 1.5/2.0, OpenSSL 0.9.7c 30 Sep 2003
debug1: Reading configuration data /home/depriest/.ssh/config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Executing proxy command: exec connect -S
proxy1.here4you.com:1080 deep-thought.milliways.net 22
debug1: identity file /home/depriest/.ssh/identity type -1
debug1: identity file /home/depriest/.ssh/id_rsa type -1
debug1: identity file /home/depriest/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version
OpenSSH_3.5p1
debug1: match: OpenSSH_3.5p1 pat
OpenSSH_3.2*,OpenSSH_3.3*,OpenSSH_3.4*,OpenSSH_3.5*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.7.1p2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit:
diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c
bc,[EMAIL PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c
bc,[EMAIL PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-9
6,hmac-md5-96
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-9
6,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: first_kex_follows 0 
debug2: kex_parse_kexinit: reserved 0 
debug2: kex_parse_kexinit:
diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-dss,ssh-dss
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c
bc,[EMAIL PROTECTED]
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c
bc,[EMAIL PROTECTED]
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-9
6,hmac-md5-96
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-9
6,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: first_kex_follows 0 
debug2: kex_parse_kexinit: reserved 0 
debug2: mac_init: found hmac-md5
debug1: kex: server->client aes128-cbc hmac-md5 none
debug2: mac_init: found hmac-md5
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 129/256
debug2: bits set: 1626/3191
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug3: check_host_in_hostfile: filename /home/depriest/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 18
debug1: Host 'deep-thought.milliways.net' is known and matches the DSA
host key.
debug1: Found key in /home/depriest/.ssh/known_hosts:18
debug2: bits set: 1612/3191
debug1: ssh_dss_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/depriest/.ssh/identity (0x0)
debug2: key: /home/depriest/.ssh/id_rsa (0x0)
debug2: key: /home/depriest/.ssh/id_dsa (0x0)
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/depriest/.ssh/identity
debug3: no such identity: /home/depriest/.ssh/identity
debug1: Trying private key: /home/depriest/.ssh/id_rsa
debug3: no such identity: /home/depriest/.ssh/id_rsa
debug1: Trying private key: /home/depriest/.ssh/id_dsa
debug3: no such identity: /home/depriest/.ssh/id_dsa
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining pref

Servers Alive product now supports OpenSSH running on Cygwin

2004-01-15 Thread DePriest, Jason R.
I've been working with Woodstone tech support for the Servers Alive
system monitoring software (http://www.woodstone.nu/salive/) trying to
get their Remote PS Com add-on (designed for SSH on *nix) to work with
Cygwin + OpenSSH.

After about a week, they were able to get a version working with it.

So if you have lots of systems running Cygwin + OpenSSH that you need to
monitor, you can use SA for it now.

Now I can remotely monitor running processes on my systems through
OpenSSH running on Cygwin.

Thank you!

Jason DePriest


--
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: RE : How can i really uninstall completly cygwin from Windows XP Pro ???

2004-02-09 Thread DePriest, Jason R.
If you are a command-line junkie, you should have a Windows command called cacls that 
would also work.
Something like:
C:\>cd cygwin
C:\cygwin>cacls * /T /E /G Flo:F

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Igor Pechtchanski
> Sent: Sunday, February 08, 2004 8:19 PM
> To: Flo
> Cc: [EMAIL PROTECTED]
> Subject: Re: RE : How can i really uninstall completly cygwin 
> from Windows XP Pro ???
> 
> 
> The first is a bug in the Cygwin version of chown.  A 
> temporary workaround
> would be to use "chown -R Flo /*; chown Flo /".
> 
> For the Windows way, go to the Properties dialog, then to the 
> "Security"
> tab, then click on the "Advanced" button at the bottom, go to 
> the "Owner"
> tab, and change the owner to yourself (this recipe is for 
> Win2k, but XP
> should be reasonably similar).
>   Igor
> 
> On Sun, 8 Feb 2004, Flo wrote:
> 
> > Hello Thx for your help but i get and error :
> >
> > > This is due to the permission and ownership settings on 
> these files.
> > > To be able to remove them, you should first take ownership of the
> > > whole Cygwin folder, either by running "chown -R $USER /" as an
> > > administrative user, or, if you've already removed part 
> of Cygwin, by
> > > going through Windows Explorer's file properties dialog for
> > > "c:\cygwin", in Advanced permission settings.
> >
> > The error :
> >
> > $ chown -R Flo /
> > chown: getting attributes of `//bin': No such file or directory
> > chown: getting attributes of `//cvsroot': No such file or directory
> > chown: getting attributes of `//cygwin.bat': No such file 
> or directory
> > chown: getting attributes of `//cygwin.ico': No such file 
> or directory
> > chown: getting attributes of `//etc': No such file or directory
> > chown: getting attributes of `//ftp': No such file or directory
> > chown: getting attributes of `//home': No such file or directory
> > chown: getting attributes of `//lib': No such file or directory
> > chown: getting attributes of `//opt': No such file or directory
> > chown: getting attributes of `//temp': No such file or directory
> > chown: getting attributes of `//tmp': No such file or directory
> > chown: getting attributes of `//usr': No such file or directory
> > chown: getting attributes of `//var': No such file or directory
> >
> > The permissions didn't change and in advanced mode of file 
> properties i
> > can't make any change, there isn't any permission options. 
> In standard
> > mode, when i uncheck "Read-only" permissions i get the 
> Access refused
> > error on any system files.
> >
> > -Message d'origine-
> > De : Igor Pechtchanski [mailto:[EMAIL PROTECTED]
> > Envoyé : samedi 7 février 2004 19:46
> > À : Flo
> > Cc : [EMAIL PROTECTED]
> > Objet : Re: How can i really uninstall completly cygwin 
> from Windows XP
> > Pro ???
> >
> > On Sat, 7 Feb 2004, Flo wrote:
> >
> > > Hello,
> > >
> > > I have a question i ever seen in this forum but without a correct
> > > response :
> > >
> > > How can i uninstall completly cygwin from Windows XP Pro ???
> > >
> > > I try uninstall it with the setup.exe but it doesn't work :
> > >
> > > The FAQ says that :
> > >
> > > How do I uninstall all of Cygwin?
> > >
> > > Setup has no automatic uninstall facility. Just delete everything
> > > manually:
> > > * Cygwin shortcuts on the Desktop and Start Menu
> > > * The registry tree `Software\Cygnus Solutions' under
> > HKEY_LOCAL_MACHINEand/or HKEY_CURRENT_USER.
> > > * Anything under the Cygwin root folder, `C:\cygwin' by default.
> > > * Anything created by setup in its temporary working directory.
> > > It's up to you to deal with other changes you made to your system,
> > such
> > > as installing the inetd service, altering system paths, etc. Setup
> > would
> > > not have done any of these things for you.
> >
> > Oh, good, you actually read the FAQ... :-)
> >
> > > So, i stopped and removed the SSHD and INETD services and tried to
> > > delete everything manually:
> > > But i got "Acces refused" error on cygwin System files like :
> > > sshd_config, ssh_config, ssh_host_dsa_key, inetd.log...
> >
> > This is due to the permission and ownership settings on 
> these files.  To
> > be able to remove them, you should first take ownership of the whole
> > Cygwin folder, either by running "chown -R $USER /" as an 
> administrative
> > user, or, if you've already removed part of Cygwin, by going through
> > Windows Explorer's file properties dialog for "c:\cygwin", 
> in Advanced
> > permission settings.
> >
> > > One day i tried to delete the cygwin directory and i 
> didn't have any
> > > problem but now on every cygwin install i get this 
> problem and it make
> > > me nuts.
> > > I also tried to start windows in sage mode and delete it 
> but it didn't
> > > work.
> >
> > This won't help - safe mode doesn't change file ownership.  It only
> > helps
> > if the files are reported as being "in use" because there 
> are services
> > that are

RE: Problems w/make under Cygwin bash shell

2004-02-11 Thread DePriest, Jason R.
Since you upgraded from an ancient version of Cygwin, following the
directions in http://cygwin.com/problems.html is imperative.

Please attach what it asks for so the group can help you out.

It could be as simple as a package that did not get updated...

> -Original Message-
> From: cygwin-owner at cygwin dot com 
> [mail to:cygwin-owner at cygwin dot com] On Behalf Of Brian Jorgage
> Sent: Wednesday, February 11, 2004 1:21 PM
> To: cygwin at cygwin dot com
> Subject: Problems w/make under Cygwin bash shell
> 
> 
> I have an older version of Cygwin (B20) under which "make" 
> works fine.  I 
> recently installed the latest version of Cygwin.  When I type 
> "make" at the 
> command prompt, I get the message:
> 
> bash: make: command not found
> 
> I have a Makefile in the local directory and ran a 
> ./configure script which 
> ran successfully.
> 
> So how do I configure my bash shell to recognize the make 
> command ?  When I 
> look at my environment variables, the only variable related 
> to make is:
> 
> MAKE_MODE=unix
> 
> which I'm sure doesn't have any bearing on this.
> 
> I'm sure the answer is something simple.  It's been a while 
> since I used 
> makefiles.
> 
> Can anyone help me ?
> 


--
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: Where is emacs & vi in Cygwin

2004-02-13 Thread DePriest, Jason R.
Problem reports:   http://cygwin.com/problems.html

That would be monumentally helpful.

Especially this part:
Run cygcheck -s -v -r > cygcheck.out and include that file as an
attachment in your report. Please do not compress the output. Just
attach it as a straight text file so that it can be easily viewed.

> -Original Message-
> From: cygwin-owner at cygwin dot com 
> [mailto: cygwin-owner at cygwin dot com] On Behalf Of doug foxvog
> Sent: Friday, February 13, 2004 11:28 AM
> To: cygwin at cygwin dot com
> Cc: doug foxvog
> Subject: Where is emacs & vi in Cygwin
> 
> 
> Hi!
> 
> I just downloaded cygwin-1.5.7-1 and set it up, including
> everything and did not find either emacs or vi.  I haven't
> checked to see what else is missing.  Is there some other
> file to download to get these editors?
> 
> [I downloaded from the NASA site & had the same result when
> i picked another mirror to download from.]
> 
> =
> doug foxvogdoug at foxvog dot org   http://ProgressiveAustin.org
> 
> "I speak as an American to the leaders of my own nation. The great
> initiative in this war is ours. The initiative to stop it 
> must be ours."
>  - Dr. Martin Luther King Jr.
> =
> 


--
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: good top program for Cygwin

2004-02-17 Thread DePriest, Jason R.
pslist from the pstools suite from Sysinternals.
http://www.sysinternals.com/

When you give it the -s switch, it behaves like top... sort of.

-Jason

> -Original Message-
> From: cygwin-owner at cygwin dot com 
> [mailto: cygwin-owner at cygwin dot com] On Behalf Of Simon
> Sent: Tuesday, February 17, 2004 9:33 AM
> To: cygwin at cygwin dot com
> Subject: good top program for Cygwin
> 
> 
> 
> Anyone know of a decent top program to run from the command line?
> The one i have with cygwin installation has no help, and 
> doesnt seem to show all 
> the windows 2000 processes running on my box.
> thanks Simon
> 
> 


--
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: Strange group name

2004-02-18 Thread DePriest, Jason R.
> -Original Message-
> From: cygwin-owner at cygwin dot com 
> [mailto: cygwin-owner at cygwin dot com] On Behalf Of Igor
Pechtchanski
> Sent: Wednesday, February 18, 2004 8:46 AM
> To: Julian C H Stevens
> Cc: cygwin at cygwin dot com
> Subject: Re: Strange group name
> 
> 
> On Wed, 18 Feb 2004, Julian C H Stevens wrote:
> 
> > I have installed cygwin 1.5.6(0.108/3/2) and I notice that 
> the files in
> > my home directory have a group ownership of "mkgroup-l-d".
> >
> > I'm new to cygwin, and have installed it as a domain user on a
> > workstation running Windows 2000 Professional Ver 5.0 Build 
> 2195 Service
> > Pack 4.
> >
> > Please could someone suggest how this strange group name 
> has got into my
> > /etc/group file?
> 
> > Thanks,
> > Julian.
> 
> Julian,
> 
> 
explains
> this somewhat, but should be updated to say that "mkgroup-l-d" means
that
> the files are owned by a domain group that isn't in your /etc/group,
and
> that you should run "mkgroup -l -d >> /etc/group" when you're
connected to
> a domain controller to fix this.  Otherwise, that group name is
harmless,
> IIRC.  Perhaps Pierre or Corinna could chime in here...
>   Igor
> P.S. Could you please set your mailer to wrap long lines?
> -- 
>   http://cs.nyu.edu/~pechtcha/
>   |\  _,,,---,,_  pechtcha at cs dot nyu dot edu
> ZZZzz /,`.-'`'-.  ;-;;,_  igor at watson dot ibm dot com
>  |,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
> 
> --

If you are a member of a domain with a huge number of groups, you can
take a short cut to figure out what mkgroup-l-d is really looking for.

I did this:

[EMAIL PROTECTED] ~
$ ls -n -l
total 40
-rw---1 43363105138591 Feb 17 12:47 .bash_history
-rwxr-xr-x1 4336310513 533 Dec 10 17:48 .bash_profile*
-rwxr-xr-x1 4336310513 625 Dec 10 17:48 .bashrc*
drwxr-xr-x+   4 43363105134096 Jan  8 18:02 .cpan/
-rwxr-xr-x1 4336310513 267 Dec 10 17:48 .inputrc*
drwx--+   2 4336310513   0 Dec 23 11:34 .links/
drwxr-xr-x+   2 4336310513   0 Dec 15 13:07 .ncftp/
drwx--+   2 43363105134096 Jan  8 14:20 .ssh/
-rw---1 43363105136020 Feb  9 15:04 .viminfo
-rwxr-xr-x1 4336310513 205 Dec 15 13:17 .wgetrc*
[EMAIL PROTECTED] ~
$ mkgroup -d | grep 10513
Domain Users:S-1-5-21-1718497100-374411357-7473742-513:10513:
[EMAIL PROTECTED] ~
$ 

The '-n' lists the user names and groups as their GID/UID number.  I
then used mkgroup to list all the domain groups and grep'd for the GID
listed.
Problem solved.  It was looking for Domain Users.
I can just put that entry in my /etc/group file and all is good now.

See:

[EMAIL PROTECTED] ~
$ ls -l
total 40
-rw---1 depriest users_d  8591 Feb 17 12:47 .bash_history
-rwxr-xr-x1 depriest users_d   533 Dec 10 17:48 .bash_profile*
-rwxr-xr-x1 depriest users_d   625 Dec 10 17:48 .bashrc*
drwxr-xr-x+   4 depriest users_d  4096 Jan  8 18:02 .cpan/
-rwxr-xr-x1 depriest users_d   267 Dec 10 17:48 .inputrc*
drwx--+   2 depriest users_d 0 Dec 23 11:34 .links/
drwxr-xr-x+   2 depriest users_d 0 Dec 15 13:07 .ncftp/
drwx--+   2 depriest users_d  4096 Jan  8 14:20 .ssh/
-rw---1 depriest users_d  6020 Feb  9 15:04 .viminfo
-rwxr-xr-x1 depriest users_d   205 Dec 15 13:17 .wgetrc*
[EMAIL PROTECTED] ~
$ 

I changed the display name of the group from 'Domain Users' to 'users_d'
in my /etc/group file so it would fit in the column better.

-Jason


--
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: vi and cygwin

2004-02-20 Thread DePriest, Jason R.
Not sure what you are trying to accomplish, but try this command-line
option with vim.

-+- man vim -+-

-C  Compatible.  Set the 'compatible' option.  This  will  make
   Vim  behave  mostly  like  Vi,  even  though  a
.vimrc file
   exists.

> -Original Message-
> From: cygwin-owner at cygwin dot com 
> [mailto: cygwin-owner at cygwin dot com] On Behalf Of Totte Karlsson
> Sent: Friday, February 20, 2004 4:39 PM
> To: cygwin at cygwin dot com
> Subject: Re: vi and cygwin
> 
> 
> yeah, I know about the "standard method" but could not find 
> vi there, only
> vim. So one should use vim? There is no "pure" vi?
> -totte
> 
> "Brian Dessent"  wrote in message
> news: 40368B56.4ABE506D at dessent dot net...
> > Totte Karlsson wrote:
> >
> > > How do I get vi working under cygwin? Is it available?
> >
> > Install the vim package, using setup.exe.  That is the 
> standard method
> > for isntalling all Cygwin packages.
> >
> > Brian
> >
> 
> 


--
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: tar and open files

2004-02-20 Thread DePriest, Jason R.
For a DLL, does just unregistering the DLL do what you need?  I mean,
running 'regsvr32 /u ', put new file in place, run 'regsvr32
'?

-Jason

> -Original Message-
> From: cygwin-owner at cygwin dot com 
> [mailto: cygwin-owner at cygwin dot com] On Behalf Of Igor
Pechtchanski
> Sent: Friday, February 20, 2004 5:02 PM
> To: Steven Hartland
> Cc: cygwin at cygwin dot com
> Subject: Re: tar and open files
> 
> 
> On Fri, 20 Feb 2004, Steven Hartland wrote:
> 
> > Does anyone know of a way of getting round the file locking 
> in win32 /
> > cygwin so that in use files e.g. dll's can be replaced and 
> next time the
> > app restarts they are picked up?
> > Steve
> 
> Setup.exe uses the Windows "replace-on-reboot" feature for this.  If
> you're interested in how this works, see the setup.exe 
> sources or MSDN.
> AFAIK, there's no other way to do a delayed replace of in-use files on
> Windows, but I've been known to err...
>   Igor
> -- 
>   http://cs.nyu.edu/~pechtcha/
>   |\  _,,,---,,_  pechtcha at cs dot nyu dot edu
> ZZZzz /,`.-'`'-.  ;-;;,_  igor at watson dot ibm dot com
>  |,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
> 
> 


--
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: python and cygwin

2004-02-20 Thread DePriest, Jason R.
Cygwin aims to do both.

It provides *nix tools running on Windows from a DLL implemented POSIX
environment.  Or something like that.

There are other places to get some of the GNU tools ported to Win32
without the cygwin1.dll requirement.  However, you do not get the full
benefits of a robust and maintained *nix-ish development environment.

So either cygwin meets your needs or it doesn't.

In your case, what cygwin provides might be overkill.

http://cygwin.com/cygwin-ug-net/overview.html
[quote]Cygwin is a Linux-like environment for Windows. It consists of a
DLL (cygwin1.dll), which acts as an emulation layer providing
substantial POSIX (Portable Operating System Interface) system call
functionality, and a collection of tools, which provide a Linux look and
feel. The Cygwin DLL works with all x86 versions of Windows since
Windows 95.[/quote]

> -Original Message-
> From: cygwin-owner at cygwin dot com 
> [mailto: cygwin-owner at cygwin dot com] On Behalf Of Totte Karlsson
> Sent: Friday, February 20, 2004 5:29 PM
> To: cygwin at cygwin dot com
> Subject: Re: python and cygwin
> 
> 
> OK, I see,
> However, it seems as if I can execute the win32 python 
> interpreter from
> within the cygwin bash shell, and it seems to work as long 
> the cygwin path
> come into play, which is "unfortunate".
> 
> I thought the idea with cygwin was to provide unix tools working under
> windows, not to make windows into unix/posix? Now it looks as 
> if I need to
> have two sets of python running, one for cygwin and one for 
> windows, and
> both are running in windows! It is something fishy with that 
> I think..?
> 
> 


--
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.7 "make"

2004-02-26 Thread DePriest, Jason R.
... hence the name.

But the issue was not with your question.  It was with not following the
proper procedure for reporting problems.

The link provided, http://cygwin.com/problems.html, explains what you
need to supply to the list to make sure the other members can provide
you with the most relevant answer to your concerns.

-Jason

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of geoffrey
> Sent: Thursday, February 26, 2004 10:23 AM
> To: Cygwin List
> Subject: Re: cygwin 1.5.7 "make"
> 
> 
> Thanks for your answer>
> 
> So this ML is only for cygwin's problems reporting ?
> 
> Geoffrey
> 
> Larry Hall wrote:
> 
> >At 10:38 AM 2/26/2004, geoffrey you wrote:
> >  
> >
> >>Hi,
> >>
> >>I'm desperately trying to find the make command, can 
> comeone help me ?
> >>
> >>
> >
> >
> >This is not a problem report that gives any information that 
> would help
> >someone here help you with your problem.  Please, in the 
> future, before
> >posting to this list, read and follow:
> >
> >
> >  
> >
> >>Problem reports:   http://cygwin.com/problems.html
> >>
> >>
> >
> >
> >OK.  I'll take a WAG that you haven't installed 'make'.  So visit
> >, find the package that includes 'make',
> >and run setup to install that package.
> >
> >
> >--
> >Larry Hall  http://www.rfk.com
> >RFK Partners, Inc.  (508) 893-9779 - RFK Office
> >838 Washington Street   (508) 893-9889 - FAX
> >Holliston, MA 01746 
> >
> >  
> >


--
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: perl 5.8.2's localtime reports gmtime

2004-03-05 Thread DePriest, Jason R.
> -Original Message-
> From: cygwin-owner at cygwin dot com 
> [mailto: cygwin-owner at cygwin dot com] On Behalf Of Keith Bainbridge

> Sent: Thursday, March 04, 2004 6:35 PM
> To: The Cygwin Mailing List
> Subject: Re: perl 5.8.2's localtime reports gmtime
> 
> 
> Steve Kelem wrote:
> 
> > I'm running the latest cygwin, including perl 5.8.2:
> > % perl -version
> >
> > This is perl, v5.8.2 built for cygwin-thread-multi-64int
> 
> Ug.  Read the archives.  This has come up several times in the last
> couple of weeks, it's a known bug that will be fixed in the 
> next Cygwin
> DLL release.  See for example
> .  Your
> options are: Try a recent snapshot, use Perl <= 5.8.0, or wait for
> Cygwin 1.5.8.
> 
> Brian
> 
>

I actually implemented the following so that my script will still work
correctly after whatever whatever is fixed.

I am in the Central Time Zone, so you'd have to adjust the number of
seconds you add or remove accordingly.

[code]
use Time::Local;
print "GM: " . gmtime() . "\n";
print "Local: " . localtime() . "\n";
if (gmtime() eq localtime()) {
print "GM time and localtime are the same!\n";
print "I'll have to make some adjustments.\n";
if ($isdst) {
$time = time() - 18000;
} # end of if it is daylight savings time
else {
$time = time() - 21600;
} # end of else it is standard time
$adjtime = gmtime($time);
print "Adjusted: $adjtime\n";
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
gmtime($time);
$mon += 1;
$year += 1900;
} # end of if local time is calculated as gm time
else {  
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
localtime;
$mon += 1;
$year += 1900;
} # end of else the local time is correct
[/code]

-Jason


--
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: Sysinternals Process Explorer & a Cygwin Process' DLLs?

2004-03-18 Thread DePriest, Jason R.
Yes I see this problem, too.

I am using Process Explorer 8.32 on Windows 2000 Pro.

It also causes the CPU utilization of the cygwin process to jump to
nearly 100%.

ListDLLs, the command-line version of that feature, exhibits the same
behavior.

-Jason

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Brian Ford
> Sent: Thursday, March 18, 2004 1:25 PM
> To: [EMAIL PROTECTED]
> Subject: Sysinternals Process Explorer & a Cygwin Process' DLLs?
> 
> 
> Process Explorer v8.33 on XP Pro can't seem to query a Cygwin process'
> DLLs under 1.5.8.  IIRC, this worked previously (but I don't know
> when it broke).  Does anyone else see this, or have a guess 
> as to why it
> doesn't work?  I am sorry if this is too OT.  Feel free to respond via
> personal email.  Thanks.
> 
> -- 
> Brian Ford
> Senior Realtime Software Engineer
> VITAL - Visual Simulation Systems
> FlightSafety International
> Phone: 314-551-8460
> Fax:   314-551-8444
> 

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential information. If you are not the intended recipient(s), or the employee or 
agent responsible for delivery of this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution, or copying of this e-mail 
message is strictly prohibited. If you have received this message in error, please 
immediately notify the sender and delete this e-mail message from your computer.


==


--
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 tries to connect to the internet

2004-03-22 Thread DePriest, Jason R.
Joel wrote:
> Why is it trying to access a DNS anyways? Is there any way to stop it
> from doing this?
> 
> Thanks
> 
> Joel

What is your bash prompt (PS1) set to?
If you have '\h' in it, it will try to put your host name there and it
has to look it up before it can display it.

-Jason

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential information. If you are not the intended recipient(s), or the employee or 
agent responsible for delivery of this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution, or copying of this e-mail 
message is strictly prohibited. If you have received this message in error, please 
immediately notify the sender and delete this e-mail message from your computer.


==


--
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: applying command shell properties to cygwin.bat

2004-04-13 Thread DePriest, Jason R.
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Korn
>Sent: Tuesday, April 13, 2004 11:11 AM
>To: [EMAIL PROTECTED]
>Subject: RE: applying command shell properties to cygwin.bat
>
>
>> -Original Message-
>> From: cygwin-owner On Behalf Of james pentland
>> Sent: 13 April 2004 17:05
>
>> when i run the cygwin bash shell on system startup
>> from the startup entry in the registry the
>> foreground/background color and other properties are
>> not applied to the command shell in which bash runs.
>
>> however, these properties are associated with the
>> shortcut, not with the batch file which runs bash.
>
>  Indeed; that's how windoze manages these settings, on a per-shortcut
basis
>rather than on a per-target basis.  I suspect there may be hidden .pif
files
>involved here.
>
>> as a consequence, when invoking bash by running the
>> batch file, which is named cygwin.bat and is in a path
>> something like n:\cygwin\cygwin.bat, the properties
>> are not applied and one ends up with a generic command
>> shell window - white text on black background, default
>> layout, no icon.
>
>  'fraid so.  That's a .bat file, not a shortcut, and so has no console
>window properties associated with it.
> 
>> how can one associate the properties with the batch
>> file cygwin.bat such that they stay with the command
>> shell?
>
>  You can't do, but instead of starting the batch file from your
registry
>startup entry, you could create a new shortcut to the batch file and
put the
>path of that shortcut in the registry instead.  Then you could set
whatever
>properties you wanted in the shortcut.
>
>cheers, 
>  DaveK
>-- 
>Can't think of a witty .sigline today
 
You could also consider using rxvt as the shell.

I have a .bat file for starting a window that looks like this:
[batch]
@echo off
C:
cd \cygwin\bin
rxvt.exe -bg white -fg black -fn "Lucida ConsoleP-12" -ls -sl 9000 -rv
-geometry 110x50 -sb -si -sk -sr -sw -e bash --login -i
[/batch]

The rxvt start options are specified on the command-line instead of the
hand-waving way that the start options for cmd are specified.

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential information. If you are not the intended recipient(s), or the employee or 
agent responsible for delivery of this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution, or copying of this e-mail 
message is strictly prohibited. If you have received this message in error, please 
immediately notify the sender and delete this e-mail message from your computer.


==


--
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: co-linux

2004-04-14 Thread DePriest, Jason R.
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Pinhas Krengel
>Sent: Wednesday, April 14, 2004 7:51 AM
>To: [EMAIL PROTECTED]
>Subject: co-linux
>
>
>I have just read about beta release of co-linux (linux on windows). Is
this
>product going to kill cygwin.
>What will be the benefits of using cygwin in that case.
>

That is similar to asking why someone would use Cygwin if they already
have VMware or Bochs.

The two products serve different purposes.

VMware, Bochs, and Co-Linux are emulators that create a virtual PC
(oops, forgot to mention Microsoft's Virtual PC product) on your system.

Cygwin is not an emulator.

Cygwin is not a subsystem.

Cygwin is more like an interface or gateway to allow Windows-centric
tools and commands to access *nix centric tools and commands.

Windows does this directly.  You do not have to telnet or SSH "into"
your cygwin "partition" or "system".

You can open an old-fashioned MS-DOS-style COMMAND.COM prompt and type
'ls'.  Assuming you don't have some of the Microsoft Resource Kit tools
installed, and the cygwin\bin directory is in your path, the cygwin
'ls.exe' command will run and show you the directory listing.

If you have any of the emulators installed, you cannot do this.  You
might as well have two completely seperate systems sitting on your desk.

-Jason

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential information. If you are not the intended recipient(s), or the employee or 
agent responsible for delivery of this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution, or copying of this e-mail 
message is strictly prohibited. If you have received this message in error, please 
immediately notify the sender and delete this e-mail message from your computer.


==


--
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: Problem with perl distro?

2003-09-23 Thread DePriest, Jason R.
> Peter M Aarestad said
[-snip-]
> Now, every single time I read in a line, I get this warning
> 
> Use of uninitialized value in concatenation (.) or string at 
> ./genguimapdoc.pl line 60,  line n.
> 
> However, I do NOT get this warning using ActiveState Perl, 
> and the script works fine! Is this thus a bug in Cygwin's Perl build?
[-/snip-]

Speaking of builds, can you please specify which version of perl you are
using under Cygwin and which version of ActiveState Perl you are using?

Also, if you run your script with ActiveState using the '-w' modifier
does it give you the same error you get with Cygwin perl?

-Jason

--
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: Problem with perl distro?

2003-09-23 Thread DePriest, Jason R.
> Peter M Aarestad said
[-snip-]
> perl -w works fine for ActivePerl - no warnings. Plus, my 
> script uses the "warnings" and "strict" pragmas.
[-/snip-]

Peter,

Can you provide a simple but complete script and data source that
recreate your error?
I don't know what the data you are parsing is supposed to look like so I
am having trouble coming up with something that gives me the error you
are talking about.
Also, I don't know what your variables are set to.

Thanks!
-Jason

--
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: Problem with perl distro?

2003-09-23 Thread DePriest, Jason R.
> Igor Pechtchanski said
> Peter,
> 
> $screen was uninitialized.  Changing it to 'my $screen = ""' 
> eliminates
> the warnings in the simpler script.
>   Igor
> -- 

Igor,

Great job!  This seems to fix it under Cygwin perl 5.8.0-5, but I still
get errors using ActiveState Perl for Windows.  Which probably means
(unless Peter cannot get this fix working under Cygwin) that we should
take it off the list.

You are too fast... I had narrowed it down to that particular elsif, but
hadn't caught the problem yet...

-Jason

--
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: no longer administrator, can't mkdir /foo

2003-10-02 Thread DePriest, Jason R.
You may need to get permission to temporarily logon as a local admin and
then change the owner of all of the directories under cygwin.
As almost all of my directories and files seem to be owned by
admins.mkgroup.  See if you can change the ownership to the Power User
group or something else that you are a member of.
Btw - I renamed the Administrators group to admin in my /etc/group file.

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Mike Maxwell
> Sent: Thursday, October 02, 2003 10:58 AM
> To: [EMAIL PROTECTED]
> Subject: no longer administrator, can't mkdir /foo
> 
> 
> For security reasons, I am no longer an administrator on my 
> Win2k machine.
> (No, I didn't mess up, there's an issue with passwords or something--a
> recent break-in.)
> 
> The upshot is that under CygWin, I can't do a mkdir in the / dir (i.e.
> /cygdrive/c/cygwin).
>   $ mkdir foo
>   mkdir: cannot create directory `foo': No such file or directory
> 
> Oddly, a side effect of that seems to be that cygwin no 
> longer sees /tmp;
> bash says:
> 
> bash.exe: warning: could not find /tmp, please create!
> 
> ls / shows it, but ls /tmp does not:
> 
>   $ ls /
>   bin cygwin.ico  home  pkgsetup.log   tmp  var
>   cygwin.bat  etc lib   setup.exe  setup.log.full  usr
>   $ ls /tmp
>   ls: /tmp: No such file or directory
> 
> I can create a directory in / (i.e. c:/cygwin) from 
> MsWindows, but again,
> Cygwin doesn't see it:
> 
>   $ cmd
>   Microsoft Windows 2000 [Version 5.00.2195]
>   (C) Copyright 1985-2000 Microsoft Corp.
> 
>   C:\cygwin>mkdir tmp
> 
>   C:\cygwin>exit
> 
>   $ ls /tmp
>   ls: /tmp: No such file or directory
> 
> Possibly related to all this is the fact that my Windows username has
> changed.  So Cygwin doesn't seem to know where my (new) ~ is, i.e. it
> reports ~ as the local drive's root directory:
> 
>   $ cd ~
> 
>   $ pwd
>   /cygdrive/c
> 
> I tried re-naming my old /home/ directory to
> /home/, but that doesn't seem to be sufficient.
> 
> Short of re-installing CygWin, is there a fix to all this mess?
> 
> -- 
> Mike Maxwell
> Linguistic Data Consortium
> NomaxwellSpam at ldc dot upenn dot edu
> 
> 
> 
> 
> --
> 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: Install problem

2003-10-16 Thread DePriest, Jason R.
> >WAG: Do you have a firewall running?

and

> (BTW, what does WAG stand for?)

[EMAIL PROTECTED] ~
$ wtf wag
wag: Wild-Assed Guess.  Usually correct for certain people

--
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: Is there a 'ping' in cygwin?

2003-10-20 Thread DePriest, Jason R.
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Hughes, Bill
> Sent: Monday, October 20, 2003 10:05 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Is there a 'ping' in cygwin?
[- snip -]
> Now do I bother writing something to rename all .EXE to lower 
> case? I don't
> think so.
[- /snip -]

I already did for similar reasons.  It doesn't recurse directories and
it renames ALL files (not just .exe), but it does work.

[- perl script -]
# This script will take files names that are in
# capital letters and convert them to lower case
# letters.  I'm going to use the easy way.  Copy
# the file to a temp file, delete the original,
# then copy the temp file back to the original
# file name in lower case letters.

use File::Copy;

$PathToFiles = $ARGV[0];

chdir($PathToFiles);
@FileNameList = glob("*.*");
foreach $FileName (@FileNameList) {
$FileNamelc = lc $FileName;
copy("$PathToFiles\\$FileName","$PathToFiles\\$FileName\.tmp");
rename("$PathToFiles\\$FileName","$PathToFiles\\$FileNamelc");
unlink("$PathToFiles\\$FileName\.tmp");
print "$FileName renamed to $FileNamelc\n";
}
[- /perl script -]

--
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- Removing Line feeds (Carriage returns) from data

2003-10-23 Thread DePriest, Jason R.
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Jared Ingersoll
> Sent: Thursday, October 23, 2003 9:33 AM
> To: '[EMAIL PROTECTED]'
> Subject: bash- Removing Line feeds (Carriage returns) from data
> 
> 
> Hello,
> 
> I'm currently using cygwin (updated yesterday) with a WIN2K 
> resource kit
> utility to dump logs from event viewer into a comma delimited 
> file. One
> behavior that I have noticed (and occasionally notice with cygwin in
> general) is that within the data, there are what I believe to 
> be carriage
> returns (show up in an excel spreadsheet as a square 
> character). This data
> will eventually end up in an Oracle database, so these characters are
> undesirable. I was wondering if there is a way (outside of 
> manually editing
> the file, perhaps with sed or awk) to remove these characters?
> 
> Here's the command that's producing them in the bash shell:
> 
> /cygdrive/d/EventAudit/dumpel.exe -d 1 -s MyPC -l system -t -c |
> /cygdrive/c/cygwin/bin/awk '{print "MyPC" "," "system" "," $0}' >>
> /cygdrive/d/EventAudit/serverevents.`/cygdrive/c/cygwin/bin/da
> te +%Y%m%d`
> 
> I was unable to find any reference to an automated resolution 
> on google or
> cygwin FAQ.
> 
> Thanks for the help.
> 
> Jared

See if 'dos2unix' from the 'cygutils' package does what you need.

-Jason

--
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/



Making 'su' work under a cygwin bash shell

2001-12-28 Thread DePriest, Jason R.

I have had only moderate success getting su.exe from the Windows 2000
Resource Kit working as a drop-in for the unix 'su' command.
The version of su.exe that I am using is one that is not yet publicly
available, but the issues still remain (I had to get the newer version to
fix another issue I was having).

SU for Windows NT v3.00 Jun 28 2000 19:48:15
(c) Copyright 1995, 1996, 1997.  Written by Scott Field


I don't know true shell scripting, so I wrote a simple perl script instead.
Assume the variables are defined correctly.

$ cat su2.pl
$user = 'Administrator';
$password = '';
$domain = 'LocalHost';
$cygrootNT = 'C:\\cygwin';
$supathCYG = '/cygdrive/c/Program Files/Resource Kit';
open(PASSTMP,">/tmp/$user.password");
print PASSTMP $password;
close(PASSTMP);
print "\nAttemtping to execute the following:\n";
print "\"$supathCYG\\su.exe\" $user \"$cygrootNT\\bin\\bash.exe\" $domain -v
-e < \"$cygrootNT\\tmp\\$user.password\"\n";
system("\"$supathCYG\\su.exe\" $user \"$cygrootNT\\bin\\bash.exe\" $domain
-v -e < \"$cygrootNT\\tmp\\$user.password\"");
open(PASSTMP);
close(PASSTMP);
exit;


The script ~almost~ works as desired.  It runs the resultant bash prompt in
a new window.  I want to figure out how to make the new bash shell run
inside the bash shell it was run from.
Here is the output from when I run it:

$ perl su2.pl
Attempting to execute the following:
"/cygdrive/c/Program Files/Resource Kit\su.exe" Administrator
"C:\cygwin\bin\bash.exe" THIN-LINE -v -e <
"C:\cygwin\tmp\Administrator.password"
User=Administrator
Domain=LocalHost
ReferencedDomain=LocalHost
CommandLine=C:\cygwin\bin\bash.exe
TextualSid=S-1-5-21-1960408961-152049171-1060284298-500
LogonSid=S-1-5-5-0-7029156
CurrentWinsta+Desktop=WinSta0\Default
TargetWinsta+Desktop=WinSta0\Default


If anyone can tell me how to keep the shell in the same window, I'd be
appreciative.  Or if anyone knows of some version of su that works natively
under a cygwin bash shell, I'd be even more appreciative!

Thank you!

Jason R DePriest
First Tennessee National Corporation

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

The views and ideas expressed in this message, while not necessarily the
opinion of the parent organization, are none the less confidential and
intended only for the designated recipient.
If you want to disseminate the information, you must obtain permission from
the originating sender or from the Data Security department of First
Tennessee National Corporation.


--
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/




What environment variables are needed under Cygwin?

2002-01-02 Thread DePriest, Jason R.

This may be a stupid question; but I can't find a good list of common
environment variables for most applications to work.
I am not talking about the CYGWIN variable.  That variable is very well
documented throughout this list and on the Cygwin site documentation.
I mean variables like HTTP_proxy and TZ.
I have had very little success getting the *_proxy variables working with
lynx, ncftp, or wget.
I just want to know what variables you guys set to make your job easier.
I tried setting a few other variables through the profile script, but those
didn't work too well either.

Thank you!

Jason R DePriest

--
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: Which Linux after CyGwin?

2004-10-05 Thread DePriest, Jason R.
On Tuesday, October 05, 2004 10:52 AM, zzapper wrote

> Hi,
> 
> In fact I want to keep Win32/Cygwin on my primary PC, but would like
> to install a dual boot Linux on my old PC. Mandrake & Fedora seem to
> be the most popular according to http://distrowatch.com/ 
> 
> Any opinions
> 
> zzapper (vim, cygwin, wiki & zsh)
> --
> 
> vim -c ":%s%s*%CyrnfrTfcbafbeROenzSZbbyranne%|:%s)[R-T]) )Ig|:norm
> G1VGg?" 
> 
> http://www.vim.org/tips/tip.php?tip_id=305  Best of Vim Tips

"Any opinions"

And your asking about Linux?  I am guessing it was a rhetorical
question...

I use Debian GNU/Linux as my distro of choice.  I chose it mainly
because of its wonderful package management tools.  If you do use
Debian, please don't use the 'stable' release.  It is very ancient (but
stable!).  Use the 'testing' release.  For the most part, you won't have
any problems and if you do have a problem, expect it to be fixed
quickly.
I actually used their recommended application, jigdo, to build a
'testing' ISO image.  Then I made a CD and installed off of that.
Afterwards, I have some packages that I use the 'unstable' release for
and even one that I use the 'experimental' release for.  Everything else
I keep at 'testing'.

I tried Mandrake and Gentoo, but they don't update very well from behind
a proxy server that requires authentication.

I haven't used RedHat since 7.3.

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential
information. If you are not the intended recipient(s), or the employee or agent 
responsible for delivery
of this message to the intended recipient(s), you are hereby notified that any 
dissemination,
distribution, or copying of this e-mail message is strictly prohibited. If you have 
received this message
in error, please immediately notify the sender and delete this e-mail message from 
your computer.

==


--
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: Can I launch a graphical windows app from within a cygwin ssh session

2004-11-02 Thread DePriest, Jason R.
On Tuesday, November 02, 2004 4:12 PM, Mark Stuhr wrote
[--cut some stuff--]
> launch a windows app that should run on that remote (or host, can
> never keep that syntax straight) box.  (In other words a server runs
> an app most of the time, but not as a service.  That app needs
> restarting for whatever reason and I'm on the road.  I can dial in
> with my pocketpc and get an ssh session going to that server, at that
> point I'd want to kill that app, easy, then I need to restart that
> app so it will stay running on that server even after I disconnect my
> ssh session. 
[--cut some stuff--]
> How do I do that???

I am not in a position to test it out right now.

But what happens if you have the Cygwin SSH service on the remote system
set to interact with the local desktop?  Cygrunsrv has a commandline
switch --interactive to set this when you install the service, but you
can also change it by looking at the service properties through the
Windows services applet.

-Jason

PS - I apologize in advance for the legal disclaimer at the bottom of my
email message.  This is tacked on by our SMTP gateway and I have no
control over it.
-- 

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential
information. If you are not the intended recipient(s), or the employee or agent 
responsible for delivery
of this message to the intended recipient(s), you are hereby notified that any 
dissemination,
distribution, or copying of this e-mail message is strictly prohibited. If you have 
received this message
in error, please immediately notify the sender and delete this e-mail message from 
your computer.

==


--
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: sshd login problems

2004-11-02 Thread DePriest, Jason R.
On Tuesday, November 02, 2004 4:55 PM, Martin Magnusson wrote
[--- cut ---]
> Connection to xxx.xxx.xxx.xxx closed.
[--- cut ---] 
> / martin

If you have privilege separation enabled, try disabled it.

You can do it easily by using regedit (disclaimer: back up your registry
first).

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/Parameters/App
Args
Change the '-D' to a '-D -r'

After restarting the service, it might work.

-Jason

PS - I apologize in advance for the legal disclaimer at the bottom of my
email message.  This is tacked on by our SMTP gateway and I have no
control over it.
-- 

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential
information. If you are not the intended recipient(s), or the employee or agent 
responsible for delivery
of this message to the intended recipient(s), you are hereby notified that any 
dissemination,
distribution, or copying of this e-mail message is strictly prohibited. If you have 
received this message
in error, please immediately notify the sender and delete this e-mail message from 
your computer.

==


--
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: Can I launch a graphical windows app from within a cygwin ssh session

2004-11-02 Thread DePriest, Jason R.
On Tuesday, November 02, 2004 4:55 PM, Mark Stuhr wrote
[--- cut ---]
> "Gerrit P. Haase" <> on Tuesday, November 02, 2004
> at 3:38 PM -0800 wrote:
[--- cut ---]
>>> restarting for whatever reason and I'm on the road.  I can dial in
>>> with my pocketpc and get an ssh session going to that server, at
>>> that point I'd want to kill that app, easy, then I need to restart
>>> that app so it will stay running on that server even after I
>>> disconnect my ssh session. 
>>> 
>>> How do I do that???
>> 
>> VNC through a tunnel?
[--- cut ---]
> 
> Mark Stuhr
[--- cut ---]

PocketPC might be running from a mobile phone or something.  VNC is
possible, but not optimized for the tiny display.  I've tried SSH client
+ VNC Viewer on my Zaurus SD-5500 (Sharp mobile Linux device) and
quickly decided I'd rather not do it again.

-Jason

PS - I apologize in advance for the legal disclaimer at the bottom of my
email message.  This is tacked on by our SMTP gateway and I have no
control over it.
-- 

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential
information. If you are not the intended recipient(s), or the employee or agent 
responsible for delivery
of this message to the intended recipient(s), you are hereby notified that any 
dissemination,
distribution, or copying of this e-mail message is strictly prohibited. If you have 
received this message
in error, please immediately notify the sender and delete this e-mail message from 
your computer.

==


--
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 /dev/*

2004-11-03 Thread DePriest, Jason R.
On Wednesday, November 03, 2004 9:32 AM, Andrew DeFaria wrote
[--- cut ---]
> To me, a disk drive IS a device. YMMV! :-)
[--- cut ---]

Wouldn't the 'device' listings need to be more like the 'Volume'
listings below (as opposed to the drive letters)?

\\.\Volume{a58472f0-b0cd-11d8-aba8-806d6172696f}\
  Mounted on c:\

\\.\Volume{a58472f1-b0cd-11d8-aba8-806d6172696f}\
  Mounted on d:\

\\.\Volume{118b41f5-2c5b-11d9-84cf-005056c8}\
  Mounted on e:\

\\.\Volume{a58472f2-b0cd-11d8-aba8-806d6172696f}\
  Mounted on a:\

or even like these?
\\?\Device\Harddisk0\Partition0
\\?\Device\Harddisk0\Partition1
\\?\Device\Floppy0
\\?\Device\CdRom0
\\?\Device\CdRom1

-Jason

PS - I apologize in advance for the legal disclaimer at the bottom of my
email message.  This is tacked on by our SMTP gateway and I have no
control over it.
-- 

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential
information. If you are not the intended recipient(s), or the employee or agent 
responsible for delivery
of this message to the intended recipient(s), you are hereby notified that any 
dissemination,
distribution, or copying of this e-mail message is strictly prohibited. If you have 
received this message
in error, please immediately notify the sender and delete this e-mail message from 
your computer.

==


--
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: Suggesting an application

2004-11-29 Thread DePriest, Jason R.
If you install winpcap (http://winpcap.polito.it/), you can use windump
(http://windump.polito.it/).

If it is in your PATH while you are running a cygwin shell, you can run
it from there.  You can ssh into a system running cygwin's OpenSSH
server and run windump (assuming you installed it on the remote system).

It works just like tcpdump for the most part since it uses tcpdump as
the code-base.

Since Cygwin is just a subsystem and not a virtual machine of any kind,
recompiling libpcap or tcpdump would be sort of pointless.

-Jason

On Monday, November 29, 2004 5:51 PM, Gregg C Levine wrote

> Hello from Gregg C Levine
> This is probably the wrong Cygwin list for bringing this up, but
> For my work I need to have the tcpdump application running.
> 
> That's usually part of all Linux distributions, including my favorite
> one. But I've noticed it's not part of the Cygwin collection. Of
> course I can grab
> the sources from that distribution and build it here, but what about
> adding it
> to the next great release of Cygwin?
> ---
> Gregg C Levine landocalrissian atsign att dot net
> "This signature prefers to fly X-Wings."

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged 
and/or confidential
information. If you are not the intended recipient(s), or the employee or agent 
responsible for delivery
of this message to the intended recipient(s), you are hereby notified that any 
dissemination,
distribution, or copying of this e-mail message is strictly prohibited. If you 
have received this message
in error, please immediately notify the sender and delete this e-mail message 
from your computer.

==


--
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: Command boxes popping up

2004-12-13 Thread DePriest, Jason R.


On Monday, December 13, 2004 9:39 AM, [DELETED] wrote

> Hi Dave,
> 
> No, I have no problems with graphical applications.
> 
> My scripts run a variety of commands, mostly cygwin,
> but some applications run in a DOS shell.
> 
> To elaborate, I run bash, and inside this shell I start ActiveState
> Perl, which of course knows nothing about Cygwin. The script run by
> ActiveState's Perl, then starts system or `` commands, and it is
> from there that I get command boxes.
> 
> I have run a small test :
> $ /cygdrive/c/Perl/bin/perl -e "system \"dir\""
> 
> and this pops up a DOS command box while the command
> executes.
> 
> I did not have that before, and the only thing changed was
> the upgrade to Cygwin 1.5.11.
> 
> Regards,
> 
> Jurgen

I am running Cygwin 1.5.12.

I also have ActiveState Perl installed (5.6.1, build 638).

Running your test script does not produce a pop-up box for me.  It
displays the results in the existing cygwin bash shell.

-Jason

PS - I apologize in advance for the legal disclaimer at the bottom of my
email message.  This is tacked on by our SMTP gateway and I have no
control over it.
-- 

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged 
and/or confidential
information. If you are not the intended recipient(s), or the employee or agent 
responsible for delivery
of this message to the intended recipient(s), you are hereby notified that any 
dissemination,
distribution, or copying of this e-mail message is strictly prohibited. If you 
have received this message
in error, please immediately notify the sender and delete this e-mail message 
from your computer.

==


--
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: looking for shell program to retrieve property info from windows files

2005-01-19 Thread DePriest, Jason R.
I did something similar in perl.

#!/usr/bin/perl

# Version 1.0
# - It does what it does.

use Digest::MD5 qw(md5_hex);
use Win32::File;
use Win32::File::VersionInfo;
use Win32::FileTime;

$fname = $ARGV[0];

print "\nFile: $fname";

if (! -e $fname) {
print "\n\nI cannot find your file.";
print "\nError!";
print "\nperl: $!\nos: $^E\n";
die;
}

Win32::File::GetAttributes("$fname",$fattr);
#print "\nWin32::File::GetAttrubutes(\"$fname\",\$fattr) -> $fattr";
$finfo = Win32::File::VersionInfo::GetFileVersionInfo("$fname");
#print "\n\$finfo =
Win32::File::VersionInfo::GetFileVersionInfo(\"$fname\") -> $finfo";
$ftime = Win32::FileTime->new("$fname");
#print "\n\$ftime = Win32::FileTime->new(\"$fname\") -> $ftime";

if ($finfo) {
print "\nFile Version: ", $finfo->{FileVersion};
print "\nProduct Version: ", $finfo->{ProductVersion};
%Flags = $finfo->{Flags};
foreach $key (keys %Flags) {
if ($Flags{$key}) {
print "\nFlags: ", $key;
} # end of if the value exists
} # end of foreach flag
print "\nOS: ", $finfo->{OS};
print "\nType: ", $finfo->{Type};
print "\nDate: ", $finfo->{Date};
my $lang = (keys %{$finfo->{Lang}})[0];
if ($lang) {
print "\nLanguage: ", $lang;
print "\nComments: ", $finfo->{Lang}{$lang}{Comments};
print "\nCompanyName: ", $finfo->{Lang}{$lang}{CompanyName};
print "\nFileDescription: ", 
$finfo->{Lang}{$lang}{FileDescription};
print "\nFileVersion: ", $finfo->{Lang}{$lang}{FileVersion};
print "\nInternalName: ", $finfo->{Lang}{$lang}{InternalName};
print "\nCopyright: ", $finfo->{Lang}{$lang}{Copyright};
print "\nTrademarks: ", $finfo->{Lang}{$lang}{Trademarks};
print "\nOriginalFilename: ", 
$finfo->{Lang}{$lang}{OriginalFilename};
print "\nProductName: ", $finfo->{Lang}{$lang}{ProductName};
print "\nProductVersion: ", 
$finfo->{Lang}{$lang}{ProductVersion};
print "\nPrivateBuild: ", $finfo->{Lang}{$lang}{PrivateBuild};
print "\nSpecialBuild: ", $finfo->{Lang}{$lang}{SpecialBuild};
}
} # end of if
else {
print "\n\nI cannot get the file flags.";
print "\nError!";
print "\nAre you sure this is a valid Microsoft Portable Executable
(PE) file with valid version information?\n";
}

if ($fattr) {
$#attr = -1;
if ($fattr & ARCHIVE) { push(@attr,"archive"); }
if ($fattr & COMPRESSED) { push(@attr,"compressed"); }
if ($fattr & DIRECTORY) { push(@attr,"directory"); }
if ($fattr & HIDDEN) { push(@attr,"hidden"); }
if ($fattr & NORMAL) { push(@attr,"normal"); }
if ($fattr & OFFLINE) { push(@attr,"offline"); }
if ($fattr & READONLY) { push(@attr,"readonly"); }
if ($fattr & SYSTEM) { push(@attr,"system"); }
if ($fattr & TEMPORARY) { push(@attr,"temporary"); }
print "\nFile Attributes: ", join(", ",@attr);
}
else {
print "\n\nI cannot get the file attributes.";
print "\nError!";
print "\nperl: $!\nos: $^E\n";
}

if ($ftime) {
printf(
"\nCreated : %4d/%02d/%02d %02d:%02d:%02d",
$ftime->Create(
'year', 
'month', 
'day', 
'hour', 
'minute', 
'second' 
)
);
printf(
"\nAccessed : %4d/%02d/%02d %02d:%02d:%02d",
$ftime->Access(
'year', 
'month', 
'day', 
'hour', 
'minute', 
'second' 
)
);
printf(
"\nModified : %4d/%02d/%02d %02d:%02d:%02d",
$ftime->Modify(
'year', 
'month', 
'day', 
'hour', 
'minute', 
'second' 
)
);
} # end of if
else {
print "\n\nI cannot get the file times.";
print "\nError!";
print "\nperl: $!\nos: $^E\n";
}

print "\nMD5 Checksum: ", md5_hex("$fname");

print "\n";

On Wed, 19 Jan 2005 08:03:00 -0500, Jason Tishler < [REMOVED] > wrote:
> Jaye,
> 
> On Tue, Jan 18, 2005 at 07:15:09PM -0500, Jaye Speaks wrote:
> > does anyone know of a shell program to retrieve the property info from
> > windows files.  I need info like the fileversion or prodversion.
> 
> No, so I wrote my own:
> 
>$ version 'C:\Program Files\Microsoft Office\OFFICE11\WINPROJ.EXE'
>Required Information:
>ProductVersion = 11.0.2003.816
>FileVersion 

Re: sshd on windows

2005-01-21 Thread DePriest, Jason R.
There are several.

You can purchase a Windows SSH server from F-Secure or SSH
Corporation.  The servers support SSH2 and SFTP.  I haven't looked at
the F-Secure version in a long time, but the SSH Corporation version
supports PKI in addition to user name / password.

If you google for 'ssh server win32' you can get lots of pointers.  I
have no idea which of the shareware / freeware ssh servers are using
cygwin; so you can research that on your own.

-Jason

On Fri, 21 Jan 2005 10:58:15 -0500, Jennifer Lai <[REMOVED]> wrote:
> Hi,
>Does anyone know if there is a cygwin.dll free ssh server for windows?
> 
> Thanks,
> Jennifer
> 
> --

--
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/



Keeping cygwin updated on remote systems

2005-03-02 Thread DePriest, Jason R.
I have about 20 systems that are either behind firewalls that I don't
control or hardened so that my only access to them is via SSH.

I am using OpenSSH installed with the Cygwin setup.exe program and
configured with the included scripts.

I also tunnel VNC through SSH to get a remote desktop when necessary.

My problem is: how do I keep these systems updated since my only
access is through the components I need to update?

I am also trying to find a way to avoid manually connecting to each
system to run setup.exe and then rebooting it so in-use files can be
updated.

Does anyone have any methods they use to handle this?

The 20 systems should all be mostly identical.  So my first thought
was to create a representative build in a test lab, keep it updated,
and then batch an rsync over SSH of the files to the 20 systems
identically up-to-date.

How can I handle in-use files if I am not using setup.exe?

I would love to hear any suggestions that anyone has.

-Jason

--
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: Keeping cygwin updated on remote systems

2005-03-03 Thread DePriest, Jason R.
Remote Desktop is not available on them.

I can already use VNC tunneled through SSH to manually run setup.exe.

What I really need is a way to update the files that have changed and
run the install scripts without running setup.exe.

-Jason


On Wed, 2 Mar 2005 22:24:50 -0600 (CST), Satish Balay  wrote:
> > On Wed, 2 Mar 2005, DePriest, Jason R. wrote:
> >
> > > I also tunnel VNC through SSH to get a remote desktop when necessary.
> > >
> > > My problem is: how do I keep these systems updated since my only
> > > access is through the components I need to update?
> 
> is 'remote desktop' also disabled on these machines? I tunnel it
> through ssh [via a different box] - and update cygwin via setup.exe
> 
> Satish
> 
> --

--
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: Can run.exe be packaged separately from X?

2004-06-10 Thread DePriest, Jason R.
Check the properties of your shortcut.

On the 'Shortcut' tab look at the entry in the 'Run:' field.

It should say 'Normal window' but probably says 'Minimized'.

-Jason

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of David Mastronarde
Sent: Thursday, June 10, 2004 1:49 PM
To: [EMAIL PROTECTED]
Subject: Re: Can run.exe be packaged separately from X?


On Thu, 10 Jun 2004, Volker Quetschke wrote:

> Hi!
> 
> > I recently discovered the great advantages of rxvt and then found
that the
> > run program is useful for running it from an icon.
> Maybe I miss something, but you don't need run to start rxvt from an
> icon. This is what I did:
> 
> Create a shortcut on your desktop with:
> 
> Target:
> C:\cygwin\bin\rxvt.exe -cr green -sl 1000 -tn xterm -e /usr/bin/bash 
> --login -i
> 
> Start in:
> C:\cygwin\bin
> 
> Thats it. (You don't have to use the -cr -sl and -tn switches, but I
> like it that way ;) )
> 

Thanks!

When I first played with rxvt two months ago I tried a similar shortcut
and found that this started a DOS window as well that could not be
killed
without killing the rxvt window.  This was in line with what some of the
documentation predicted - and the same documentation suggested using run
to take care of the problem.  That's how I got into using run.

Now I have tried your shortcut and it works without creating a DOS
window.
There is the slight disadvantage that the window does not pop up but 
starts out parked in the task bar.  Does this happen for you?

David


--
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/



--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential information. If you are not the intended recipient(s), or the employee or 
agent responsible for delivery of this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution, or copying of this e-mail 
message is strictly prohibited. If you have received this message in error, please 
immediately notify the sender and delete this e-mail message from your computer.


==


--
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: Carriage Returns

2004-06-18 Thread DePriest, Jason R.
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of John Kramer
>Sent: Friday, June 18, 2004 11:33 AM
>To: [EMAIL PROTECTED]
>Subject: Carriage Returns
>
>
>To whom it may concern:
>
>I have a real problem with the way that cygwin/cygwin's version of perl

>handles carriage returns (\r).

.. cut some stuff ...

>
>Thanks,
>John

... cut some stuff ...

>Problem reports:   http://cygwin.com/problems.html

Please follow the instructions here ^^^

This will allow the community to better assist you.

-Jason

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential information. If you are not the intended recipient(s), or the employee or 
agent responsible for delivery of this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution, or copying of this e-mail 
message is strictly prohibited. If you have received this message in error, please 
immediately notify the sender and delete this e-mail message from your computer.


==


--
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: Carriage Returns

2004-06-18 Thread DePriest, Jason R.
>-Original Message-
>From: cygwin-owner at cygwin dot com [mailto: cygwin-owner at cygwin
dot com] On Behalf Of Dave Korn
>Sent: Friday, June 18, 2004 11:55 AM
>To: cygwin at cygwin dot com
>Subject: RE: Carriage Returns
>
>
>> -Original Message-
>> From: cygwin-owner On Behalf Of DePriest, Jason R.
>
>
>  Oops!  You quoted the list address uncensored three times, included a
>disallowed disclaimer, and didn't spot that no amount of cygcheck
output is
>going to give us any clue why Mr. Kramer is complaining about the fact
that
>Cygwin uses POSIX style line-ends in a completely correct and
>standards-specified fashion...
>
>
>cheers, 
>  DaveK
>-- 
>Can't think of a witty .sigline today
>
>
>--
>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/

Somebody seems a bit grumpy today.

I apologize for the 'disclaimer' as it was recently added to our
corporate Exchange servers which I do not have administrative control
over.

I use corporate-standard Outlook as my email client and I don't know how
to make it obfuscate email addresses by default.

I usually manually fix the email addresses, but I didn't remember to do
it.

Also, I'm guessing nobody else gets this problem, or someone would have
mentioned it: I get the confidentiality disclaimer appended *TWICE*.
Exchange sticks it on once when the message goes out, and, since it
recognized that I'm an employee, sticks another one on when it comes
back in.

I was wondering if John Kramer could try NOBINMODE in his CYGWIN
environment variable to try to get around the issues he has.

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential information. If you are not the intended recipient(s), or the employee or 
agent responsible for delivery of this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution, or copying of this e-mail 
message is strictly prohibited. If you have received this message in error, please 
immediately notify the sender and delete this e-mail message from your computer.


==


--
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 (WAY) RE: Carriage Returns

2004-06-18 Thread DePriest, Jason R.
Igor Pechtchanski wrote:
> On Fri, 18 Jun 2004, DePriest, Jason R. wrote:
> 
>>> -Original Message-
>>> From: cygwin-owner at cygwin dot com [mailto: cygwin-owner at
>>> cygwin dot com] On Behalf Of Dave Korn Sent: Friday, June 18, 2004
>>> 11:55 AM 
>>> To: cygwin at cygwin dot com
>>> Subject: RE: Carriage Returns
>>> 
>>>> -Original Message-
>>>> From: cygwin-owner On Behalf Of DePriest, Jason R.
>>> 
>>> 
>>>  Oops!  You quoted the list address uncensored three times,
>>> included a 
>>> disallowed disclaimer, and didn't spot that no amount of cygcheck
>>> output is going to give us any clue why Mr. Kramer is complaining
>>> about 
>>> the fact that Cygwin uses POSIX style line-ends in a completely
>>> correct 
>>> and standards-specified fashion...
>> 
>> Somebody seems a bit grumpy today.
> 
> MIT = Meanie In Training (no offense to the similarly named
> institution). 
> 
>> I apologize for the 'disclaimer' as it was recently added to our
>> corporate Exchange servers which I do not have administrative
>> control over. 
>> 
>> I use corporate-standard Outlook as my email client and I don't know
>> how to make it obfuscate email addresses by default.
> 
> Do you Google:
> <http://google.com/search?q=outlook+raw+addresses+replies>? 
> 
>> I usually manually fix the email addresses, but I didn't remember to
>> do it. 
>> 
>> Also, I'm guessing nobody else gets this problem, or someone would
>> have mentioned it: I get the confidentiality disclaimer appended
>> *TWICE*. Exchange sticks it on once when the message goes out, and,
>> since it recognized that I'm an employee, sticks another one on when
>> it comes back in.
> 
> Nasty, but I guess we have no control over bureaucratic idiocy.  Just
> grin and bear it.
> 
>> I was wondering if John Kramer could try NOBINMODE in his CYGWIN
>> environment variable to try to get around the issues he has.
> 
> Actually, nobinmode just deals with pipes.  I think what he might
> want is actually PERLIO=crlf (a WAG based on a garbled description of
> the problem in the OP's message).
>   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

I recently had a system crash and I completely forgot about
Outlook-QuoteFix when I got my new system.  Thanks for reminding about
this great tool.  I'm using it now.

-Jason

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential information. If you are not the intended recipient(s), or the employee or 
agent responsible for delivery of this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution, or copying of this e-mail 
message is strictly prohibited. If you have received this message in error, please 
immediately notify the sender and delete this e-mail message from your computer.


==


--
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: Accessing Cygwin from a LAN PC

2004-06-22 Thread DePriest, Jason R.
zzapper wrote:
> Sorry bet this is a Cygwin chestnut.
> 
> I would like to access CygWin on my PC from other PCs on our LAN.
> 
> I guess VNC , but which flavour?  Other solutions?
> 
> zzapper (vim, cygwin, wiki & zsh)
> --
> 
> vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?"
> 
> http://www.vim.org/tips/tip.php?tip_id=305  Best of Vim Tips

Depending on what you mean by "access", I would highly recommend using
the OpenSSH package that can be downloaded via setup.exe.

After downloading it, run the ssh-host-config script to get an ssh
daemon running as a service.

Then run ssh-user-config to get all the keys and directories generated
for your user account.

There is a doc at /usr/share/doc/Cygwin/openssh.README that explains the
OpenSSH + Cygwin specific wonkiness and the regular SSH docs are at
/usr/share/doc/openssh.

-Jason

PS - I apologize in advance for the legal disclaimer at the bottom of my
email message.  This is tacked on by our SMTP gateway and I have no
control over it.



--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential information. If you are not the intended recipient(s), or the employee or 
agent responsible for delivery of this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution, or copying of this e-mail 
message is strictly prohibited. If you have received this message in error, please 
immediately notify the sender and delete this e-mail message from your computer.


==


--
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: Setting up cygwin so other users can run processes on my computer

2004-06-25 Thread DePriest, Jason R.
Rajiv Chopra wrote:
> I'm a bit of a novice to cygwin, but after installing it on my PC, I
> was very pleased with the ability to compile my C++ code with g++ and
> get faster runtimes than on our SUN servers at work.
> 
> What I would like to do is enable another colleague to run processes
> on my computer.  Is it possible to set up Cygwin such that he can
> telnet to my machine and run a process?
> 
> Thanks in advance
> 
> Rajiv

I would suggest installing openssh from http://www.cygwin.com/setup.exe.

After that you can run the ssh-host-config script to install it as a
service.

After making sure the other guy's user ID is in your /etc/passwd file,
you can have him log on your system locally and get to a bash prompt to
initialize his environment.  Then have him run ssh-user-config to get
the ssh stuff for his user account created.

After that, he should be able to ssh into your system and do what he
needs to do.

-Jason

PS - I apologize in advance for the legal disclaimer at the bottom of my
email message.  This is tacked on by our SMTP gateway and I have no
control over it.  I have also put in a request to have the text wrap at
character 72 instead of just a single incredibly long line.

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential
information. If you are not the intended recipient(s), or the employee or agent 
responsible for delivery
of this message to the intended recipient(s), you are hereby notified that any 
dissemination,
distribution, or copying of this e-mail message is strictly prohibited. If you have 
received this message
in error, please immediately notify the sender and delete this e-mail message from 
your computer.

==


--
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: Wrapping long lines (Was Re: FAQ update suggestion for "I'm having basic problems with find. Why?")

2004-07-09 Thread DePriest, Jason R.
On Friday, July 09, 2004 10:39 AM, Christopher Faylor wrote

> On Fri, Jul 09, 2004 at 11:27:55AM +0100, William Blunn wrote:
>> I have set up several web-based systems which do this, and it wasn't
>> hard.
> 
>> On Thu, Jul 08, 2004 at 06:26:27PM -0400, Christopher Faylor wrote:
>>> Finally, you (Igor) are right that we are not going to change the
>>> sourceware.org software to wrap in any other fashion than it does
>>> now. 
> 
> sourceware.org, the home of cygwin.com, is a technical site.  The
> mailing lists that it sponsors are for technical discussions.
> 
> In these discussions, the formatting of messages could conceivably
> actually *mean something*.  It's entirely possible that someone meant
> to use 997 characters in one of the lines of their message to
> illustrate a point or even to provide a patch.
> 
> So, I am not going to be spending my time hacking on the mailing list
> archiving software to add a special exception for cygwin mailing list
> denizens who want to forget about hitting enter and then read their
> messages on the web.  If the use of  in the archives causes you
> problems, then please suffer in silence or find some other archiving
> site.  Maybe gmane would work better.
> 
> Please do not insinuate that there is some technical or laziness
> barrier here.  You are perched precariously on your soapbox and
> apparently haven't really given the issue any real contextual thought
> other than "It's easy to do.  They should do it."
> 
> Is this clear?  There will be no changes to the web site archiving. 
> So, if this is what is causing everyone grave concern, then maybe
> this puts this issue to rest.

I always thought that the 'Because We're Just Mean' slogan was a joke.
Well apparently I was wrong.

I cannot believe the level of posturing I am seeing from the
Cygwin-elite.

I live in Memphis, TN, the town where Martin Luther King, Jr. was shot
and killed for trying to change they way things were.

If he and others had simply said, "Blacks and whites are separate but
equal.  That's the way it has always been and that is how it should stay
because it works.  It doesn't matter if true equality has merits and
would benefit some people; everybody else will just have to get over
it," where would The South (that's what it's called down here) be today?

Where would the United States be?

Cygwin is an amazing project.  The tools created by its members make
working in a Windows-centric environment much more bearable.

That does not give some of the project's top members the right to be
complete holier-than-thou ass holes.

I love what Cygwin has enabled me to do since I discovered it a few
years ago.  The community has always been quick to fix issues and keep
the tools up-to-date.  But this feeling that some people's opinions are
golden while others are tin just doesn't make sense.  And it has truly
injured ~my~ opinion of the project as a whole.

It is like when parents who think they know better simply say "because I
said so."

Please at least look into alternatives or "fixing" the system that
started this discussion.

Notice that I have lovingly set my mailer to wrap at 76 characters and I
am using Outlook-QuoteFix for some of the other niceties.  I still have
to manually fix in-line email addresses, though.  I do this to try and
appease the dysfunctional family of the online community of which I
joyfully a member of.

I know you can do 'mean'.  Try 'nice' or at least 'thoughtful and open
minded'.

-Jason

PS - I apologize in advance for the legal disclaimer at the bottom of my
email message.  This is tacked on by our SMTP gateway and I have no
control over it.  I have also put in a request to have the text wrap at
character 72 instead of just a single incredibly long line.
-- 

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential
information. If you are not the intended recipient(s), or the employee or agent 
responsible for delivery
of this message to the intended recipient(s), you are hereby notified that any 
dissemination,
distribution, or copying of this e-mail message is strictly prohibited. If you have 
received this message
in error, please immediately notify the sender and delete this e-mail message from 
your computer.

==


--
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: problem typing the letter a

2004-07-28 Thread DePriest, Jason R.

On Wednesday, July 28, 2004 3:33 PM, Sid Subr wrote

> 
> any information would be helpful
> 

I agree.

Can you please follow the guidelines from =>

> Problem reports:   http://cygwin.com/problems.html

You'll need to type the command "cygcheck -s -v -r > cygcheck.out",
which doesn't require the letter 'a', so you should be good.

-Jason

PS - I apologize in advance for the legal disclaimer at the bottom of my
email message.  This is tacked on by our SMTP gateway and I have no
control over it.
-- 

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential
information. If you are not the intended recipient(s), or the employee or agent 
responsible for delivery
of this message to the intended recipient(s), you are hereby notified that any 
dissemination,
distribution, or copying of this e-mail message is strictly prohibited. If you have 
received this message
in error, please immediately notify the sender and delete this e-mail message from 
your computer.

==


--
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: Accessing Property Sheets

2004-07-29 Thread DePriest, Jason R.
On Thursday, July 29, 2004 7:31 AM, Igor Pechtchanski wrote

> On Wed, 28 Jul 2004, George wrote:
> 
>> I keep running up against situations where I require access to the
>> property sheet for a folder/file to perform a settings change I can't
>> accomplish otherwise.
> 
> Exactly which properties are you trying to change?  Some of the
> security ones can be changed via setfacl, as well as chmod/chown (I
> don't think either one supports setting inheritable permissions,
> though). 
> 
>> I'm wondering whether Cygwin offers some way I've not yet discovered
>> to display the property sheet dialog for a folder/file.  Seems it
>> would save the trouble of opening an explorer window from bash,
>> selecting a file, opening the context menu by right clicking and
>> then selecting properties (before navigating the various tabs and
>> clicking some more). 
> 
> Not really Cygwin-specific, but look up the Shell API on MSDN [*]
> (which you can invoke via rundll/rundll32), in particular, the
> SHObjectProperties function.
> 
> To put this back on-topic, if you do manage to find a way to do what
> you want that works on all OS's, please consider making a
> cygstart-like utility to do this and contributing it to the Cygwin
> distribution. 
> 
> HTH,
>   Igor
> [*] One of the possible pointers is
> 
> --
>   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!
> 
> "Happiness lies in being privileged to work hard for long hours in
> doing whatever you think is worth doing."  -- Dr. Jubal Harshaw

I have a perl script that I use from a Windows command prompt that does this.

It uses Digest::MD5, Win32::File, Win32::File::VersionInfo, and Win32::FileTime to get 
as much information as possible.

It won't run under a cygwin prompt because I don't have all of those Win32 modules 
available, but if you are interested, I can send it to you.

Here is a sample of the output:
C:\Tools\Code\projects\file-version>perl file-version-edit.pl 
\tools\sysinternals\pslist.exe

File: \tools\sysinternals\pslist.exe
Your file seems to exist.
Win32::File::GetAttrubutes("\tools\sysinternals\pslist.exe",$fattr) -> 32
$finfo = 
Win32::File::VersionInfo::GetFileVersionInfo("\tools\sysinternals\pslist.exe") -> 
HASH(0x183f094)
$ftime = Win32::FileTime->new("\tools\sysinternals\pslist.exe") -> 
Win32::FileTime=HASH(0x18353cc)
File Version: 1.26.0.0
Product Version: 1.26.0.0
OS: NT/Win32
Type: Application
Date: 
Language: English (United States)
Comments:
CompanyName: Sysinternals
FileDescription: Sysinternals PsList
FileVersion: 1.26
InternalName: pslist
Copyright: Copyright â 2000-2004 Mark Russinovich
Trademarks:
OriginalFilename: pslist.exe
ProductName: Sysinternals pslist
ProductVersion: 1.26
PrivateBuild:
SpecialBuild:
File Attributes: archive
Created : 2004/05/31 14:25:04
Accessed : 2004/07/29 10:20:03
Modified : 2004/05/31 14:25:04
MD5 Checksum: 28ad0aaa0190120c65484d8e079daa62

C:\Tools\Code\projects\file-version>

-Jason

PS - I apologize in advance for the legal disclaimer at the bottom of my email 
message.  This is tacked on by our SMTP gateway and I have no control over it.
-- 

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential
information. If you are not the intended recipient(s), or the employee or agent 
responsible for delivery
of this message to the intended recipient(s), you are hereby notified that any 
dissemination,
distribution, or copying of this e-mail message is strictly prohibited. If you have 
received this message
in error, please immediately notify the sender and delete this e-mail message from 
your computer.

==


RE: how to check what cygwin packages are installed on the system ?

2004-08-03 Thread DePriest, Jason R.
On Tuesday, August 03, 2004 10:45 AM, Robin Bowes wrote

> On Tue, August 3, 2004 16:19, Andrew DeFaria said:
>> Christopher Faylor wrote:
>>> 
>>> And you would do that rather than use the tool designed for
>>> providing 
>>> the information, because...?
>> 
>> To answer the question: "Which package brought in this file?" as in:
>> 
>> 
>> $ cd /etc/setup
>> $ str=gcc.exe
>> $ for pkg in *.gz; do
>> 
>>> zcat $pkg | grep -q $str if [ $? -eq 0 ]; then echo $str appears in
>>> $pkg fi done 
> 
> Or:
> 
> $ cygcheck -f /usr/bin/gcc.exe
> gcc-3.3.1-3
> 
> R.
> --
> http://robinbowes.com

$ cygcheck -f /etc/inetd.conf


$ for pkg in *.gz; do zcat $pkg | grep -q "inetd.conf"; if [ $? -eq 0 ];
then echo $str appears in $pkg; fi; done
appears in xinetd.lst.gz

cygcheck -f works for some files apparently, but not all.

-Jason

PS - I apologize in advance for the legal disclaimer at the bottom of my
email message.  This is tacked on by our SMTP gateway and I have no
control over it.
-- 

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential
information. If you are not the intended recipient(s), or the employee or agent 
responsible for delivery
of this message to the intended recipient(s), you are hereby notified that any 
dissemination,
distribution, or copying of this e-mail message is strictly prohibited. If you have 
received this message
in error, please immediately notify the sender and delete this e-mail message from 
your computer.

==


--
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 check what cygwin packages are installed on the system ?

2004-08-03 Thread DePriest, Jason R.
On Tuesday, August 03, 2004 11:39 AM, Christopher Faylor wrote

> On Tue, Aug 03, 2004 at 10:58:48AM -0500, DePriest, Jason R. wrote:
>> On Tuesday, August 03, 2004 10:45 AM, Robin Bowes wrote
>> 
>>> On Tue, August 3, 2004 16:19, Andrew DeFaria said:
>>>> Christopher Faylor wrote:
>>>>> 
>>>>> And you would do that rather than use the tool designed for
>>>>> providing the information, because...?
>>>> 
>>>> To answer the question: "Which package brought in this file?" as
>>>> in: 
>>>> 
>>>> 
>>>> $ cd /etc/setup
>>>> $ str=gcc.exe
>>>> $ for pkg in *.gz; do
>>>> 
>>>>> zcat $pkg | grep -q $str if [ $? -eq 0 ]; then echo $str appears
>>>>> in $pkg fi done
>>> 
>>> Or:
>>> 
>>> $ cygcheck -f /usr/bin/gcc.exe
>>> gcc-3.3.1-3
>>> 
>>> R.
>>> --
>>> http://robinbowes.com
>> 
>> $ cygcheck -f /etc/inetd.conf
>> 
>> 
>> $ for pkg in *.gz; do zcat $pkg | grep -q "inetd.conf"; if [ $? -eq
>> 0 ]; then echo $str appears in $pkg; fi; done
>> appears in xinetd.lst.gz
>> 
>> cygcheck -f works for some files apparently, but not all.
> 
> Yeah, that's clearly a good reason *not* to use cygcheck at all and to
> just write your own shell script instead.
> 
> In fact, the next time someone finds a bug in the cygwin DLL, I'd
> suggest just writing all of cygwin's functionality as a shell script,
> just to 
> be safe.
> 
> cgf

Consider it a "request for enhancement" without the requisite patch to
be thoughtfully considered.

-Jason

PS - I apologize in advance for the legal disclaimer at the bottom of my
email message.  This is tacked on by our SMTP gateway and I have no
control over it.
-- 

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential
information. If you are not the intended recipient(s), or the employee or agent 
responsible for delivery
of this message to the intended recipient(s), you are hereby notified that any 
dissemination,
distribution, or copying of this e-mail message is strictly prohibited. If you have 
received this message
in error, please immediately notify the sender and delete this e-mail message from 
your computer.

==


--
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: My info command has stopped working some time

2004-08-06 Thread DePriest, Jason R.
On Friday, August 06, 2004 5:59 PM, zzapper wrote

> On Fri, 06 Aug 2004 21:02:01 +0100,  wrote:
> 
>> Hi,
>> 
>> I can do
>> 
>>> info --help
>> 
>> but typing
>> 
>>> info
>> or
>>> info
>> brings
>> 
>> info: dir: No such file or directory
>> 
>> Havn't needed info for a while so don't know when it broke
>> 
>> zzapper (vim, cygwin, wiki & zsh)
> 
> info -f /usr/info/grep
> 
> But if I set INFOPATH to /usr/info/ that doesn't help
> 
> info grep
> zzapper (vim, cygwin, wiki & zsh)

Info works fine for me.
Typing in
$ info
gives me this:
File: dir,  Node: Top   This is the top of the INFO tree

  This (the Directory node) gives a menu of major topics.
  Typing "q" exits, "?" lists all Info commands, "d" returns here,
  "h" gives a primer for first-timers,
  "mEmacs" visits the Emacs manual, etc.

  In Emacs, you can click mouse button 2 on a menu item or cross
reference
  to select it.

* Menu:

Miscellaneous
* File utilities: (fileutils).  GNU file utilities.
* chgrp: (fileutils)chgrp invocation.   Change file groups.
* chmod: (fileutils)chmod invocation.   Change file permissions.
* chown: (fileutils)chown invocation.   Change file
owners/groups.
* cp: (fileutils)cp invocation. Copy files.
* dd: (fileutils)dd invocation. Copy and convert a file.
* df: (fileutils)df invocation. Report filesystem disk
usage.
* dir: (fileutils)dir invocation.   List directories
briefly.
* dircolors: (fileutils)dircolors invocation.   Color setup for ls.
* du: (fileutils)du invocation. Report on disk usage.
* install: (fileutils)install invocation.   Copy and change
attributes.
* ln: (fileutils)ln invocation. Make links between
files.
* ls: (fileutils)ls invocation. List directory contents.
* mkdir: (fileutils)mkdir invocation.   Create directories.
* mkfifo: (fileutils)mkfifo invocation. Create FIFOs (named
pipes).
* mknod: (fileutils)mknod invocation.   Create special files.
* mv: (fileutils)mv invocation. Rename files.
* rm: (fileutils)rm invocation. Remove files.
* rmdir: (fileutils)rmdir invocation.   Remove empty
directories.
* shred: (fileutils)shred invocation.   Remove files more
securely.
* sync: (fileutils)sync invocation. Synchronize memory and
disk.
* touch: (fileutils)touch invocation.   Change file timestamps.
* vdir: (fileutils)vdir invocation. List directories
verbosely.


-Info: (dir)Top, 36 lines
--All---
--
Welcome to Info version 4.2. Type C-h for help, m for menu item.

Do you have the pinfo program installed?

If so, what does it do when you try to run it?

If not, you can install it with the setup.exe program and see if it
works but info still doesn't.

-Jason

PS - I apologize in advance for the legal disclaimer at the bottom of my
email message.  This is tacked on by our SMTP gateway and I have no
control over it.
-- 

--
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged and/or 
confidential
information. If you are not the intended recipient(s), or the employee or agent 
responsible for delivery
of this message to the intended recipient(s), you are hereby notified that any 
dissemination,
distribution, or copying of this e-mail message is strictly prohibited. If you have 
received this message
in error, please immediately notify the sender and delete this e-mail message from 
your computer.

==


cygcheck.out
Description: cygcheck.out
--
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: updated bash to latest 3.1.17(8)-release; startup has errors now

2006-10-02 Thread DePriest, Jason R.

This google search was pretty much worthless when I ran it before I
sent my message in:
bash "command not found" site:cygwin.com inurl:ml

vi did not show any unusual line endings (CR/LF) in /etc/profile
before I sent my message in

I noticed that the cygcheck output said things weren't there when a
manual check shows that they are there and that they are in the path
that cygcheck says it is checking.

For my issue, not the thread hijacking 'make' issue, I do not have a
dual-core or hyperthreaded system.

I did read the release notes when they came out.  The ANNOUNCE list is
the only one that I read all the messages for.  It did not look like
it should be causing the issues I am having.

It was updated though; so it is my first target.

I will try the update that was just released tomorrow and see if it
makes a difference.

If it does, then I clearly have a cr/lf or two somewhere and I must
root them out and destroy them.

Thanks.

-Jason

On 10/2/06, Tristen Hayfield <[EMAIL PROTECTED]> wrote:

Christopher Faylor wrote:
> On Mon, Oct 02, 2006 at 03:53:42PM -0700, Brian Dessent wrote:
>> "DePriest, Jason R." wrote:
>>> I just want to know if anyone else has experienced this or if not,
>>> what I can check out or examine to fix it.
>> I've also got this problem with "make" saying "target pattern contains
>> no `%'", anybody got an idea what's up with that?
>
> Just a guess but I suspect that it is probably a hyperthreaded/dual-core
> problem.
>
> cgf

Could this be a problem caused by a non-posix path?

Tristen

--
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: updated bash to latest 3.1.17(8)-release; startup has errors now

2006-10-03 Thread DePriest, Jason R.

On 10/3/06, mwoehlke <> wrote:

DePriest, Jason R. wrote:
> This google search was pretty much worthless when I ran it before I
> sent my message in:
> bash "command not found" site:cygwin.com inurl:ml

If you've STFLA'd, it is good to mention this when asking your question. :-)

> vi did not show any unusual line endings (CR/LF) in /etc/profile
> before I sent my message in

...and you know to look for '(dos)' in the status line, right? Although
as Larry pointed out, this is only reliable if vi[m] is configured a
certain way; ultimately, you might want to just try running d2u on it
regardless of what you *think* the line endings are. (Also, have you
checked that there is not some OTHER script being called at login, say
~/.bash_profile, ~/.bashrc, etc) that has 'bad' line endings?)

> I noticed that the cygcheck output said things weren't there when a
> manual check shows that they are there and that they are in the path
> that cygcheck says it is checking.
>
> For my issue, not the thread hijacking 'make' issue, I do not have a
> dual-core or hyperthreaded system.

Hint: that was satire. ;-)
(And to explain/ruin the inside joke, 'make 3-81' was the previous
problem-that-everyone-reported-without-RTFRN'ing)

> I did read the release notes when they came out.  The ANNOUNCE list is
> the only one that I read all the messages for.  It did not look like
> it should be causing the issues I am having.

Ok, but again you should have mentioned that in your first e-mail...
Otherwise, as you can see, people jump to the obvious conclusion.

Plus, the more information you give off the bat, the more likely someone
is to notice a problem and come up with a solution.

--
Matthew
"I don't question your existence -- God" (seen on a church billboard)


--


For some reason, I forgot to look for the [dos] as I thought vi would
just show me the ^M at the end all the time.

I am a bonehead for that.

both od -c and vi -b show that, sure enough, there are plenty of \r\n in there.

Oops and sorry to bother everyone, but at least I learned something out of it.

-Jason

--
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: Cygwin->Linux is slow

2006-10-09 Thread DePriest, Jason R.

On 10/9/06, ppmoore <> wrote:


Yes, I do.

Thanks, I'll try it out.

Paul


Brett Serkez-2 wrote:
>
> 
>> that the time between typing a letter and viewing
>> the response is of the order of 1-2 seconds.
>
> Are you running anit-virus software?  Do you have active virus
> scanning turned on?  If so, try turning it off to see if it changes
> this behavior.
>
> Brett
>
> --


I use cygwin ssh to connect to a Solaris 8 server and to a Debian
GNU/Linux Sarge workstation.

I also connect to an SSH, Inc Windows SSH server and to a couple
cygwin ssh servers.

I do not experience a noticeable slow-down for ssh terminal connections.

The Solaris system bogs down when running X apps to the degree that I
don't bother running X apps from it any more.  I think this is more of
a resource limitation on the Solaris system than on my cygwin system.

The Debian system is slower than I would like, but probably normal and
not as bad as the symptoms you describe.

My anti-virus software does not seem to contribute to any slowness.  I
am running McAfee VirusScan Enterprise 8.0i, patch 11.

-Jason

--
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.21-2: ssh-add unable to connect to ssh-agent with McAfee installed

2006-10-10 Thread DePriest, Jason R.

On 10/10/06, Tim Beuman <> wrote:

Hi,

I still have problems with ssh-agent/ssh-add when I install McAfee.
Browsing over the internet didn't yield a working solution. Before I
could stop McAfee and it would work but with the latest version of
McAfee (version 10?) disabling McAfee doesn't make any difference
anymore. Only an uninstall of McAfee makes things work again but this is
not an option.

A search of the mailing lists yielded other reports of the same problem
but no real solutions.

After some digging in the source I found that ssh-agent keeps waiting in
the select for ssh-add to connect. For whatever reason ssh-add seems to
be unable to connect to the AF_LOCAL socket created by ssh-agent.

Attached the strace files from ssh-agent and ssh-add as well as the
cygcheck output.



DELETED Ridiculous amount of stuff that probably should have been in
an attachment.

I am not familiar with the home version of McAfee VirusScan, but I do
run VirusScan Enterprise 8.0i, patch 11 at work.

Buffer Overflow Protection is disabled by default at the ePolicy
Orchestrator (management server) level because it broke a large number
of applications.

I would see if you can just disable that feature.

Also, if McAfee is the definitive problem, turn on all the logging for
McAfee and see if they tell you what they are blocking.

The home version of the product may have a lot more of their firewall
built in to it for all I know.

All this version does is simple port blocking and a little bit of
worm-like behavior blocking (which you may also want to check out if
you can).

My two guesses would be Buffer Overflow Protection and Access
Protection (that is what they are called in my version).

-Jason

--
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.21-2: ssh-add unable to connect to ssh-agent with McAfee installed

2006-10-10 Thread DePriest, Jason R.

On 10/11/06, Tim Beuman <> wrote:

Hi Jason,

The "Ridiculous amount of stuff" was sent out as atachments but I guess
somehow it ended up inline. Sorry for that.

Anyway, I tried to disable all McAfee options (Virus Protection, Spyware
protection, SystemGuard Protection, Script scanning and email) but to no
avail. With the previous version of McAfee (version 8 I think) I was
able to diable enough to get it working.

When I run ssh-agent with the -d flag (which also keeps it in the
foregound), it works. Only when ssh-agent is started as daemon does the
problem show up. Looks like a privilege problem to me but I will keep
digging.

Tim


--


I was digging through the archives of another website dedicated to
cygwin and ssh and found this:
http://erdelynet.com/archive/ssh-l/2006-02/3608.html

It is for version 8.0i (which is what I am running), but have you
tried running rebaseall as it suggests?

This wacky long-might-not-work link from searching Google groups
http://groups.google.com/group/comp.security.ssh/browse_thread/thread/7810b0a30cb365ac/40f54b7f99935de9?lnk=st&q=ssh+mcafee&rnum=1&hl=en#40f54b7f99935de9
suggests running sshd with '-D -r'

Good luck!

By the way, have you tried to contact McAfee support?

-Jason

--
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.21-2: ssh-add unable to connect to ssh-agent with McAfee installed

2006-10-11 Thread DePriest, Jason R.

Hmm, yup, I bet that's it. See (1) for another example (note: I am also
using Thunderbird). So, perhaps the question is why Jason complained in
the first place, since this seems to be archive policy (and no one has
complained at *me* for doing the same thing). Probably just overlooking
"that's how the archiver works". :-)


GMail happily showed the entire attachment directly inside the
original email message and not as an attachment at all.

-Jason

--
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 as non-adminstrator

2006-10-11 Thread DePriest, Jason R.

On 10/11/06, Tim Largy <> wrote:

After installing and running Cygwin (on Windows XP Professional) as an
administrator, I tried to run it as an ordinary user (no
administrative rights) and ran into permission problems. When I
installed Cygwin, I made sure to select the option to make Cygwin
available to all users, however as an ordinary user, clicking on the
Cygwin icon on my deskop started the BASH shell, which printed "bash:
/etc/profile: Permission denied" and the shell was useless because the
environment wasn't set up.

Now, the Cygwin icon on the desktop is a .bat file with these contents:

@echo off

C:
chdir C:\cygwin\bin

bash --login -i

When a user runs this script for the first time, the user's home
directory is created in /home (really C:\cygwin\home) and
configuration files are copied into the user's home directory. I'm not
certain how this happens (anyone know?) but I'm guessing something
about my file permissions is preventing this. I'm providing the output
of cacls (the Windows command line utility for inspecting file
permissions) for C:\cygwin, C:\cygwin\home, C:\cygwin\etc, and
C:\cygwin\etc\profile. I'm not an expert in NT object permissions but
perhaps someone who is will spot the problem, or tell me that I'm
barking up the wrong tree. Here is the cacls output; note that
SYSENG-PLAYPEN0\largyt is the administrative user who successfully
installed and ran Cygwin; the ordinary user trying to run Cygwin
doesn't appear anywhere in the output:

- - - - - 8< - - - - - - - - - - - - - - - - - - -

Since you are running Windows XP Professional, you can do a little bit
of troubleshooting via the GUI to set file permissions.

Open 'My Computer' / 'Explorer' and browse to the parent directory of
the directory you want to examine, for example C:\cygwin.

Right click on the directory you want to examine and select Properties.

For example, I right clicked on C:\cygwin\etc

Visit the Security tab and click on the Advanced button.

Select the tab on the far right: Effective Permissions

Put a user name in the 'Group or user name' field that cannot access
the folder and then try one that can access this folder.

Hopefully, your problem will jump out.

Another thing to examine is your /etc/passwd file.

Make sure the users who will be using the system is listed there and
if not put him in with the mkpasswd command.

-Jason

--
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: showing cookies and other "Temporary Internet Files"

2006-10-20 Thread DePriest, Jason R.

On 10/20/06, Mike Marchywka <> wrote:

Hi,

ls -al
didn't turn up anything here:

C:\Documents and Settings\Administrator\Local Settings\Temporary Internet
Files

but yet it is loaded with cookes and stuff.
How do I list these?

Thanks.



I'm fairly certain that the stuff you see in that directory when you
use Windows Explorer is a bit of Microsoft magic as in what you see is
not what is really there.

There are actually magic subdirectories in the Temporary Internet
Files directory that hold the files.

ls -a on my directory give me this:
./  ../  Content.IE5/  Content.MSO/  N5QSIAIQ/  OLK65/  desktop.ini*

Check out Content.IE5 and look in its subdirectories.

There you will find what you seek.

If you try it from a cmd.exe prompt, the directory may not show up
(hidden or something).  But you can 'cd' to it any way.

-Jason

--
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: environment variables not propagating when i log in via sshd

2006-10-21 Thread DePriest, Jason R.

On 10/20/06, John Owens <> wrote:


How can I make my system environment variables appear when I ssh through sshd?

Thanks -

JDO


What if you use the option to set environment variables when you
install the service with cygrunsrv?

--env VAR=VALUE

You can use this option multiple times (up to 255 times according to
the --help) to set up as many environment options as you need.

I typically use it to redirect TEMP to /tmp for ssh like this
--env TMP=/tmp --env TEMP=/temp

and to set the CYGWIN environment variable
--env CYGWIN=TTY NTSEC SMBNTSEC BIMODE NTEA

These are stored in the registry and should be read every time ssh starts.

-Jason

--
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 go through a company proxy with ssh ?

2006-10-25 Thread DePriest, Jason R.

On 10/25/06, Teggy P Veerapen <> wrote:

Hello,

I am trying to figure out how to connect to a remote ssh server (in fact to my
home pc which is hosting cygwin/sshd server) with the standard ssh client
coming with cygwin and I need to go through my company proxy.

...

I have done some search on the internet on such issue and I have read about the
ProxyCommand in ssh configuration


I use corkscrew (http://www.agroman.net/corkscrew/) to make use of the
ProxyCommand feature in my ~/.ssh/config file.

It works great.

-Jason

--
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.21-1: CIFS symlinks on network share break Cygwin

2006-10-25 Thread DePriest, Jason R.

On 10/24/06, Larry Hall (Cygwin) <> wrote:

I'm not sure everyone is paying full attention here.
 again.  Reformatted.


The entry just defines TOFU:
Text Over, Full-quote Under (or, in the original German, "Text Oben,
Fullquote Unten"). A combination of top posting and full quoting,
which makes the messages hard to read (accoring to RFC 1855). Often
combined with raw e-mail addresses in quoted messages (see
PCYMTNQREAIYR). Added after repeated requests from Corinna Vinschen

It doesn't stress enough that "hard to read" means "please don't post
in this way if you want people to read your posts and take you
seriously."

Some folks could the definition and think this is the ~preferred~ way
to format messages to this list.

Maybe there should be an entry for what doing it the right way is
called.  I haven't heard TUPO (Text Under Partial-quotes Over)...

-Jason

--
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.21-1: CIFS symlinks on network share break Cygwin

2006-10-25 Thread DePriest, Jason R.

On 10/25/06, Larry Hall (Cygwin) <> wrote:

Certainly this and quoting raw email addresses could be offered as
guidelines in .  Care to offer a
patch


The "submitting a patch" guidelines seem to refer to program
patches... since this is only an HTML update, here it is.

-Jason
178a179,196
> 
> When you respond to a report, you must remember to include
> only what is relevant.
> 
> The contents of the original message or of any other responses are not 
> sacred.  
> Do not hesitate to trim out the extraneous parts as the full messages will 
> still be 
> available as either previously received emails or permantently in the 
> archives.
> 
> Avoid http://cygwin.com/acronyms/#TOFU";>TOFU entirely.
> Putting your replies at the top of the message instead of inline where 
> appropriate and 
> leaving every single bit of the original message and all of the other replies 
> and 
> observations below makes for a very untidy archive. As was arleady mentioned, 
> the 
> original messages are still available.  We don't need you wasting space and 
> bandwidth 
> because you couldn't be bothered to hit the DEL key a few times.
> 
> In addition, please observe  href="http://cygwin.com/acronyms/#PCYMTNQREAIYR";>PCYMTNQREAIYR
> as we are not in the habit of feeding Spam bots.
> 
--
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: Installing packages from cygwin Command Line

2006-10-25 Thread DePriest, Jason R.

On 10/25/06, JZA <> wrote:


Hi everyone, well I have been looking into Cygwin, and I want to know if
there is a command line tool to install some of this packages.


setup.exe has some command-line switches you can use to sort of automate things.

Command Line Options:
-D --download  Download from internet
-L --local-install Install from local directory
-s --site  Download site
-R --root  Root installation directory
-q --quiet-modeUnattended setup mode
-h --help  print help
-l --local-package-dir Local package directory
-r --no-replaceonrebootDisable replacing in-use files on next
   reboot.
-n --no-shortcuts  Disable creation of desktop and start
   menu shortcuts
-N --no-startmenu  Disable creation of start menu shortcut
-d --no-desktopDisable creation of desktop shortcut
-A --disable-buggy-antivirus   Disable known or suspected buggy anti
   virus software packages during
   execution.
Ending cygwin install

--
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/



Problem reporting (was 1.5.21-1: CIFS symlinks on network share break Cygwin)

2006-10-25 Thread DePriest, Jason R.

On 10/25/06, DePriest, Jason R. <> wrote:

On 10/25/06, Larry Hall (Cygwin) <> wrote:
> Certainly this and quoting raw email addresses could be offered as
> guidelines in <http://cygwin.com/problems.html>.  Care to offer a
> patch

The "submitting a patch" guidelines seem to refer to program
patches... since this is only an HTML update, here it is.

-Jason


sorry patch in wrong format... subject changes since I am severely
hijacking this topic

-Jason
--- problems2.html  2006-10-25 14:51:41.09375 -0500
+++ problems.html   2006-10-25 14:50:44.828125000 -0500
@@ -176,6 +176,24 @@ Good example:
 
 
 
+
+When you respond to a report, you must remember to include
+only what is relevant.
+
+The contents of the original message or of any other responses are not 
sacred.  
+Do not hesitate to trim out the extraneous parts as the full messages will 
still be 
+available as either previously received emails or permantently in the 
archives.
+
+Avoid http://cygwin.com/acronyms/#TOFU";>TOFU entirely.
+Putting your replies at the top of the message instead of inline where 
appropriate and 
+leaving every single bit of the original message and all of the other replies 
and 
+observations below makes for a very untidy archive. As was arleady mentioned, 
the 
+original messages are still available.  We don't need you wasting space and 
bandwidth 
+because you couldn't be bothered to hit the DEL key a few times.
+
+In addition, please observe http://cygwin.com/acronyms/#PCYMTNQREAIYR";>PCYMTNQREAIYR
+as we are not in the habit of feeding Spam bots.
+
 
 Run cygcheck -s -v -r > cygcheck.out and include that file 
as
 an attachment in your report.  Please do not compress or
--
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 go through a company proxy with ssh ?

2006-10-25 Thread DePriest, Jason R.

On 10/25/06, Wynfield Henman <> wrote:

I don't know about corkscrew, but some variation of the below which I
use may be helpful to you.

Regards,
  Darel Henman
--
# Example:
## Get connect (small yet good)
#  wget http://www.taiyo.co.jp/~gotoh/ssh/connect.c


I've used this one, too.  They both work about the same.

The important part is "they both work!"

-Jason

--
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 go through a company proxy with ssh ?

2006-10-26 Thread DePriest, Jason R.

On 10/26/06, M. Edward (Ed) Borasky <> wrote:

Brett Serkez wrote:
> While this is being addressed as a technical issue, the proxy server
> is presumably used to implement company policy.  While you will likely
> succeed in circumventing the proxy server, will this put you in
> violation of company policy?  What might the consequences be if a
> threat entered the company network via this circumvention?  What will
> you say to management if they question why you circumvented the proxy
> server?
>
> Just food for thought


"Business need" always trumps "security" in my experience.  That's why
I work in IT Risk Management instead of Data Security.

Regardless, here is how my corkscrew is set up to work properly.

We have Blue Coat proxies that require authentication (tied to active
directory).

I have a file called ~/.ssh/jrdepriest.auth that has a single line:
proxy_user:proxy_pass (obviously with the actual user name and password)

My ~/.ssh/config file has a section ike this:
Host ww.xx.yy.zz
 Connection Attempts 5
 ConnectionTimeout 10
 Protocol 2,1
 LogLevel DEBUG3
 ProxyCommand /usr/local/bin/corkscrew proxy.domain.com:8080 %h %p
~/.ssh/jrdepriest.auth

When I run ssh [EMAIL PROTECTED], it automatically invokes the
corkscrew command which reads my user name and password from the auth
file and sends the information to port 8080 on our proxy server (HTTP,
not HTTPS or SOCKS or FTP which are also all available).

It just works.

-Jason

--
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: sh files

2006-10-30 Thread DePriest, Jason R.

On 10/30/06, dubcek <> wrote:

Thanks Eric. Unfortunately, your remedy did not work. As I mentioned in my
original mail, all my .sh files were made under unix. But I tried d2u anyway
(you never know), but I got the same result.


What does a hex view of your shell script say the line ending are?

For example, I have a working script and my line endings are \x0A

My Windows-y scripts all have \x0D\x0A

You can try u2d, then d2u to see if that can clean up wonky line endings.


Here is an example of one of my unsophisticated .sh files; it was intended
to clean up after a latex session:
rm *.div *.aux *.log


rm is actually in your path, yes?


when I run the clean.sh (this was the name I gave to it), I get the 'command
not found' error reply.


This is the same error you get when bash doesn't understand the line
endings.  What sort of mount (binary vs. text) are your shells scripts
on?

What shell do you run?  The stuff we are talking about is all bash.

You may also want to observe http://cygwin.com/problems.html so you
can send the appropriate attachment to the list to give folks the
information they need to help you.

-Jason

--
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: Reboot vs. Restart Windows

2006-10-30 Thread DePriest, Jason R.

On 10/30/06, Benjamin Madore <> wrote:hat you wanted.


BTW, can one say they restarted Cygwin without restarting windows? Does that
make sense?


No, this does not make sense.

If you had services installed via cygrunsrv and they were running, you
could stop / start them and call that restarting Cygwin services (a
stretch).

More correctly, it would just be 'restarting cygwin sshd' or
'restarting cygwin syslog'.

And even then, the 'cygwin' moniker in the name is sort of extraneous.

If you bought the SSH Communications Security version of the secure
shell service, would you say 'restarting SSH Communications Security
SSH server service' or just 'sshd'?

Also, this became a candidate for TITTTL long ago.

-Jason

--
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 NTFS permission listing oddness.

2006-11-02 Thread DePriest, Jason R.

On 11/2/06, Linda Walsh <> wrote:

You somewhat answered my question, indirectly.
I wasn't aware windows had a "group" security descriptor
in addition to the user-owner-creator field.
Where does it store the information?


Dave Roth has a pretty good description of the various ACLs that Windows uses.

It is on his site for his Win32::Perms perl module.

http://www.roth.net/perl/perms/

Give it a read and see if it answers your questions.

-Jason

--
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/



3PP source code question (IANAL)

2006-11-07 Thread DePriest, Jason R.

Are 3PPs that bundle an old version of cygwin1.dll required in any way
to provide the source code of their app so that I can recompile it
with a modern version of cygwin1.dll?

I have used Foundstone's (now part of McAfee) free tools (found here
http://www.foundstone.com/resources/freetools.htm) for some time and a
few of them use the cygwin dll (Pasco, Galleta, Rifiuti).

However, only Pasco
(http://www.foundstone.com/resources/proddesc/pasco.htm) includes the
source code.

They are all bundled with this cygwin1.dll:
File: cygwin1.dll
File Version: 1003.22.0.0
Product Version: 1003.22.0.0
OS: Unknown/Win32
Type: DLL
Date: 
Language: English (United States)
Comments:
CompanyName: Red Hat
FileDescription: Cygwin« POSIX Emulation DLL
FileVersion: 1.3.22-dontuse-21
InternalName: cygwin1.dll
Copyright: Copyright ⌐ Red Hat, Inc. 1996-2003
Trademarks:
OriginalFilename: cygwin1.dll
ProductName: Cygwin
ProductVersion: 1.3.22-dontuse-21
PrivateBuild:
SpecialBuild:
File Attributes: archive
Created : 2006/11/07 10:06:48
Accessed : 2006/11/07 10:14:43
Modified : 2003/04/07 08:04:36
Size: 971,080 bytes
MD5 Checksum: c81a8dc899edafb570052caaf9661304

The dll is over three years old!

Should I even bother trying to get the source code out of them?

Thanks.

-Jason

--
+ + + NO CARRIER


Re: 3PP source code question (IANAL)

2006-11-07 Thread DePriest, Jason R.

On 11/7/06, Corinna Vinschen wrote:


If you can confirm that all these tools are actually linked against the
Cygwin DLL itself, then sure, why not?  If you don't get a reply or a
negative reply, please keep us informed.


Is this good enough?
[EMAIL PROTECTED] /cygdrive/c/Tools/Foundstone/bin
$ cygcheck ./galleta.exe
.\galleta.exe
 .\cygwin1.dll
   C:\WINDOWS\System32\KERNEL32.dll
 C:\WINDOWS\System32\ntdll.dll
[EMAIL PROTECTED] /cygdrive/c/Tools/Foundstone/bin
$ cygcheck ./pasco.exe
.\pasco.exe
 .\cygwin1.dll
   C:\WINDOWS\System32\KERNEL32.dll
 C:\WINDOWS\System32\ntdll.dll
[EMAIL PROTECTED] /cygdrive/c/Tools/Foundstone/bin
$ cygcheck ./rifiuti.exe
.\rifiuti.exe
 .\cygwin1.dll
   C:\WINDOWS\System32\KERNEL32.dll
 C:\WINDOWS\System32\ntdll.dll

I also ran dependency walker and came up with similar but far more
detailed information.

Since my company uses McAfee VirusScan, we have a couple of contacts,
one of which I have emailed asking how I go about talking to the right
people.

-Jason

--
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: Possible Cygwin1.dll problem

2006-11-08 Thread DePriest, Jason R.

On 11/8/06, root  wrote:

Hi dear Igor,
Thank you for your patience!

Everithink works fine now that I've followed you advice - after using
setup.exe. I thought it will start downloading and installing again, but
actually it just told me "there's nothing to install" and created necessary
mount points and setups. I'm only curious where those mount points are
defined? Is there some /etc/fstab-like file or are they in registry keys?


The Cygwin User's Guide rocks.

http://cygwin.com/cygwin-ug-net/using.html#mount-table

(It's registry keys, by the way)

--
+ + + NO CARRIER

--
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: CASE error in script file

2006-11-08 Thread DePriest, Jason R.

On 11/8/06, Doug  wrote:

Hello,
I am using Cygwin  1.5.21(0.156/4/2).I try to run the shell script called 
test.sh
but i always get the following error

'/test.sh: line 1: syntax error near unexpected token `in
'/test.sh: line 1: `case $1 in


I am using Cygwin 1.5.21(0.156/4/2), too!

I just opened up vim from a bash prompt in an rxvt window, manually
typed in your script, saved it as test.sh and ran ./test.sh.

It printed out 'Dunno' because I didn't give it any options.

It worked fine.

If I convert the file to have DOS line endings instead of UNIX line
endings, I recreate your problem exactly!

I am too lazy to search the (recent) archives about the bash
controversy surrounding line endings, but that is your problem.

Run d2u on your script, and it should work fine.

Also, what editor did you use to create the script?  If it was
notepad, please slap yourself in the forehead and exclaim, "d'oh!"

-Jason

--
+ + + NO CARRIER

--
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/



unable to remove hard link

2006-11-08 Thread DePriest, Jason R.

I did some unfortunate experimenting with compiling different versions
of Sleuthkit and Autopsy (http://www.sleuthkit.org) before they
officially started supporting cygwin.

Autopsy wipes out your PATH when it runs to make sure you are using
the correct version of the utilities.

This also means, it could not see any of the Cygwin dlls that the
tools were compiled with (they've implemented intelligent work-arounds
since then).

I tried hard linking the various dlls it needed in its designated bin directory.

The experiment isn't important (since they now support Cygwin out of
the box), what is important is that I cannot delete my hard links.

Actually, I can get it to go the recycle bin, but it won't leave the
recycle bin.

I can 'restore' them but I cannot empty it.

Looking through my bash history file, I see I did:
chmod a+rwx cygz.dll
unlink cygz.dll

This let me delete the file as far as getting it to the recycle bin,
but that is as far as I can go.

The specific error from Windows is:
Error Deleting File or Folder
Cannot delete cygz: Access is denied.
Make sure the disk is not full or write-protected and that the file is
not currently in use.

Since the file is in my recycle bin, this message makes no sense.

Is there some way I can make the original cygz.dll forget all about a
couple of its hard links because ls still shows it has 3 total instead
of 1 like every other single dll.

Thanks!

-Jason

--
+ + + NO CARRIER


cygcheck.out
Description: Binary data
--
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: unable to remove hard link

2006-11-09 Thread DePriest, Jason R.

On 11/9/06, Larry Hall (Cygwin)  wrote:

DePriest, Jason R. wrote:
>
> Is there some way I can make the original cygz.dll forget all about a
> couple of its hard links because ls still shows it has 3 total instead
> of 1 like every other single dll.

 From your cygcheck.out:

Warning: There are multiple cygwin1.dlls on your path

Get rid of the one in 'c:\Tools\Foundstone\'.  This is most
likely your problem.

Get rid of "ntea" in your CYGWIN environment variable.  You don't
need it and it could get in your way.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

--


Well how about that; it worked.

I just renamed the other cgywin1.dll to cygwin1.dll.OLD and took NTEA
out of my CYGWIN environment variable and emptying the recycle bin
worked perfectly.

I don't know which piece of advice did the trick, but thanks.

-Jason

--
+ + + NO CARRIER

--
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 environment variables in ssh sessions with privilege seperation

2006-11-15 Thread DePriest, Jason R.

On 11/15/06, Sean Morgan  wrote:

I have cygwin sshd installed using privilege separation but find that
when connected via ssh that neither the windows system nor user
variables are present in the bash shell as they are when cygwin is run
in a command shell from the Windows desktop.


I always add the environment variables I want an SSH shell to have
when I install it.

However, if you are using the ssh-config-host script, that may not be
as easy (I cannot remember and since it is already installed, I don't
want to run it again as it might hose something up).

You can however add the environment variables you want to the Windows
registry directly.

Basically, look in HKLM\SYSTEM\CurrentControlSet\Services\\Parameters\Environment\

Create REG_SZ values with the names of the environment variable you
want to set and make the value data what you want it set to.

For example, I usually end up with:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sshd\Parameters\Environment]
"CYGWIN"="TTY NTSEC SMBNTSEC BINMODE CODEPAGE:OEM"
"TEMP"="/tmp"
"TMP"="/tmp"

HTH

-Jason

--
+ + + NO CARRIER

--
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 rcp or scp to work on a home wireless network

2006-12-01 Thread DePriest, Jason R.

On 12/1/06, Charles D. Russell  wrote:
- - - - - - - - >8 - - - - - - - - - -

Is there something else to configure?

- - - - - - - - - - - 8< - - - - - - -

Maybe?

- - - - - - - - >8 - - - - - - - - - -

Problem reports:   http://cygwin.com/problems.html

- - - - - - - - - - - 8< - - - - - - -

Follow the instruction there on generated the output of cygcheck with
the appropriate switches.

Remember to ~attach~ it to your email not just cut and paste it.

The information in the output will be extremely helpful on determining
where your problems may lie.

-Jason

--
+ + + NO CARRIER

--
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: Setting vim to nocompatible by default in Cygwin

2006-12-05 Thread DePriest, Jason R.

On 12/5/06, Carles Cufi  wrote:

Fair enough.

I have to say that it can be a bit confusing for people who are used to 
standard Linux distributions and Mac OS X when they start using Cygwin, but I 
understand your point.

Thanks!

Carles


It was indeed confusing to me when I started using Cygwin.

I copied my vimrc file from my Debian GNU/Linux system to my Cygwin
system and that fixed it (and a few other issues I have with the
default vim configuration).

It Really Does Work!

-Jason

--
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: vi / vim command

2006-12-06 Thread DePriest, Jason R.

On 12/6/06, Shahed  wrote:


Dear All,

I am a new user of cygwin to practice the linux/unix commands in the window.

But i am unable to use the vi or vim command. I downloaded the vim-7.0.tar
file. Now what should i do as there is no exe file

Can anyone please help me?

Best regards,

Shahed
--


You should not just download the vim tar file.

What you need to do is run the Cygwin setup utility
(http://www.cygwin.com/setup.exe) and tell it to install vim for you.

It will take care of the messy details.

-Jason

--
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: cygstart getting The specified file was not found

2006-12-11 Thread DePriest, Jason R.

On 12/11/06, ERIC HO  wrote:

I was able to use Windows Explorer to open the file by double clicking the 
file. I was able to use cygstart open the file with full path. The problem is 
with all file type. I can do a cygstart http://www.cygwin.com/ with no problem. 
The result from:
 strace cygstart hello.txt |grep hello.txt
is as below:
20   11399 [main] cygstart 732 build_argv: argv[1] = 'hello.txt'
  202   12600 [main] cygstart 732 normalize_posix_path: src hello.txt
   46   12686 [main] cygstart 732 normalize_posix_path: 
/cygdrive/c/WINDOWS/system32/hello.txt = normalize_posix_path (hello.txt)
   22   12708 [main] cygstart 732 mount_info::conv_to_win32_path: 
conv_to_win32_path (/cygdrive/c/WINDOWS/system32/hello.txt)


Are you running the command from inside your C:\WINDOWS\system32 directory?

When I run the command, it checks my current directory before looking
anywhere else.

File does not exist:
$ strace cygstart hello.txt | grep hello.txt
  48   30028 [main] cygstart 444 build_argv: argv[1] = 'hello.txt'
 445   32605 [main] cygstart 444 normalize_posix_path: src hello.txt
  52   32750 [main] cygstart 444 normalize_posix_path: /hello.txt =
normalize_posix_path (hello.txt)
  49   32799 [main] cygstart 444 mount_info::conv_to_win32_path:
conv_to_win32_path (/hello.txt)
  47   32903 [main] cygstart 444 mount_info::conv_to_win32_path:
src_path /hello.txt, dst C:\cygwin\hello.txt, flags 0xA, rc 0
 223   33126 [main] cygstart 444 symlink_info::check:
GetFileAttributes (C:\cygwin\hello.txt) failed
 106   33289 [main] cygstart 444 symlink_info::check:
GetFileAttributes (C:\cygwin\hello.txt.lnk) failed
  46   33387 [main] cygstart 444 symlink_info::check: 0 =
symlink.check (C:\cygwin\hello.txt, 0x22C040) (0x8A)
  54   33441 [main] cygstart 444 path_conv::check:
this->path(C:\cygwin\hello.txt), has_acls(1)
Unable to start 'hello.txt': The specified file was not found.

File does exist:
$ strace cygstart hello.txt | grep hello.txt
  47   30081 [main] cygstart 3992 build_argv: argv[1] = 'hello.txt'
 443   32711 [main] cygstart 3992 normalize_posix_path: src hello.txt
  47   32853 [main] cygstart 3992 normalize_posix_path: /hello.txt =
normalize_posix_path (hello.txt)
  48   32901 [main] cygstart 3992 mount_info::conv_to_win32_path:
conv_to_win32_path (/hello.txt)
  48   33006 [main] cygstart 3992 mount_info::conv_to_win32_path:
src_path /hello.txt, dst C:\cygwin\hello.txt, flags 0xA, rc 0
  51   33251 [main] cygstart 3992 symlink_info::check: 0 =
symlink.check (C:\cygwin\hello.txt, 0x22C040) (0x8A)
  58   33309 [main] cygstart 3992 path_conv::check:
this->path(C:\cygwin\hello.txt), has_acls(1)

Neither one looks at my Windows system32 directory.

-Jason

--
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: Vista & coreutils (or any other package)

2006-12-14 Thread DePriest, Jason R.

On 12/14/06, Brian Dessent  wrote:

Shankar Unni wrote:

> > The manifest route is pretty simple, you just create an .xml file, then
> > refer to it in a resource file, and then windres does the rest.
>
> But in cases like this, we really *don't* want to run with elevated
> privileges - if I'm "install"ing to /tmp, I definitely don't want to
> raise my privileges needlessly and potentially set up a security risk
> somewhere. (Admittedly this is an unlikely scenario, but...)

I thought the idea here was that the manifest tells the system
explicitly "I am not an installer and I do not need to be run with
elevated privileges", i.e. treat it like a normal program.




From Microsoft Vista's UAC Dev Requirements

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
When developing new installation programs, much like developing
programs for Windows Vista, be sure to embed an application manifest
with an appropriate requestedExecutionLevel element. See the Step Six:
Create and Embed an Application Manifest with Your Application section
for more information. When the requestedExecutionLevel is present in
the embedded application manifest, it overrides Installer Detection.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

So if you use



It should work without requiring elevated privileges.  Maybe.

--
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: "/bin/bash: permission denied" using Cygwin ssh/sshd under WinXP 2003 x64: resolved

2006-12-14 Thread DePriest, Jason R.

On 12/13/06, Brian Kasper  wrote:

I've been having terrible problems getting Cygwin ssh/sshd to work under
the x64 version of WinXP 2003 SP1.


First

Problem reports:   http://cygwin.com/problems.html

(attach cygcheck -s -v -r output)

Did you install sshd with the ssh-host-config script?

Did you use privilege separation?

-Jason

--
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: "/bin/bash: permission denied" using Cygwin ssh/sshd under WinXP 2003 x64: resolved

2006-12-14 Thread DePriest, Jason R.

On 12/14/06, Brian Kasper  wrote:

Jason --

Thanks for replying.  I've attached the output of "cygcheck -s -v -r".

Frustratingly, it appears that after a reboot (required because my
company pushed some updates to my system), ssh to localhost no longer works.

If I stop the sshd service, start a command shell as "sshd_server",
start bash in that shell, and then run "/usr/sbin/sshd -d" I can see the
debug output from sshd.  Here's what I believe is the pertinent bit of
that debug output:

Failed none for kasper from 127.0.0.1 port 4056 ssh2
debug1: userauth-request for user kasper service ssh-connection method
publickey
debug1: attempt 1 failures 1
debug1: test whether pkalg/pkblob are acceptable
debug1: temporarily_use_uid: 1003/513 (e=1014/513)
seteuid 1003: Permission denied
debug1: do_cleanup

In the bash window from which I run ssh, I see this:

~ 506 $ ssh localhost
Connection closed by 127.0.0.1

It appears to be the failing "seteuid 1003" call that's the proximal
cause of the failure.

If, however, I run "/usr/sbin/sshd -d" in a command prompt + bash
session started as user "kasper", everything works:

~ 508 $ ssh localhost
Enter passphrase for key '/home/kasper/.ssh/id_rsa':
Warning: No xauth data; using fake authentication data for X11 forwarding.
Last login: Thu Dec 14 11:37:10 2006 from 127.0.0.1
Fanfare!!!
You are successfully logged in to this server!!!
debug1: permanently_set_uid: 1003/513
Environment:
[some environment vars snipped]
   CYGWIN=binmode ntsec tty
   USER=kasper
   LOGNAME=kasper
   HOME=/home/kasper
   MAIL=/var/spool/mail/kasper
   SHELL=/bin/bash
   SSH_CLIENT=127.0.0.1 4083 22
   SSH_CONNECTION=127.0.0.1 4083 127.0.0.1 22
   SSH_TTY=/dev/tty3
   TERM=ansi
Parsing .bash_profile   Done.
~ 501 $

I used both ssh-host-config and ssh-user-config to set up sshd.  I did
not use privilege separation, but I did configure sshd to run as a service.

The other problems I've been seeing are a Windows "Error 1062" message
when trying to start sshd and the "/bin/bash: permission denied" error I
mentioned in my previous post.  I thought the "/bin/bash: permission
denied" error was resolved, but this failure also appears to involve
permissions.

I have a feeling most if not all the problems are caused by interactions
with the WinXP 2003 x64 security/permissions system, which I believe are
the same as those for WinXP Server 2003.

-Brian


I have a Windows 2003 Server that is 32-bit and runs sshd fine.
Cygcheck calls the host OS: Windows 2003 Enterprise Server Ver 5.2
Build 3790 Service Pack 1

Looking at the other differences between our configs, I see that my
service information for sshd is identical except for my Environment
line which is
CYGWIN="TTY NTSEC SMBNTSEC BINMODE"

The rights for my /etc/sshd_config are r--r--r-- sshd_server users.local
The rights for my /var/log/sshd.log are rw-r--r-- sshd_server none

I am ~not~ using privilege separation.

You could also try downloading Microsoft Sysinternals' Process Monitor
application.  It works on W2k3.  If you filter for 'cygwin' in the
path and run your ssh tests again, maybe you can see what specifically
is being called when the failure happens.

I don't see the set_uid lines in my debug logs which is probably
because I am not using privsep on this system.

--
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.22 - everything crashes, windows exception

2006-12-18 Thread DePriest, Jason R.

On 12/18/06, Larry Hall (Cygwin)  wrote:

I believe Outpost has been implicated before when these kinds of problems
pop up.  Not sure about Avast.  You can check the email archives for details.
If these are recent changes (or at least different than the last time
when you didn't have these problems), you can uninstall them and try again.
Turning them off is not generally enough because of changes these kinds of
programs make in the network stack when they are installed.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746



I successfully run Cygwin on two different system that use Avast!
anti-virus.  I did not have to create any exceptions from on-access
scanning and I do not have to deactivate the software.

My avast! version information follows -
Program build: Oct2006 (4.7.892)
VPS file: 0659-1, dated 2006/12/16

-Jason

--
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: cygwn uname

2006-12-18 Thread DePriest, Jason R.

On 12/18/06, hyrogen  wrote:


Hi There,

Im trying to get started using the open source search engine nutch and im
trying to connect to is through cygwn to start indexing my site. However Im
getting this error:

line 15: syntax error near unexpected token `in
line 15: `case "`uname`" in

I found I need to install cygwin with uname utility, but I dont know how to
do this?

Any help is much appreciated!

thanks :)

--
View this message in context: 
http://www.nabble.com/cygwn-uname-tf2838853.html#a7926005
Sent from the Cygwin Users mailing list archive at Nabble.com.




To install anything Cygwin, go to http://www.cygwin.com and click on
the 'Install or update now' link which runs setup.exe.

-Jason

--
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: Problems installing/uninstalling

2006-12-26 Thread DePriest, Jason R.

On 12/26/06, Paul Thompson  wrote:

I have had recently considerable problems both installing and uninstalling
cygwin.

XP-pro box

Version: 2.510.2.2

1st try - downloaded all updates, and install from local disk
Install stops dead and does not proceed at

/etc/postinstall/01bash.bat

After this, I attempted to uninstall the entire package to reinstall fresh

At this point, uninstall hangs at

Running preremove script...
base-files

I attempted to delete the installed program by hand, but cannot delete bash.exe

Suggestions?

Paul A. Thompson, Ph.D.
Division of Biostatistics
Washington University School of Medicine
660 S. Euclid, St. Louis, MO 63110
314-747-3793

[EMAIL PROTECTED]


--


First, reboot if you haven't already.  Something may have open handles on bash.

For clues:
What if setup fails?  http://cygwin.com/faq/faq.setup.html#faq.setup.setup-fails

To get it off your system so you can do a clean install:
How do I uninstall all of Cygwin?
http://cygwin.com/faq/faq.setup.html#faq.setup.uninstall-all

If bash still won't go away, check its permissions and ownership with
the Windows Explorer GUI.

After you get rid of everything, try running setup.exe again.

-Jason

--
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 access directly an scsi device?

2007-01-01 Thread DePriest, Jason R.

On 1/1/07, Pierre Bernhardt wrote:

Hello,

how can I access directly an scsi device under cygwin, pls?
I don't mean such an node Tape0 or so.

MfG...
Pierre Bernhardt


--


The Cygwin User's Guide rocks!

http://cygwin.com/cygwin-ug-net/using-specialnames.html

--
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: CR/LF problems after upgrade

2007-01-05 Thread DePriest, Jason R.

On 1/5/07, fschmidt  wrote:

Okay, how can I set SHELLOPTS before invoking bash?  I tried it in the
/etc/profile but that didn't work.

--


You admit to not understanding or wanting to understand Unix.  What
about Windows?

It took me less than 60 seconds to figure this one out.

Create a new Windows System Environment variable called SHELLOPTS and
set it to igncr.

When you run cygwin's bash, it will keep that value and add the others in.

Depending on your network structure, you can automate this across all
of the other dev's systems with a login script, AD GPO, or even a
locally run script that access their registries remotely assuming you
have admin.

-Jason

--
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/



  1   2   3   >