Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-23-2014, 05:15 PM   #1
LQ Newbie
Registered: Aug 2012
Location: India
Distribution: Red Hat Linux
Posts: 6

Rep: Reputation: Disabled
Angry Trying to copy a file to /opt: Permission denied

Hi Guys,

I am using Red Hat Enterprise Linux 5 on
VMwareŽ Workstation Version 7.0.0 build-203739.

when i am trying to copy the software "xv-3.10a-37.el5.i386.rpm" from /tmp directory to /opt directory system is throwing the message
"cp: cannot create regular file `/opt/./xv-3.10a-37.el5.i386.rpm': Permission denied"

Please guys help me!!!!!
Old 06-23-2014, 05:21 PM   #2
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,817

Rep: Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734
Those directories require root access. Have you used the root user to move the file? If not, su to root, and copy the file.
1 members found this post helpful.
Old 06-23-2014, 05:41 PM   #3
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
sudo cp /tmp/xv-3.10a-37.el5.i386.rpm /opt/
Old 06-23-2014, 11:31 PM   #4
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,531

Rep: Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622
if "sudo" is set up
"su" and "su -" are used by default on rhel/cent/sl
sudo must be set up and configured

BUT the questions begs to be asked

why copy a rpm package from tmp to opt ???

why not install it and why was it in /tmp to begin with ?

also xv 3.10 is from 1998 and for a VERY DEAD and VERY old version of Redhat
NOT!!!! the current RHEL 5.10
there is 16 years between the two
rh and rhel are TWO DIFFERENT operating systems
the OLD RH5.2 that XV 3.10 was built for came out in 1998

Why do you need to use a rather poor graphics ( converter mostly)program that is 16 years out of date

Last edited by John VV; 06-23-2014 at 11:42 PM.
Old 06-24-2014, 02:39 AM   #5
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Please use a descriptive title for your thread excluding words like 'urgent' or 'help'. Using a proper title makes it easier for members to help you. This thread has been reported for title modification. Please do not add replies that address the thread title.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot copy file even as root (read permission denied) dhamilton Linux - Newbie 10 01-04-2011 08:59 AM
DD copy reports permission denied error speedfreq Linux - Hardware 6 09-23-2009 07:30 PM
"Permission denied" when trying to copy files into mounted windows with all rights twist3r Linux - Newbie 14 05-06-2008 06:30 PM
permission denied mounting /export/home and /opt/csw xushi Solaris / OpenSolaris 6 07-28-2005 04:45 AM
Copy file denied DanielTan Linux - Security 12 05-17-2005 04:08 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration