Cp: Cannot Open for Reading: Permission Denied

How to resolve permission in Linux 7

Beauty_and_dBest

11gR2

OL7.5

Hi ALL,

What is wrong with Linux 7? I can not copy oracle dwelling house to binder owned by itself

cp -r /home/appprod/PROD/fs2/EBSapps/10.i.ii   /habitation/appprod/PROD/fs1/EBSapps

cp: cannot create regular file '/home/appprod/PROD/fs1/EBSapps/x.1.two/opmn/conf/.formfactor': Permission denied

Please help how to resolve this permission issue.

Kind regards,

jc

All-time Reply

  • Billy Verreynne

    In that case, look for a reason, and hopefully a workaround, in MOS support notes - or consider filing a SR with Back up.

Answers

  • John Thorton

    Beauty_and_dBest wrote:11gR2OL7.5Hi ALL,What is wrong with Linux 7? I can not copy oracle home to folder endemic past itself cp -r /habitation/appprod/PROD/fs2/EBSapps/10.ane.two /home/appprod/PROD/fs1/EBSappscp: cannot create regular file '/home/appprod/PROD/fs1/EBSapps/ten.i.2/opmn/conf/.formfactor': Permission deniedPlease aid how to resolve this permission outcome.Kind regards,jc

    Who is Os user that issues "cp" control?

    who is owner & what are OS permissions at each level of both directory tree?

    postal service COPY & PASTE proof that statement below is correct.

    > folder endemic by itself

    >What is incorrect with Linux 7?

    Trouble exists between keyboard & chair

  • Billy Verreynne

    Non all files in an ORACLE_HOME is endemic by the owner of that ORACLE_HOME (e.g. the oracle o/south user).

    Depending on the type of home, files can also be owned by other o/s users (due east.thousand. root).

    In principle, non a good thought to manually copy an Oracle home - as this is without any guarantees that this re-create is usable as an Oracle abode.

  • Beauty_and_dBest

    Cheers Billy and John,

    The owner user is "oracle", and the group is "dba".

    Actually, I already done as root below control:

    #  chown -R oracle.dba   /dwelling/appprod

    So that ways all the files/folders under this top is at present owned by oracle user.

    But why is that it still throws permission denied on some files (as oracle user)? Does information technology relate to "sticky" scrap thing?

    Anyways, I resolved my issue when I run  > chmod -R 755 /home/appprod

    Can you lot explain why?

    Kind regards,

  • Billy Verreynne

    You just broke security, that access permissions and user/group buying, implemented.

    If you want to practice a copy, do it as root, keeping ownership and permissions intact, and unchanged.

  • Beauty_and_dBest

    Hullo Bill,

    The cloning process is run as oracle user not as root user

    I throws error while copying the folders.

    Kind regards,

  • Billy Verreynne

    Do a 'human being cp' and look at the --preserve parameter.

    A root process running the cp tin can preserve all attributes (mode, ownership, etc).

    In my view this is the only sane choice for cloning, manually via a copy, a target directory with a variety of privs.

  • Beauty_and_dBest

    Hullo Bill,

    Oracle EBS (eastward-concern suite) provided a cloning plan to clone its apps and db tiers, and we can not alter this program  to use root to do the cloning, and it may not work.

    Kind regards,

  • Billy Verreynne

    Not sure I sympathize your problem.

    In your opening post you referred to the copy control, doing a recursive copy of an Oracle Home. This is not an EBS home cloning program? My comments for preserving attributes of the copied content is because this is the only reliable way to "clone" using the Linux cp command.

    If there are EBS cloning instructions/scripts, equally in that location are for RAC (https://docs.oracle.com/database/121/RACAD/GUID-8444F1C2-5F67-46B4-ABDE-18D3AFF42D55.htm#RACAD03202), by all means follow these instructions.

  • Beauty_and_dBest

    Hi Billy,

    Really the command is:

    adop phase=fs_clone

    The program keeps on declining considering it can not copy some files.

    Sample error thrown is below:

    Start: Copy the 10.ane.two home from /home/appprod/PROD/fs2/EBSapps/10.ane.2 to /home/appprod/PROD/fs1/EBSapps/10.1.2

    Copying /home/appprod/PROD/fs2/EBSapps/10.i.two to /habitation/appprod/PROD/fs1/EBSapps/10.1.2

    WARNING:

    .cease std out.

    cp: cannot open '/home/appprod/PROD/fs2/EBSapps/10.1.2/jdk/jre/lib/i386/customer/libjsig.so' for reading: Permission denied

    cp: cannot open '/dwelling/appprod/PROD/fs2/EBSapps/10.1.two/jdk/jre/lib/i386/server/libjsig.so' for reading: Permission denied

    cp: cannot open '/home/appprod/PROD/fs2/EBSapps/ten.1.2/sysman/webapps/emd/Spider web-INF/lib/log4j-core.jar' for reading: Permission denied

    cp: cannot open '/home/appprod/PROD/fs2/EBSapps/x.1.ii/bin/lbuilder' for reading: Permission denied

    cp: cannot open '/home/appprod/PROD/fs2/EBSapps/ten.ane.2/bin/webcachectl' for reading: Permission denied

    cp: cannot open up '/abode/appprod/PROD/fs2/EBSapps/10.ane.2/webcache/examples/readme.examples.html' for reading: Permission denied

    .end err out.

    Alarm: Failed to re-create the ten.one.two habitation successfully hence exiting

  • Dude!

    Dude! Member Posts: 22,826 Blackness Diamond

    #  chown -R oracle.dba   /home/appprod

    Is that really what you used, considering it'due south incorrect. If anything, you lot need to supplant the dot with a colon, so it reads oracle:dba but not oracle.dba.

harrisontharty.blogspot.com

Source: https://community.oracle.com/tech/developers/discussion/4191386/how-to-resolve-permission-in-linux-7

0 Response to "Cp: Cannot Open for Reading: Permission Denied"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel