Fwd: which command fails
Thu Dec 19 07:02:00 GMT 2002
On Thu, 19 Dec 2002, J S wrote:
> Sorry I posted this to the wrong group.
> >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
> >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
> >$ which
> >usage: which [-a] command...
> >$ ls -l which
> >-rwx------ 1 544 10513 4608 Nov 15 2001 which
> >Any ideas what could be going wrong?
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.
|\ _,,,---,,_ firstname.lastname@example.org
ZZZzz /,`.-'`' -. ;-;;,_ email@example.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
More information about the Cygwin