LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   Folder permission problem on Centos 5.9 Final (https://www.linuxquestions.org/questions/linux-distributions-5/folder-permission-problem-on-centos-5-9-final-4175456438/)

herohat 04-01-2013 05:47 PM

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?

gilead 04-01-2013 07:54 PM

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.


All times are GMT -5. The time now is 04:40 AM.