LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-23-2014, 04:15 PM   #1
suraj_thadarai
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, 04:21 PM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,143

Rep: Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503
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, 04:41 PM   #3
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,238
Blog Entries: 11

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

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
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!!!

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
RH5
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
http://en.wikipedia.org/wiki/Red_Hat_Linux

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 10:42 PM.
 
Old 06-24-2014, 01:39 AM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
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.
 
  


Reply


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 07:59 AM
DD copy reports permission denied error speedfreq Linux - Hardware 6 09-23-2009 06:30 PM
"Permission denied" when trying to copy files into mounted windows with all rights twist3r Linux - Newbie 14 05-06-2008 05:30 PM
permission denied mounting /export/home and /opt/csw xushi Solaris / OpenSolaris 6 07-28-2005 03:45 AM
Copy file denied DanielTan Linux - Security 12 05-17-2005 03:08 PM


All times are GMT -5. The time now is 01:44 PM.

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