LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices

Reply
 
Search this Thread
Old 04-01-2013, 05:47 PM   #1
herohat
LQ Newbie
 
Registered: Dec 2002
Posts: 5

Rep: Reputation: 0
Folder permission problem on Centos 5.9 Final


Hi,


I have this unusual case with Centos 5.9 Final. This server have Cpanel deamon running.


When I try install any RPM via yum

Code:
yum install rpm-build
I get the error:

Code:
Error unpacking rpm package rpm-build-4.4.2.3-32.el5_9.i386
error: unpacking of archive failed on file /usr/src/redhat: cpio: mkdir
And the folder: /usr/src/redhat has this permission:

Code:
root@server [~]# ls -la /usr/src/
total 16
drwxr-xr-x  5 root root 4096 Mar 28 15:50 ./
drwxr-xr-x 16 root root 4096 Mar 28 19:39 ../
drwxr-xr-x  2 root root 4096 May 11  2011 debug/
drwxr-xr-x  4 root root 4096 Mar 28 18:44 kernels/
?---------  ? ?    ?       ?            ? redhat

I can't do basically anything, I can't delete, rename or change any attribute the folder: /usr/src/redhat



The full output is this:

Code:
root@server [~]# yum install rpm-build
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.steadfast.net
 * base: mirror.sanctuaryhost.com
 * epel: mirror.steadfast.net
 * extras: mirror.team-cymru.org
 * update: mirror.sanctuaryhost.com
addons                                                                       | 1.9 kB     00:00     
base                                                                         | 1.1 kB     00:00     
epel                                                                         | 3.6 kB     00:00     
extras                                                                       | 2.1 kB     00:00     
update                                                                       | 1.9 kB     00:00     
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package rpm-build.i386 0:4.4.2.3-32.el5_9 set to be updated
--> Processing Dependency: rpm = 4.4.2.3-32.el5_9 for package: rpm-build
--> Running transaction check
---> Package rpm.i386 0:4.4.2.3-32.el5_9 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                Arch              Version                         Repository           Size
====================================================================================================
Installing:
 rpm-build              i386              4.4.2.3-32.el5_9                update              304 k
Installing for dependencies:
 rpm                    i386              4.4.2.3-32.el5_9                update              1.2 M

Transaction Summary
====================================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)

Total size: 1.5 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : rpm                                                                          1/2 
Error unpacking rpm package rpm-4.4.2.3-32.el5_9.i386
error: unpacking of archive failed on file /etc/rpm: cpio: mkdir
  Installing     : rpm-build                                                                    2/2 
Error unpacking rpm package rpm-build-4.4.2.3-32.el5_9.i386
error: unpacking of archive failed on file /usr/src/redhat: cpio: mkdir

Failed:
  rpm.i386 0:4.4.2.3-32.el5_9                   rpm-build.i386 0:4.4.2.3-32.el5_9                  

Complete!
root@server [~]# 

root@server [~]# ls -la /usr/src/
total 16
drwxr-xr-x  5 root root 4096 Mar 28 15:50 ./
drwxr-xr-x 16 root root 4096 Mar 28 19:39 ../
drwxr-xr-x  2 root root 4096 May 11  2011 debug/
drwxr-xr-x  4 root root 4096 Mar 28 18:44 kernels/
?---------  ? ?    ?       ?            ? redhat
root@server [~]#
Any idea?
 
Old 04-01-2013, 07:54 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
Have you tried running a filesystem check tool across it (not while it's mounted)? It looks like something is wrong with the way the filesystem is reporting that directory's information.
 
  


Reply

Tags
centos5, permission denied, permissions, rpm, yum


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
[SOLVED] FTP problem and folder permission rewards Linux - Server 3 02-25-2011 04:11 PM
Folder Permission Settings - CentOS 64bit vps nishan Linux - Server 1 09-09-2009 04:16 PM
NAS shared folder permission problem Alex_trebek Linux - Server 5 10-24-2008 05:23 PM
Problem in samba(Folder Permission) RajendraKumar Linux - Software 1 07-30-2006 10:11 AM
Permission problem with folder /etc/shorewall Teban Mandriva 4 04-04-2004 02:20 PM


All times are GMT -5. The time now is 01:47 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration