Bash: /home/oracle/.bashrc: Permission denied

[root@localhost u01]# ls -lad /home/oracle/{.*,*}
ls: cannot access /home/oracle/*: No such file or directory
drwx------. 4  501  507 4096 Aug 21 18:24 /home/oracle/.
drwxr-xr-x. 6 root root 4096 Aug 21 22:36 /home/oracle/..
-rwxrwxr-x. 1  501  507  829 Aug 21 18:31 /home/oracle/.bash_history
-rwxrwxr-x. 1  501  507   18 May 10  2012 /home/oracle/.bash_logout
-rwxrwxr-x. 1  501  507  176 Aug 21 17:16 /home/oracle/.bash_profile
-rwxrwxr-x. 1  501  507  124 May 10  2012 /home/oracle/.bashrc
drwxr-xr-x. 2  501  507 4096 Nov 20  2010 /home/oracle/.gnome2
drwxr-xr-x. 4  501  507 4096 Aug 17 21:42 /home/oracle/.mozilla
-rwxrwxr-x. 1  501  507 3786 Aug 21 18:24 /home/oracle/.viminfo
[root@localhost u01]# su oracle
[root@localhost u01]# su oracle
bash: /home/oracle/.bashrc: Permission denied

Hi,
Why the Home Oracle files are rwx rwx r-x. the oracle home should have the permissions rwx r-x r-x.
# chmod -R 755  /home/oracle/*
To switch to an other user, it is recommended to use
# su - oracle
the dash (-) : this is used to load ALL the envirenment of the user oracle.
Don't forget to verify if the .bashrc is executable, if not run:
$ chmod +x ~/.bashrc
I hope this can help you
Best Regards

Similar Messages

  • Bash: /etc/init.d/oracle-xe: Permission denied

    arjun@ubuntu:~$ sudo su
    root@ubuntu:/home/arjun# /etc/init.d/oracle-xe configure
    bash: /etc/init.d/oracle-xe: Permission denied
    root@ubuntu:/home/arjun#

    Hi,
    arjun@ubuntu:~$ sudo /etc/init.d/oracle-xe configureRegards,
    Jari

  • Bash: /opt/arch32/mirrorlist: Permission denied - arch32 help

    Hi all.
    I'm new to Arch Lin and i'm just trying out things to get to know Arch.
    At the moment I'm trying to install a 32 bit subsystem as described here http://wiki.archlinux.org/index.php/Ins … _in_Arch64 but in the second step I get the following error:
    "bash: /opt/arch32/mirrorlist: Permission denied"
    The wiki says I should do
    "sed -e 's/x86\_64/i686/g' /etc/pacman.d/mirrorlist > /opt/arch32/mirrorlist",
    but that gives me the error above, so I also tried
    "sudo sed -e 's/x86\_64/i686/g' /etc/pacman.d/mirrorlist > /opt/arch32/mirrorlist"
    which also doesn't work. What's wrong?
    PS: i created /opt/arch32 with "sudo mkdir".

    Thanks I will try that out!
    I'm sorry if I am being stupid but again im very newt o this, but is there a difference between these two things:
    > su
    > touch hello.txt
    and
    > sudo touch hello.txt
    I dont fully understand the concept of 'sudo' yet, from what I know sudo gives temporary su permission, but under the real user so the owner in the first case becomes root while the owner in the second case becomes whoever is executing the command - is this not how it is?

  • Crontab: Permission denied

    I wanted to install a cron entry to rsync my home dir to my backup server.
    [ebal@myarch ~]€ crontab -e
    bash: /usr/bin/crontab: Permission denied
    In the begging i thought that it was something i did.
    So i re-installed dcron and tried again.
    The same result.
    I checked the perms:
    [ebal@myarch ~]€ ls -l /usr/bin/crontab
    -rwsr-x--- 1 root users 9948 Jan 19 05:20 /usr/bin/crontab
    I synced my abs directory and looked on PKGBUILD
    # by default, any member of group "users" can edit their own crontab
    make PREFIX=/usr CRONTAB_GROUP=users CRONTABS=/var/spool/cron CRONSTAMPS=/var/spool/cronstamps || return 1
    The obvious solution is to add my self to users group, but why this is a necessity?
    Why by default all the users can not edit their crontab ?

    From the crontab manpage:
    Only users who belong to the same group as the crontab binary will be able to install or edit crontabs.  However it'll be possible for  the superuser to install crontabs even for users who don't have the privileges to install them themselves.  (Even for users who don't have a login shell.). Only the superuser may use the -u or -c switches to specify a different user and/or crontab directory.
    A posible solution is to set another group for the binary (eg: crontab) and only add the user allowed to run cron jobs to that group instead of users (users is more general). The drawback with this approach is updates might change ownership back to root:users.

  • /etc/init.d/oracle-xe status gives /bin/su: /bin/bash: Permission denied

    Hi all,
    This is my first attempt at Oracle so I tried XE on a linux machine (RedHat Enterprise).
    Install and configuration went fine, however trying http://localhost:8080/apex gives me a connection refused message. So i tried '/etc/init.d/oracle-xe status' to check the status. However i got the following message : '/bin/su: /bin/bash: Permission denied'.
    I installed as root. What gives? What did i do wrong?

    Fixed that issue. I had to set the permission to enter the directory also and to execute these two files. I have the following problem now though. See below:
    [root@localhost root]# /etc/init.d/oracle-xe status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 09-AUG-2006 19:57:42
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 111: Connection refused
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 111: Connection refused

  • [SOLVED]bash: Permission denied

    Hi!
    After yesterdays update (pacman -Syu) i can't seem to run scripts or execute commands like
    ./configure
    here is me trying to compile xbmc.
    ==> Bootstraping XBMC
    /home/*****/build/xbmc-pvr-svn/PKGBUILD: ./bootstrap: /bin/sh: felaktig tolk: Åtkomst nekas <--(Permission denied)
    ==> Configuring XBMC
    /home/*****/build/xbmc-pvr-svn/PKGBUILD: ./configure: /bin/sh: felaktig tolk: Åtkomst nekas <--(Permission denied)
    ==> FEL: Build misslyckades <--(build failed)
    Avbryter...
    sorry my locale is Swedish.
    here is me trying to run script that starts vdr.
    ./startvdr
    bash: ./startvdr: Permission denied
    What caused the problem was, my external drives is not auto mounted in Gnome so i used this udev rule
    http://wiki.archlinux.org/index.php/Ude … _it_exists
    which by the ways works great, after i deleted the udev rule file and rebooted everything is back to normal.
    Last edited by decaturguy (2009-12-23 23:26:34)

    ZaQ wrote:
    Hi,
    Maybe the permissions and/or the owner/group changed?
    Therefore, you could post:
    ls -l /PATH/startvdr
    nothing wrong with the permissions:
    -rwxr-xr-x 1 myusername users 180 23 feb 2009 startvdr
    i can run my scripts like this: bash ./startvdr
    but, bash ./configure is no go it get stuck.
    configure: WARNING: unrecognized options: --enable-external-libmad, --enable-external-libfaad, --enable-external-libvorbis, --enable-external-libmpcdec, --enable-external-libflac
    configure: Ensuring config.guess and config.sub exist and is executable
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for ccache... none
    checking for g++... g++
    checking whether the C++ compiler works... yes
    checking for C++ compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... configure: error: in `/home/****/build/xbmc-pvr-svn/src/pvr-testing2':
    configure: error: cannot run C++ compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details.

  • 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

  • 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.

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

  • Find gives permission denied on files when executed from bash script.

    I've written a really basic script just to check what new music was added to my library over the past n days:
    #!/bin/bash
    echo "Check for days?"
    read days
    `find /home/tom/Music/ -iname "*.*" -type f -mtime -$days -print`
    If I run the find from the shell it runs fine but the script always gives this error:
    ./listNewMusic.sh: line 7: /home/MrGone/Music/Smod/SModcast-19.mp3: Permission denied
    Anyone know why?
    Thanks.

    It is because you're running the find command in a sub-shell.  What is returned by the sub-shell is being run by your script.
    Change:
    `find /home/tom/Music/ -iname "*.*" -type f -mtime -$days -print`
    to
    find /home/tom/Music/ -iname "*.*" -type f -mtime -$days -print
    Last edited by steve___ (2010-07-10 12:50:38)

  • 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

  • Installing 11gr2 in Oracle Linux 6.3 (./runInstaller - permission denied)

    Whenever i try to run ./runInstaller in terminal,
    i get the error as Permission denied ,
    While installing oracle linux 6.3 , i have given root password and in terminal ,
    even though being a root user, can't install the Oracle Database 11gr2.
    I know, there are many tutorials about installing 11gr2, i followed almost all from different sites, but stuck with Permission denied.
    Pls help me anyone, as am a beginner in the field of Linux environment.
    Thanks...
    Edited by: flixblixclix on Jan 1, 2013 10:51 PM

    979352 wrote:
    Whenever i try to run ./runInstaller in terminal,
    i get the error as Permission denied ,
    While installing oracle linux 6.3 , i have given root password and in terminal , trying to install as root is a clear indication that you either haven't read the Installation Guide, or you are choosing to ignore it. If you missed or chose to ignore the point that the installation should not be done as root, who knows what else you missed or chose to ignore.
    From Oracle® Database Installation Guide
    11g Release 2 (11.2) for Linux ( http://docs.oracle.com/cd/E11882_01/install.112/e24321/inst_task.htm#BABJGGJH)
    4.5.1 Running Oracle Universal Installer
    For any type of installation process, start Oracle Universal Installer and install the software, as follows:
    Logon as the Oracle software owner user (typically, oracle) to the computer on which you want to install Oracle components.
    even though being a root user, can't install the Oracle Database 11gr2.
    I know, there are many tutorials about installing 11gr2, i followed almost all from different sites, but stuck with Permission denied.
    Pls help me anyone, as am a beginner in the field of Linux environment. Read the Installation Guide. Read all of it. Believe it.
    >
    Thanks...Edited by: EdStevens on Jan 1, 2013 8:24 AM

  • TNS-12546: TNS:permission denied in Oracle 10g  windows XP

    Hi I have windows xp installed in my pc. After installing 1og, th.e TNS listener service is not starting automatically.
    While starting the service manually from command prompt I am getting the following error.
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-MAY-2009 11:01
    :44
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
    System parameter file is G:\oracle\product\10.2.0\db_1\network\admin\listener.or
    a
    Log messages written to G:\oracle\product\10.2.0\db_1\network\log\listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=15
    21)))
    TNS-12546: TNS:permission denied
    TNS-12560: TNS:protocol adapter error
    TNS-00516: Permission denied
    32-bit Windows Error: 13: Permission denied
    Listener failed to start. See the error message(s) above...
    However the problem is when i connect to the internet and then try to start the listener it starts up and everything works fine after that even after disconnecting from the net. Please help me in solving this. Thank you
    Edited by: [email protected] on May 15, 2009 11:24 PM

    YOU need to verify the host name or the ip address for your pc
    1 you said when connect to the internet is working cause when you create the database the lsnrctl get the internet ip address
    2 you can create new lsnrctl with new ip address and i will work

  • [solved] -bash: ./test: Permission denied

    hello every one
    I have created a test file:
    #!/bin/sh
    echo "hello, this is a test"
    ls
    then
    chmod +x test
    ./test
    and the result is
    -bash: ./test: Permission denied
    pleas help me no shell scrips work!!!
    Last edited by hsn (2009-09-08 08:05:16)

    nowahn wrote:
    what are the outputs of these commands :
    ls -dl .
    ls -l test
    mount
    Is the partition holding your working directory mounted with the "noexec" option ?
    Thanks

  • I get an error message when I try to revise items I am selling on ebay. eBay says it is my computer. This is the error message as follows lscgid: execve():/home/wwocom/public_html/style.cgi: Permission denied..What can I do

    I get an erro message when I try to revise my items while selling on ebay.
    The error message is as follows: lscgid: execve():/home/wwocom/public_html/style.cgi: Permission denied
    I called ebay they say it is my computer.
    What do I do to clear this message so I can sell on eBay?

    That's a server message : ebay's computers, rather than yours.
    You could try clearing cache & cookies for ebay in your browser : eg. Safari - Preferences - Privacy
    & if you still have problems, restart your modem/router.
    You're sure that the message shows at a genuine ebay site ? : see the recent replies at
    http://community.ebay.com/t5/Trust-Safety-Safe-Harbor/Fake-eBay-Sign-In/td-p/185 55847/page/2

Maybe you are looking for

  • Business Area in line item of cash journal (FBCJ)

    Dear all, I made the cash  payment for expenses in head office  level  in fbcj My voucher should be posted like (entry view): Dr expense a/c Business Area 1100 Cr Cash a/c Business Area 1100 But in my clint need  to post diffrent business area  in li

  • BodyBean.setOnLoad not working in Firefox

    Hi, I am facing problem in Firefox for setOnLoad. Its working fine in IE(Internet Explorer) but not for firefox. Here What I am doing in processRequest method. String functionName = "setStatus"; String test= "var status; \n function " + functionName

  • Export from Adobe Illustrator to Wissen Castop Plus 99

    Hello We have a DGI Omega OM-130 Plotter. I can only find drivers to run this from Windows XP, using Wissen Castop Plus 99. While this works for sending flies to plot, the software isn't up to much in making the artwork, so the machine is hard to use

  • Is the a student version of flex builder 3?

    I was wondering if there was a student lisencing option for flex builder 3? Thanks.

  • U400 amd graphics driver

    its been already more than a year and lenovo hasn't publish graphics driver for window 8.1 lenovo u400 . Please can someone help me how can i download graphics driver..