PDA

View Full Version : [ubuntu] rm: cannot remove `/usr/lib/gcc/i686-linux-gnu/4.5': Permission denied



bhaskar123
June 11th, 2012, 01:10 PM
hai guys,
iam login as a root
but whenever am try to remove following directory ,

rm -rf /usr/lib/gcc/i686-linux-gnu/4.5

it will shows permission denied as fallows.......solution please


rm: cannot remove `/usr/lib/gcc/i686-linux-gnu/4.5': Permission denied:mad:

raja.genupula
June 11th, 2012, 01:47 PM
hi could you give me the terminal code exactly , how you have login as root ?

codemaniac
June 11th, 2012, 02:17 PM
hai guys,
iam login as a root
but whenever am try to remove following directory ,

rm -rf /usr/lib/gcc/i686-linux-gnu/4.5

it will shows permission denied as fallows.......solution please


rm: cannot remove `/usr/lib/gcc/i686-linux-gnu/4.5': Permission denied:mad:

First of all root has all the necessary permissions to delete or manipulate any system objects across filesystem .

As asked by Raja please provide the details how you logged in as root .

However I surprise why you want to remove the above directory where essentials files required for gcc to operate, resides .If you want to uninstall gcc you can use package managers .