LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-19-2011, 12:22 AM   #1
marene
LQ Newbie
 
Registered: Nov 2010
Posts: 11

Rep: Reputation: 0
Erorr with centos


SELinux is enable on my system. When i try to carry out the below operation it fails, giving me te error below. I disable selinux before i was successful, but who can help me out to carry this excercise with selinux enable.




[root@wisetech ~]# mount /dev/cdrom /media
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@wisetech ~]# cp -ar /dev/cdrom /media/. /inst
cp: overwrite `/inst/cdrom', overriding mode 0777? y
cp: cannot create directory `/inst/./CentOS': Permission denied
cp: cannot create regular file `/inst/./EULA': Permission denied
cp: cannot create regular file `/inst/./GPL': Permission denied
cp: cannot create directory `/inst/./images': Permission denied
cp: cannot create directory `/inst/./isolinux': Permission denied
cp: cannot create directory `/inst/./NOTES': Permission denied
cp: cannot create regular file `/inst/./RELEASE-NOTES-nl': Permission denied
cp: cannot create regular file `/inst/./RELEASE-NOTES-en_US.html': Permission denied
cp: cannot create regular file `/inst/./RELEASE-NOTES-de': Permission denied
cp: cannot create regular file `/inst/./RELEASE-NOTES-es.html': Permission denied
cp: cannot create regular file `/inst/./RELEASE-NOTES-pt_BR': Permission denied
cp: cannot create regular file `/inst/./RELEASE-NOTES-en.html': Permission denied
cp: cannot create regular file `/inst/./RELEASE-NOTES-en_US': Permission denied
cp: cannot create regular file `/inst/./RELEASE-NOTES-ja.html': Permission denied
cp: cannot create regular file `/inst/./RELEASE-NOTES-es': Permission denied
cp: cannot create regular file `/inst/./RELEASE-NOTES-ro.html': Permission denied
cp: cannot create regular file `/inst/./RELEASE-NOTES-ro': Permission denied
cp: cannot create regular file `/inst/./RELEASE-NOTES-de.html': Permission denied
cp: cannot create regular file `/inst/./RELEASE-NOTES-ja': Permission denied
cp: cannot create regular file `/inst/./RELEASE-NOTES-fr.html': Permission denied
cp: cannot create regular file `/inst/./RELEASE-NOTES-fr': Permission denied
cp: cannot create regular file `/inst/./RELEASE-NOTES-nl.html': Permission denied
cp: cannot create regular file `/inst/./RELEASE-NOTES-en': Permission denied
cp: cannot create regular file `/inst/./RELEASE-NOTES-cs.html': Permission denied
cp: cannot create regular file `/inst/./RELEASE-NOTES-cs': Permission denied
cp: cannot create regular file `/inst/./RELEASE-NOTES-pt_BR.html': Permission denied
cp: cannot create directory `/inst/./repodata': Permission denied
cp: cannot create regular file `/inst/./RPM-GPG-KEY-CentOS-5': Permission denied
cp: cannot create regular file `/inst/./RPM-GPG-KEY-beta': Permission denied
cp: cannot create regular file `/inst/./TRANS.TBL': Permission denied
cp: cannot create regular file `/inst/./.discinfo': Permission denied
cp: cannot create regular file `/inst/./.treeinfo': Permission denied
 
Old 01-19-2011, 12:31 AM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I'm not sure, but check out umask
http://en.wikipedia.org/wiki/Umask
 
Old 01-19-2011, 12:35 AM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Sorry I was looking at this:
cp: overwrite `/inst/cdrom', overriding mode 0777? y
 
Old 01-19-2011, 06:38 PM   #4
marene
LQ Newbie
 
Registered: Nov 2010
Posts: 11

Original Poster
Rep: Reputation: 0
I set my selinux to permissive, it was successful
 
Old 01-19-2011, 06:53 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by marene View Post
I set my selinux to permissive, it was successful
In case of any SELinux errors please first look at /var/log/audit/audit.log (or /var/log/messages if the auditd service is not running) for clues.
 
  


Reply



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
a simple erorr in installing a package soltanloo Linux - General 6 10-07-2009 04:15 AM
Erorr Mime.Types in Apache longvnit Linux - Server 0 05-25-2009 11:24 PM
APACHE ERORR:- "DocumentRoot must be a directory" on redhat chandramani_yadav Linux - Server 1 01-14-2009 05:19 AM
Phpmyadmin erorr klemen Linux - Networking 2 02-18-2005 12:32 PM
Erorr compiling kernel 2.6.10 ? sys7em Slackware 6 01-30-2005 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:28 AM.

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
Open Source Consulting | Domain Registration