Fwd: which command fails

2002-12-19 Thread J S



Sorry I posted this to the wrong group.


Hi,

Since I upgraded cygwin I can't use the which command. It keeps saying:

$ which /usr/bin/ls
/usr/bin/ls: Command not found.


My path appears to be OK:

$ echo $PATH
/usr/local/bin:/usr/bin:/bin:.:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/local/wmaker/bin:/cygdriv
e/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/ora8i/bin:/cygdrive
/c/Program 
Files/Oracle/jre/1.1.7/bin:/cygdrive/c/PROGRA~1/E!PC:/cygdrive/c/ACE/rdbms32/bin:/cygdriv
e/c/Program Files/Attachmate/E!E2K/:/cygdrive/c/PROGRA~1/ULTRAE~1

The which also looks OK, and is the same as the which in the old cygwin I 
had:

$ which
usage: which [-a] command...

$ ls -l which
-rwx--1 544  105134608 Nov 15  2001 which


Any ideas what could be going wrong?

JS.


_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus


--
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 command fails

2002-12-19 Thread J S






On Thu, 19 Dec 2002, J S wrote:

> Sorry I posted this to the wrong group.
> >
> >Hi,
> >
> >Since I upgraded cygwin I can't use the which command. It keeps saying:
> >
> >$ which /usr/bin/ls
> >/usr/bin/ls: Command not found.
> >
> >
> >My path appears to be OK:
> >
> >$ echo $PATH
> 
>/usr/local/bin:/usr/bin:/bin:.:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/local/wmaker/bin:/cygdriv
> 
>e/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/ora8i/bin:/cygdrive
> >/c/Program
> 
>Files/Oracle/jre/1.1.7/bin:/cygdrive/c/PROGRA~1/E!PC:/cygdrive/c/ACE/rdbms32/bin:/cygdriv
> >e/c/Program Files/Attachmate/E!E2K/:/cygdrive/c/PROGRA~1/ULTRAE~1
> >
> >The which also looks OK, and is the same as the which in the old cygwin 
I
> >had:
> >
> >$ which
> >usage: which [-a] command...
> >
> >$ ls -l which
> >-rwx--1 544  105134608 Nov 15  2001 which
> >
> >Any ideas what could be going wrong?
> >
> >JS.

Yes.  You have ntsec on (it's on by default starting from 1.3.13, IIRC),
and the files in your /bin have the wrong permissions.  Try

$ chmod -R a+rx /bin

and see if it solves the problem.  You might also want to update your
passwd and group files - search this list for instructions.
	Igor

Igor,

Thanks, that was it. I did chmod -R a+rx * and that fixed the Xfree problem 
I was having with 'failed to open input method' as well.
I didn't realise the permissions had changed in Cygwin now, looks like I'll 
have to go back to the documentation and read up on it again.

Thanks for your help.

JS.


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus


--
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: Fwd: which command fails

2002-12-20 Thread J S





On Thu, 19 Dec 2002, J S wrote:

> Sorry I posted this to the wrong group.
> >
> >Hi,
> >
> >Since I upgraded cygwin I can't use the which command. It keeps saying:
> >
> >$ which /usr/bin/ls
> >/usr/bin/ls: Command not found.
> >
> >
> >My path appears to be OK:
> >
> >$ echo $PATH
> 
>/usr/local/bin:/usr/bin:/bin:.:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/local/wmaker/bin:/cygdriv
> 
>e/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/ora8i/bin:/cygdrive
> >/c/Program
> 
>Files/Oracle/jre/1.1.7/bin:/cygdrive/c/PROGRA~1/E!PC:/cygdrive/c/ACE/rdbms32/bin:/cygdriv
> >e/c/Program Files/Attachmate/E!E2K/:/cygdrive/c/PROGRA~1/ULTRAE~1
> >
> >The which also looks OK, and is the same as the which in the old cygwin 
I
> >had:
> >
> >$ which
> >usage: which [-a] command...
> >
> >$ ls -l which
> >-rwx--1 544  105134608 Nov 15  2001 which
> >
> >Any ideas what could be going wrong?
> >
> >JS.

Yes.  You have ntsec on (it's on by default starting from 1.3.13, IIRC),
and the files in your /bin have the wrong permissions.  Try

$ chmod -R a+rx /bin

and see if it solves the problem.  You might also want to update your
passwd and group files - search this list for instructions.
	Igor



I found doing chmod -R a+Xr * from the root directory was a better solution 
because it only then added user excecute permissions to those files that 
already had the x flag set.

I now have a problem in that, when I take a snapshot of cygwin with these 
permissions set, the package I build doesn't retain those permissions when I 
install it again.

Ideally what I'd like is for the administrator to install the package, and 
then the user log on and run startx. Unfortunately at the moment that 
currently results in things not working properly eg. the which command, 
failed input method.

So short of getting the administrator to run chmod -R a+Xr * themselves 
first before logging off, is there anything else you can think of which 
might allow me to retain the permissions in my cygwin build?

Many thanks for your help.

Rgds,

JS.

_
MSN 8 helps eliminate e-mail viruses. Get 3 months FREE*. 
http://join.msn.com/?page=features/virus&xAPID=42&PS=47575&PI=7324&DI=7474&SU= 
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_virusprotection_3mf


--
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: stop cygwin sed adding ^M

2002-01-24 Thread J S

OK I think I know why I had this problem now. You're saying if my drive is 
mounted in text mode then sed will insert ^M at the end of lines.
This won't happen though if the drive is mounted in bin mode. Right?

In that case I have one more question. When I start cygwin as an 
administrator, my c drive is mounted as:

c: on /cygdrive/c type user (binmode,noumount)

but if I'm logged on as a local user, it's mounted in text mode.
How can I change this as a local user to be mounted in binary?

Thanks,

JS.

>From: Christopher Faylor <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: stop cygwin sed adding ^M
>Date: Wed, 23 Jan 2002 13:26:31 -0500
>MIME-Version: 1.0
>Received: from [209.249.29.67] by hotmail.com (3.2) with ESMTP id 
>MHotMailBE184B9300114136E853D1F91D430BCD0; Wed, 23 Jan 2002 10:27:31 -0800
>Received: (qmail 2849 invoked by alias); 23 Jan 2002 18:26:35 -
>Received: (qmail 2783 invoked from network); 23 Jan 2002 18:26:34 -
>Received: from unknown (HELO lacrosse.corp.redhat.com) (12.107.208.154)  by 
>sources.redhat.com with SMTP; 23 Jan 2002 18:26:34 -
>Received: from cgf.cipe.redhat.com (dhcpd247.meridian.redhat.com 
>[172.16.47.247])by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id 
>g0NIQY319737for <[EMAIL PROTECTED]>; Wed, 23 Jan 2002 13:26:34 -0500
>Received: (from cgf@localhost)by cgf.cipe.redhat.com (8.11.6/8.8.7) id 
>g0NIQVw17956for [EMAIL PROTECTED]; Wed, 23 Jan 2002 13:26:31 -0500
>From cygwin-return-43764-vervoom Wed, 23 Jan 2002 10:29:22 -0800
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>List-Unsubscribe: 
>
>List-Subscribe: 
>List-Archive: 
>List-Post: 
>List-Help: , 
>
>Sender: [EMAIL PROTECTED]
>Delivered-To: mailing list [EMAIL PROTECTED]
>Message-ID: <[EMAIL PROTECTED]>
>Mail-Followup-To: [EMAIL PROTECTED]
>References: <[EMAIL PROTECTED]> 
><[EMAIL PROTECTED]> 
><[EMAIL PROTECTED]>
>In-Reply-To: <[EMAIL PROTECTED]>
>User-Agent: Mutt/1.3.23.1i
>
>On Wed, Jan 23, 2002 at 07:14:18PM +0100, Corinna Vinschen wrote:
> >On Wed, Jan 23, 2002 at 12:54:42PM -0500, Chris Faylor wrote:
> >> On Wed, Jan 23, 2002 at 03:58:57PM +0100, Schaible, Jorg wrote:
> >> >May be you should read the FAQ regarding text mounts ??
> >>
> >> sed is a fully ported utility.  It is supposed to read CRLF text on
> >> standard input and produce only UNIX-style newline endings on standard
> >> output.
> >
> >There's one situation I know that it actually converts LF to CRLF.
> >
> >Say, you have a file foo:
> >
> >$ od -c foo
> >000   h   a   l   l   o  \n
> >006
> >
> >and your currently in a textmode mounted directory, then
> >
> >$ sed -e 's/ll/nn/' foo > bar
> >
> >creates actually a CRLF file bar:
> >
> >$ od -c bar
> >000   h   a   n   n   o  \r  \n
> >007
> >
> >and that's defined behaviour.  That isn't even going on in sed.
> >The stdio redirection has already happened in the shell and sed
> >is just using that file descriptor.
>
>I stand corrected.
>
>Sorry for the misinformation.
>
>cgf
>
>--
>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/
>


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
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: stop cygwin sed adding ^M

2002-01-24 Thread J S

Thanks for that. It's working now!
Could you tell me where this would have been set in the first place though?


>From: Corinna Vinschen <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: stop cygwin sed adding ^M
>Date: Thu, 24 Jan 2002 10:26:06 +0100
>MIME-Version: 1.0
>Received: from [209.249.29.67] by hotmail.com (3.2) with ESMTP id 
>MHotMailBE191E53008240043158D1F91D430C5F0; Thu, 24 Jan 2002 01:26:49 -0800
>Received: (qmail 2975 invoked by alias); 24 Jan 2002 09:26:09 -
>Received: (qmail 2943 invoked from network); 24 Jan 2002 09:26:08 -
>Received: from unknown (HELO cygbert.vinschen.de) (217.229.56.7)  by 
>sources.redhat.com with SMTP; 24 Jan 2002 09:26:08 -
>Received: (from corinna@localhost)by cygbert.vinschen.de 
>(8.11.6/8.9.3/Linux sendmail 8.9.3) id g0O9Q6f13631for [EMAIL PROTECTED]; 
>Thu, 24 Jan 2002 10:26:06 +0100
>From cygwin-return-43786-vervoom Thu, 24 Jan 2002 01:28:17 -0800
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>List-Unsubscribe: 
><mailto:[EMAIL PROTECTED]>
>List-Subscribe: <mailto:[EMAIL PROTECTED]>
>List-Archive: <http://sources.redhat.com/ml/cygwin/>
>List-Post: <mailto:[EMAIL PROTECTED]>
>List-Help: <mailto:[EMAIL PROTECTED]>, 
><http://sources.redhat.com/ml/#faqs>
>Sender: [EMAIL PROTECTED]
>Delivered-To: mailing list [EMAIL PROTECTED]
>Message-ID: <[EMAIL PROTECTED]>
>Mail-Followup-To: [EMAIL PROTECTED]
>References: <[EMAIL PROTECTED]>
>In-Reply-To: <[EMAIL PROTECTED]>
>User-Agent: Mutt/1.3.22.1i
>
>On Thu, Jan 24, 2002 at 09:20:43AM +, J S wrote:
> > OK I think I know why I had this problem now. You're saying if my drive 
>is
> > mounted in text mode then sed will insert ^M at the end of lines.
> > This won't happen though if the drive is mounted in bin mode. Right?
> >
> > In that case I have one more question. When I start cygwin as an
> > administrator, my c drive is mounted as:
> >
> > c: on /cygdrive/c type user (binmode,noumount)
> >
> > but if I'm logged on as a local user, it's mounted in text mode.
> > How can I change this as a local user to be mounted in binary?
>
>mount --change-cygdrive-prefix -b /cygdrive
>
>Corinna
>
>--
>Corinna Vinschen  Please, send mails regarding Cygwin to
>Cygwin Developermailto:[EMAIL PROTECTED]
>Red Hat, Inc.
>
>--
>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/
>


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




mkpasswd - cannot contact Domain Controller

2002-01-24 Thread J S

Which Cygwin package does the source code for mkpasswd live in?

JS.

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




mkpasswd - cannot contact Domain Controller

2002-01-24 Thread J S

Looking at the code then, it seems to bomb out in main when it gets to:

if (print_domain)
  {
if (domain_name_specified)
  rc = netgetdcname (NULL, domain_name, (LPBYTE *) & servername);
else
  rc = netgetdcname (NULL, NULL, (LPBYTE *) & servername);
if (rc != ERROR_SUCCESS)
  {
print_win_error(rc);
exit (1);
  }

The problem is with the call to netgetdcname which returns the name of the 
primary domain controller. This works on my computer (which is DHCP enabled 
and seems to configured for a Primary WINS server).
My colleague has a fixed IP address, but I can't see any Primary WINS server 
configured when I issue an IPCONFIG /ALL.
Is the PDC not supposed to be configured for a fixed IP address do you know?

JS

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




mkpasswd - cannot contact Domain Controller

2002-01-24 Thread J S

Fixed it. He didn't have his primary Wins Server configuration set up.

Works fine now.

JS.

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




setregid and setreguid

2002-01-24 Thread J S

Hi,

I'm trying to compile eterm on cygwin, but running into problems because it 
needs setregid and setuid. I noticed that these were in the cygwin package 
testsuite and so I tried to compile that but the make file wouldn't work. 
Are there any binaries around for setregid and setreguid?

JS.

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
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: setregid and setreguid

2002-01-24 Thread J S

Thanks Corinna, but I don't seem to have setgid or setegid either 
(eventhough I've just been to cygwin.com to download all the latest 
updates).

JS.


>>
>On Thu, Jan 24, 2002 at 04:05:09PM +, J S wrote:
> > Hi,
> >
> > I'm trying to compile eterm on cygwin, but running into problems because 
>it
> > needs setregid and setuid. I noticed that these were in the cygwin 
>package
> > testsuite and so I tried to compile that but the make file wouldn't 
>work.
> > Are there any binaries around for setregid and setreguid?
>
>That wouldn't make much sense since only setuid() and setuid() resp.
>setgid and setegid() are implemented in Cygwin currently.  Shouldn't
>be too hard to patch eterm to use these functions instead.
>
>Corinna
>
>--


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




mounting windows cdrom on a unix box

2002-01-25 Thread J S

Just thought of a quick question. Can I mount a disk from my windows machine 
to a unix box using cygwin?

JS.

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




uncompress utility

2002-02-01 Thread J S

Hi there,

Does anyone know where I can get the uncompress utility for cygwin?

Cheers,

JS.



_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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