[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20021202: UDUNITS 1.11.7 installation: conftest: Permission denied



David,

>Date: Wed, 04 Dec 2002 08:21:27 -0700
>From: David Price <address@hidden>
>Organization: ?
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20021202: UDUNITS 1.11.7 installation: conftest: Permission denied

The above message contained the following:

> There is only one conftest.mk....
> 
> geminiani:/ # find /data1/downloads/ncview/udunits-1.11.7/src -name 
> conftest.mk -ls
> 260830    0 -rw-r-----   1 root     root            0 Dec  2 22:03 
> /data1/downloads/ncview/udunits-1.11.7/src/conftest.mk
> 
> Interestingly, it is an empty file....
> 
> > What happens if you manually execute the following command as root in
> > directory /data1/downloads/ncview/udunits-1.11.7/src:
> >
> >     ./conftest < Makefile > conftest.mk && mv conftest.mk Makefile
> >
> geminiani:/data1/downloads/ncview/udunits-1.11.7/src # ./conftest < Makefile 
> > conftest.mk && mv conftest.mk Makefile
> bash: ./conftest: Permission denied
> geminiani:/data1/downloads/ncview/udunits-1.11.7/src # sh conftest < Makefile 
> > conftest.mk && mv conftest.mk Makefile
> conftest: conftest: cannot execute binary file
> geminiani:/data1/downloads/ncview/udunits-1.11.7/src # ls -l conftest
> -rwxr-----    1 root     root        11949 2002-12-02 22:03 conftest
> 
> > What happens if you execte the above command in every subdirectory in
> > which the file Makefile exists?
> >
> 
> Same thing (naturally!)
> 
> Does this provide a clue? Why is conftest not executable?
> 
> geminiani:/data1/downloads/ncview/udunits-1.11.7/src # gcc conftest.c -o 
> conftest
> geminiani:/data1/downloads/ncview/udunits-1.11.7/src # ls -l conftest
> -rwxr-----    1 root     root        11949 2002-12-04 08:14 conftest
> geminiani:/data1/downloads/ncview/udunits-1.11.7/src # ./conftest
> bash: ./conftest: Permission denied
> geminiani:/data1/downloads/ncview/udunits-1.11.7/src # sh conftest
> conftest: conftest: cannot execute binary file
> geminiani:/data1/downloads/ncview/udunits-1.11.7/src # whoami
> root
> geminiani:/data1/downloads/ncview/udunits-1.11.7/src #

It appears that the operating system is preventing root from executing
the file conftest.  This could be because:

    1.  The file-system is not honoring the execute permission; or

    2.  The file-system won't allow root to execute a file.

If the file is NFS mounted, then you can see the mount-options via the
"mount" command.

To isolate the problem, copy conftest to another (locally-mounted)
file-system and try executing it. If that fails, then try executing it
as someone other than root.

Once the problem is isolated, consult with your system administrator to
fix it.

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>