On Thu, Dec 27, 2001 at 06:00:46PM +0530, Philip S Tellis wrote:
> On Thu, 27 Dec 2001, shyam wrote:
> 
> > I have a unique problem,
> 
> What makes you think that it is unique?
> 
> > I am  unable to execute any scripts in any directory while 
> > the following error occurs
> > bash2: ./xyz no such file or directory
> 
> Is it the same error for all scripts or does the ./xyz error 
> happen only for a script named xyz?
> 
> If it  happens for all scripts,  then check your .bashrc and 
> /etc/bashrc files.  They  may be trying to execute something 
> that doesn't exist.
> 
> If it happens  only for this one file, then  check the first 
> line of the file.  Does it point to a valid script interpre-
> ter (#!/bin/bash, etc)
> 
> > The file exists , it a  normal  script  file which used to 
> > execute, and has the correct 700 permissions
> 
> Who owns the file?  Who's trying to execute it?  0700  means 
> only the owner of the file can read or execute it.
> 
> Philip
> 
---end quoted text---

Just adding on to what Philip has written, the commonest cause
of this problem is when for some reason /bin/sh is  either not
there or wrongly pointed. Usually, /bin/sh  is  a symlink to a
valid shell (e.g. /bin/bash or /bin/csh etc). Just  check  out
if it is correctly pointed, if not, correct with ln -s.

The file permissions for an executable, by default  is 755 and
not 700 (onless you want to reserve exclusive  execute  rights 
for user).

Bish



--
:
####[ Linux One Stanza Tip (LOST) ]###########################
  
Sub : Searching for files (#1)                       LOST #171

To search for files that match a particular name, use find(1); 
for example : find / -name "*GENERIC*" -ls

will search '/', and all subdirs, for  files with 'GENERIC' in 
the name.

####<[EMAIL PROTECTED]>####################################
:

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to