Bash: /mnt/cdrom/runInstaller: /bin/sh: bad interpreter: Permission denied

hi,
i m new to oracle on linux
Oracle 10gR2 on RedHat Enterprise Linux 5
while running ./runInstaller
this error displays
bash: /media/database/runInstaller: /bin/sh: bad interpreter: Permission denied
can any one help me, please answer here or [email protected]

It's got nothing to do with who he's running the installer as (though he should indeed run it as the oracle user, of course).
It's got everything to do with the fact that a lot of distros these days automount their CDs with the noexec switch set. Meaning that no-one apart from root is allowed to execute programs from the mounted media. Centos 5 does it, so RHEL5 would do it too. OpenSuse10.3 doesn't do it; Fedora 8 does; Debian 4 does.
If your distro uses an old-fashioned fstab (Debian 4 does, for example), you could edit that and stick an explicit 'exec' switch in as one of the mount options (plain old "user", commonly specified, implies "noexec").
But RHEL5 and Fedora 8, for example, use a new udev-magic way of dynamically mounting removable media, so there's nothing listed in /etc/fstab until after a cd or dvd has been automounted... and by that stage, it's too late to edit what the mount options should be!
The fix for these sorts of distros is to become root and manually unmount any Oracle CDs or DVDs that have been automounted. You can then simply re-mount them by issuing a command such as
mount -o loop /dev/cdrom /media...and, because this manual mount doesn't include explicit noexec switches, you'll find that if you now become the oracle user, you'll be allowed to execute the runInstaller program normally.

Similar Messages

  • -bash: ./runInstaller: /bin/sh: bad interpreter: permission denied

    I have done all pre requisite configurations in Enterprise Linux R5 for the installation of Oracle Database 10g R2. When I run this ./runInstaller command from terminal window of Oracle user account. I got following error.
    -bash: ./runInstaller: /bin/sh: bad interpreter: permission denied
    Kindly send me the solution of this problem on urgent basis.
    Thanks.
    Shahzad

    ls -la runInstaller
    Check permission, that user can run.(execute)
    By the way, if you use "oracle" user rune it...
    Please Extract Oracle Source by oracle user.
    Or user root user and change permission source ...
    root$ cd SOURCE
    root $ ls -la runInstaller
    root$ chown -R oracle:oinstall .
    example:
    $ cd Disk1/
    $ ls -la runInstaller
    -rwxr-xr-x 1 oracle oinstall 1756 Mar 12 2008 runInstaller

  • Bash: ./jdev: /bin/sh: bad interpreter: Permission denied

    Unzipped the jdevj2eebase1013.zip
    Set permissions as per install guide.
    Try to run jdev get this error
    bash: ./jdev: /bin/sh: bad interpreter: Permission denied
    Note the install guide says to run $ jdev
    from command line, surely this means
    $ ./jdev
    instead. Tried it verbatim but get
    hj54@devhost:~/downloads/oracle/10g/jdeveloper10.1.3pre/jdev/bin> jdev
    bash: jdev: command not found
    Distro is Novell Linux Desktop ( Suse 9.0 )

    ls -la runInstaller
    Check permission, that user can run.(execute)
    By the way, if you use "oracle" user rune it...
    Please Extract Oracle Source by oracle user.
    Or user root user and change permission source ...
    root$ cd SOURCE
    root $ ls -la runInstaller
    root$ chown -R oracle:oinstall .
    example:
    $ cd Disk1/
    $ ls -la runInstaller
    -rwxr-xr-x 1 oracle oinstall 1756 Mar 12 2008 runInstaller

  • /bin/sh: bad interpreter: Permission denied- Rapidwiz

    hi Gurus,
    I am trying to install apps 11.5.10.2 from an external hard drive onto oracle enterprise linux , installed on vmware workstation 6, and i got error--- /bin/sh: bad interpreter: Permission denied.When trying to run the rapidwiz.
    Can somebody pls help me with full discription of this problem and what the solution might be. Secondly please help with the steps required when installing 11i on oracle enterprise linux as i know nothing about linux configuration.Thanks Guys

    Not Sure if this issue is still open.
    Recently I faced the same issue while executing/running ./rapidwiz (from stage area ) from External usb disk with ext2 file system. Basically I was trying to install R12.0.4 on OEL 5 Platform,
    I was getting the same error PERMISSION DENIED /bin/sh bad interpreter. I started experimenting many different things to start with chmod,chown ...and also having a manual entry in /etc/fstab for the external drive but nothing worked out.
    After hour's(3-4)of googling around I could finally fix it OLAH ...
    Firstly if some one see's the similar issue (assuming the similar senario as well ...stage created on External usb HD)
    1) Check the out put of the "mount" command.
    If it is  /media/usbdisk (rw, noexec,nosuid) * -- this the culprit ** you would never be able to run/execute any program or executable within this disk.
    2) Fix it -- use below command.
    mount -0 remount rw /media/usbdisk .
    3) And upon re-running " mount" cmd, u'll see below output.
    **/media/usbdisk (rw) -- observe we don't c the noexec, nosuid from first run.
    --uh!! Phew !!
    And the installation start ...with no issue's ... I hope this will be usefull for other novie like me ..:-)

  • Bad interpreter: Permission denied whn installin ORACLE 11g on linux 32 bit

    Hello All,
    I have a VMWare that i installed into it Oracle enterprise Linux 5 32 bit, i am trying to install Oracle 11g R2 on it, i have the .iso oracle file, l linked the CD/DVD drive of the VMware to the location of this ISO file, and i applied all the steps mentioned in this link : http://www.oracle-base.com/articles/11g/OracleDB11gR2InstallationOnEnterpriseLinux5.php
    i did: cd media and i found the runInstaller file but wen trying to run it: ./runInstaller i am facing the below :
    [root@oel5 media]# cd V17489-01/
    [root@oel5 V17489-01]# ls
    doc install response rpm runInstaller sshsetup stage welcome.html
    [root@oel5 V17489-01]# ./runInstaller
    -bash: ./runInstaller: /bin/sh: bad interpreter: Permission denied
    your help is appreciated please.
    Regards,

    The problem is that gnome-mount will not give you execute rights on CD/DVD content. The solution is at the below link in the Tips section:
    Installing Oracle 11g R2 on Ubuntu 10 Howto
    Logout your current X-session and login as user Oracle
    Insert the Oracle Installation DVD
    Or from a remote terminal session:
    Insert the Oracle Installation DVD
    sudo umount /dev/sr0
    Create a new session as user Oracle
    ssh -Y oracle@server_address
    sudo mount /dev/sr0 /media
    /media/database/runInstaller
    If you see "runinstaller" instead of "runInstaller" you can try the following:
    sudo mount -o loop,norock /dev/cdrom /media
    more also here:
    runInstaller ".oui: No such file" / "bad interpreter: Permission denied"
    Edited by: Joe Shmoe on Nov 5, 2010 11:45 AM

  • RunInstaller ".oui: No such file" / "bad interpreter: Permission denied"

    Hi,
    The Oracle "runInstaller" script gives the following errors:
    a) bad interpreter: Permission denied
    b) .oui: No such file
    Solution:
    - insert the DVD
    - umount /media/<tab>
    - mount -o norock /dev/cdrom /media
    Reason:
    a) "gnome-mount" mounts iso9660 with "noexec" privileges.
    b) Some DVD's require the mount "norock" option to prevent filename conversions.
    The above is ok for the purpose of installing, but annoying if you don't know the solution. The thing with gnome-mount and HAL seems quit complex. I tried to change the gnome-mount defaults to include "exec" privileges, but without success.
    yum install gconfig-editor
    ("gcon-editor" GUI - look under system/storage)
    With DVD mounted to change settings for a particular volume , or without to change default for all:
    gnome-mount --display-settings -d /dev/cdrom
    gnome-mount --write-settings -d /dev/cdrom -m mnt
    gnome-mount --erase-settings -d /dev/cdrom
    Changing the default mount point inside /media worked, but it made no difference to set "exec" mount option (-o exec)
    An entry in /etc/fstab overwrite these settings:
    /dev/cdrom /media/mnt iso9660 norock,exec 0 0
    which gives an error if the media is not present at shutdown or startup
    How to change the defaults for gnome-mount to include "exec" for /dev/cdrom?
    Kind regards.
    Edited by: waldorfm on May 5, 2010 10:32 AM

    Yes. Actually I thought I would post this because I was not able to "google" a solution. Apparently other people experienced the same problem and were not able to install from DVD.

  • Yaourt wont build any packages..../configure: /bin/sh: bad interpreter

    im tying to build a package with yaourt and it isnt working.
    [mark@markspc ~]$ yaourt -S indicator-applet
    ==> Resuming previous build
    ==> Downloading indicator-applet PKGBUILD from AUR...
    ==> Last 5 comments ordered by date (asc):
    Comment by: lumpy211 on Fri, 13 Nov 2009 19:51:52 +0000
    Phrodo,
    It doesn't work for me either, it just crashes even with libindicator.
    Comment by: max.bra on Sun, 15 Nov 2009 10:48:19 +0000
    don't use now (0.2.0-1)
    it doesn't work and install file directly onto the system overwriting a gdm package file (no real package creation and no real remove/clean)
    trying to do better. hold on.
    Comment by: max.bra on Mon, 16 Nov 2009 21:08:35 +0000
    The situation is slightly better.
    now indicator-applet-session work as expected. tested with empathy and pidgin.
    indicator-applet (the icon with the letter envelope) even that seems to work (tested with /usr/libexec/im-client) but nothing on arch trigger compatible events. as usual applications are patched upstream. standard compiling of available sources, also lacks of initial menu applet found in Ubuntu to launch applications.
    no localization at the moment, only English.
    I added a dbus rule which may represent a security lack. I ask those who have more knowledge of dbus to give advice on.
    suggestions are appreciated
    Comment by: max.bra on Mon, 16 Nov 2009 21:43:13 +0000
    However I do not think it's worth to be used on arch.
    Dropping
    Comment by: piezoelectric on Tue, 17 Nov 2009 01:52:06 +0000
    It's a nice utility for multi-user environments. Especially those with inexperienced users.
    First Submitted: Tue, 20 Oct 2009 20:30:35 +0000
    indicator-applet 0.2.0-2 : A small applet to display information from various applications consistently in the panel. (Canonical Ayatana Project)
    ( Unsupported package: Potentally dangerous ! )
    ==> Edit the PKGBUILD (highly recommended for security reasons) ? [Y/n]("A" to abort)
    ==> ----------------------------------------------
    ==>n
    ==> indicator-applet dependencies:
    - gconf (already installed)
    - gnome-panel (already installed)
    - indicator-messages (building from AUR)
    - indicator-session (building from AUR)
    ==> WARNING: This PKGBUILD contains install file that can be dangerous.
    indicator-applet.install
    ==> Edit indicator-applet.install (highly recommended for security reasons) ? [Y/n] ("A" to abort)
    ==> ----------------------------------------------
    ==>n
    ==> Continue the building of indicator-applet ? [Y/n]
    ==> ----------------------------------------------
    ==>y
    ==> Building missing dependencies from AUR:
    ==> Resuming previous build
    ==> Downloading indicator-messages PKGBUILD from AUR...
    tar: Record size = 15 blocks
    First Submitted: Mon, 16 Nov 2009 20:51:33 +0000
    indicator-messages 0.2.6-1 : A place on the user's desktop that collects messages that need a response. (Canonical Ayatana Project)
    ( Unsupported package: Potentally dangerous ! )
    ==> Edit the PKGBUILD (highly recommended for security reasons) ? [Y/n]("A" to abort)
    ==> ----------------------------------------------
    ==>n
    ==> indicator-messages dependencies:
    - libindicate (building from AUR)
    - libdbusmenu (building from AUR)
    - libindicator (building from AUR)
    ==> WARNING: This PKGBUILD contains install file that can be dangerous.
    indicator-messages.install
    ==> Edit indicator-messages.install (highly recommended for security reasons) ? [Y/n] ("A" to abort)
    ==> ----------------------------------------------
    ==>n
    ==> Continue the building of indicator-messages ? [Y/n]
    ==> ----------------------------------------------
    ==>y
    ==> Building missing dependencies from AUR:
    ==> Resuming previous build
    ==> Downloading libindicate PKGBUILD from AUR...
    tar: Record size = 6 blocks
    First Submitted: Mon, 16 Nov 2009 20:50:29 +0000
    libindicate 0.2.3-1 : A small library for applications to raise \"flags\" on DBus for other components of the desktop to pick up and visualize. (Canonical Ayatana Project)
    ( Unsupported package: Potentally dangerous ! )
    ==> Edit the PKGBUILD (highly recommended for security reasons) ? [Y/n]("A" to abort)
    ==> ----------------------------------------------
    ==>n
    ==> libindicate dependencies:
    - glib2 (already installed)
    - gtk2 (already installed)
    - dbus-glib (already installed)
    - libxml2 (already installed)
    ==> Continue the building of libindicate ? [Y/n]
    ==> ----------------------------------------------
    ==>y
    ==> Install or build missing dependencies for libindicate:
    ==> Building and installing package
    ==> libindicate dependencies:
    - glib2 (already installed)
    - gtk2 (already installed)
    - dbus-glib (already installed)
    - libxml2 (already installed)
    ==> Making package: libindicate 0.2.3-1 x86_64 (Mon Nov 30 21:22:18 GMT 2009)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    -> Found libindicate-0.2.3.tar.gz in build dir
    ==> Validating source files with md5sums...
    libindicate-0.2.3.tar.gz ... Passed
    ==> Extracting Sources...
    -> Extracting libindicate-0.2.3.tar.gz with bsdtar
    ==> Removing existing pkg/ directory...
    ==> Entering fakeroot environment...
    ==> Starting build()...
    /tmp/yaourt-tmp-mark/aur-libindicate/libindicate/./PKGBUILD: ./configure: /bin/sh: bad interpreter: Permission denied
    ==> ERROR: Build Failed.
    Aborting...
    Error: Makepkg was unable to build libindicate package.
    ==> Install or build missing dependencies for indicator-messages:
    ==> Install or build missing dependencies for indicator-applet:
    [mark@markspc ~]$
    this is the most important bit
    ==> Starting build()...
    /tmp/yaourt-tmp-mark/aur-libindicate/libindicate/./PKGBUILD: ./configure: /bin/sh: bad interpreter: Permission denied
    any reason why this is happening?
    thanks markp1989

    markp1989 wrote:==> Starting build()...
    /tmp/yaourt-tmp-mark/aur-libindicate/libindicate/./PKGBUILD: ./configure: /bin/sh: bad interpreter: Permission denied
    What are your /tmp permissions?
    Also, is your /tmp on a separate partition?  If so, what is the fstab entry for it?
    Last edited by tdy (2009-11-30 22:47:23)

  • /bin/sh: bad interpreter: Operation not permitted error OS X Lion

    I am trying to install omnetpp-4.2.2 on OS X Lion. When I try to configure I get the following error msg:
    -bash: ./configure: /bin/sh: bad interpreter: Operation not permitted.
    Sudo ./configure didn't help. Highly appreciate your help.

    bad interpreter: Operation not...: Apple Support Communities

  • /bin/env: bad interpreter [Solved]

    Hi, I have a script that I wrote for backing up important config files, it used to run fine now I get this error message:
    /bin/env: bad interpreter
    The script uses python2.7 the shebang is:
    #!/bin/env python2.7
    My $PATH is:
    /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/kde/bin:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/qt/bin
    2.7 is not the default but as you see I am specifying that in the shebang, I retyped the line to make sure there wasn't any weird characters and no help.
    I executed:
    find /usr -type f -name 'python*' -perm -a+x
    and here is the output as you can see it is listed.
    /usr/lib/libreoffice/program/pythonloader.uno.so
    /usr/lib/gimp/2.0/plug-ins/python-console.py
    /usr/lib/gimp/2.0/plug-ins/python-eval.py
    /usr/lib/weechat/plugins/python.so
    /usr/lib/vmware-installer/2.0/python/python
    /usr/lib/xchat/plugins/python.so
    /usr/bin/python2.7-config
    /usr/bin/python3
    /usr/bin/python3.2
    /usr/bin/python3.2mu
    /usr/bin/python2.7
    /usr/bin/python3.2mu-config
    /usr/bin/python2.4
    Anyone have an idea what this might be?
    thanks in advance for your help.
    --jerry
    Last edited by jk121960 (2012-06-17 21:48:50)

    jk121960,
    /bin/env moved to /usr/bin/env.
    Mektub

  • Bad interpreter

    the problem i face is explained here but i dontknow how to build a soft link and wat shoild be the name of the soft link.so please explain me
    ====================
    user621122 wrote:
    :bad interpreter: no such file or directory1/rapidwiz/bin/runWizard.sh: /bin/sh
    Line 1 of the runWizard.sh looks like
    #!/bin/sh
    However, your system does not appear to have /bin/sh defined. That may be a permissions problem. It may also be a problem with hidden characters.
    For missing files or permissions, I find it a pretty common issue with /bin/ksh (many Linux systems have /bin/pdksh but not /bin/ksh), but it's pretty rare for /bin/sh to be missing. This may happen when a custom jail is built (eg: chroot) or when called from a special environment.
    As the user who is to run the runWIzard, ls -l the /bin/sh ... if it does not exist, ask the sysadmin (perhaps yourself) to create a link to the bash - should be pretty close to compliant.
    The second variant, hidden characters, occurs when the shell script is edited in Windows and then run in *nix. If that is the case, it may be corrected by running dos2unix on the runWizard.sh - see the man page for dos2uni                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    Please see these threads.
    Facing Error Installing Oracle Apps 11i. :bad interpreter: No such file
    Re: Facing Error Installing Oracle Apps 11i. :bad interpreter: No such file
    /bin/sh: bad interpreter: Permission denied- Rapidwiz
    /bin/sh: bad interpreter: Permission denied- Rapidwiz
    Regards,
    Hussein

  • [SOLVED]Pacstrap causing error "bad interpreter"

    Hi,
    I am not "extremely" new to Arch as I've installed Arch on a machine(not mine) a couple of years back. But I don't exactly remember the steps. I used Lubuntu in my machine(HP dm1z) for a long time and I can be considered as a newbie here. So I went through the Installation Guide and started installing. Intro over.
    So the problem is when I try to install the base system using pacstrap:
    pacstrap /mnt base
    it gives me the error
    zsh: /usr/bin/pacstrap: bad interpreter: /bin/bash: no such file or directory
    The installation media I use is a USB stick and I used Win32DiskImager to burn the image on to it. I tried the iso on vmplayer in my windows machine and was able to install it successfully.
    What could be the issue?
    Last edited by jrbalu (2013-06-02 03:56:39)

    I failed to mention it but I was checking the beginner's guide also. There seems to be not much help in the beginner's guide too, if the error I mentioned above occurs. I googled as vast as I can but failed to find a solution.

  • Bad interpreter: Argument list too long

    When attempting to run dbca (oracle 9i release 2), the following error is reported. Using Werner's installation guide, the install process has been otherwise problem free.
    The target system is:
    Redhat 9
    Linux version 2.4.20-28.9 ([email protected])
    Any suggestions would be greatly appreciated.
    dbca
    /usr/oracle/oracle.swd.jre/bin/i386/native_threads/jre: /usr/oracle/oracle.swd.jre/bin/i386/native_threads/jre: /bin/sh: bad interpreter: Argument list too long/usr/oracle/oracle.swd.jre/bin/i386/native_threads/jre: line 120: /usr/oracle/oracle.swd.jre/bin/i386/native_threads/jre: Success
    q

    i am also facing the same problem as installation of oracle 9i on red hat the error is comming when running ./dbca to crate database the error is as
    "/opt/oracle/product/9.2.0/oracle.swd.jre/bin/i386
    native_threads/jre:
    /opt/oracle/product/9.2.0/oracle.swd.jre/bin/i386/native_threads/jre:
    /bin/sh: bad interpreter :Argument list too long
    /opt/oracle/product/9.2.0/oracle.swd.jre/bin/i386/native_threads/jre:
    line 120 :
    /opt/oracle/product/9.2.0/oracle.swdj.jre/bin/i386/native/_threads/jre
    :sucess"
    do you have any solution the pls send me on [email protected]

  • -bash: /usr/bin/grep: Bad executable (or shared library)

    I am receiving these error messages when I attempt to use grep, egrep, or fgrep from the terminal:
    -bash: /usr/bin/grep: Bad executable (or shared library)
    -bash: /usr/bin/egrep: Bad executable (or shared library)
    -bash: /usr/bin/fgrep: Bad executable (or shared library)
    I suspect that a library that these utilities use is corrupt, but I am not sure how to determine what libraries the executables use and how to restore them if they are indeed corrupt. Can someone fill me in?
    Thanks,
    Greg
    Dual 2 GHz PowerPC G5   Mac OS X (10.4.7)  

    Hi Greg,
       Sorry, otool is installed by Apple's Developer Tools package. The other listings you posted are also identical to mine so I'm stumped. I also have a G5 so the fact that your items are the same size as mine is at least strong evidence that they aren't corrupted.
       You can use the application Pacifist, to pull a new copy of grep from your Mac OS X install disk. It couldn't hurt to be sure.
       libSystem.B.dylib is in turn dependent on /usr/lib/system/libmathCommon.A.dylib so there's one more possibility for a problem but there the dependency chain stops. Besides, if either of those libraries were corrupted, I would think you would have noticed something before.
       You should check to see if the following environment variable is defined: (it should not be defined)
    echo $DYLDLIBRARYPATH
    You should also login as another user (even if you have to create one temporarily) and execute grep. If that user can do it then the problem lies in the environment of your current user.
    Gary
    ~~~~
       Old Mother Hubbard went to the cupboard
       To fetch her poor daughter a dress.
       When she got there, the cupboard was bare
       And so was her daughter, I guess...

  • Bad interpreter: Operation not permitted on Lion 10.7.3

    My unix scripts are now dead, after the upgrade to 10.7.3. A typical error message is   /bin/bash: bad interpreter: Operation not permitted  Googling this issue shows other people are having build scripts fail and are fixing this by renaming links to libraries.  My scripts are simple, they just run an executable, or used to...  something like this:
    #! /bin/bash
    ./myprogram << EOF
    $1
    EOF

    The interpreter is the thing that comes after "#!"; in your case, /bin/bash. Are you able to open a shell in Terminal? If so, what is your shell, and what do you get from
    ls -Oel /bin/bash
    and
    codesign -vv /bin/bash

  • Facing Error Installing Oracle Apps 11i. :bad interpreter: No such file

    Dear all
    i am facing the following error during installing oracle 11i . when i run "./rapidwiz" command
    face the following error
    :bad interpreter: no such file or directory1/rapidwiz/bin/runWizard.sh: /bin/sh
    I am on Oracle Linux 5.3
    Please help..
    Thanks
    Regards
    Gaurav Gupta

    Hi,
    Please see (Note: 243485.1 - bash: ./ : bad interpreter: No such file or directory).
    Regards,
    Hussein

Maybe you are looking for

  • Change preferences for double click on images in Bridge

    Hiya, I feel a bit silly for asking this because it seems so obvious, but the onvious way just doesn't seem to work for me. When double-clicking on an image in Bridge, it opens Photoshop - which I suppose in some cases helps, but drives me crazy beca

  • Photoshop Extended CS 4: 32 bit & 64 bit has stopped working with an error 131:4

    Dell XPS 720 Quod Processor 8GB Memory Running Window 7 Both Photoshop Extended CS 4: 32 bit & 64 bit has stopped working with an error 131:4. which stated to reboot to solve the problem. After several attempts at rebooting the computer, I received t

  • Print Preview of purchase order

    Hi All, when i am trying to see the print preview for a purchase order, system showing a message like "No messages found (Please check your input)" please suggest me in this regard ASAP. Thanks, Srinu

  • Installing Sample Tables in 10g(Vista)

    Hi guys, I am a newborn baby in this world of Oracle. I am currently doing my DBA OCP course. I have installed 10g Enterprise edition in vista and in the advance installation, selected sample schemas too. Now I have problems finding the tables like H

  • No 3D Channels?

    I'm upgrading to a 3D tv and was checking to see about 3D programming.  However, when I wasn't able to find any channels or on-demand programs, I contacted Verizon.  They told me that they no longer offer 3D programming, which seems hard to believe.