CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   problem removing broken 1.6-ext installation (

AmirBaqa1987 February 9, 2013 05:42

problem removing broken 1.6-ext installation
hi everyone
i want to delete the openfoam-1.6-ext folder because i could not install it completely
now i can't delete it, in the process of installation i entered the root media by command:
su - and logout
now the openfoam-1.6-ext properties, the permission tab shows that the owner of this folder is root(not me)
how can i change the owner and delete this folder?
thanks a lot

wyldckat February 10, 2013 07:37

Hi Arjang,

That's one of the reasons why you shouldn't build things directly as root! ;)

I think these steps should work:
  1. Go back into root mode:

    su -
  2. Go into the broken folder. For example:

    cd /opt
  3. Change ownership of the damaged folder "OpenFOAM-1.6-ext" to your user name... I'll assume its "arjang":

    chown -R arjang:arjang OpenFOAM-1.6-ext
    Or, depending on your Linux distribution:

    chown -R arjang:users OpenFOAM-1.6-ext
  4. You can now go back into normal user:

Best regards,

AmirBaqa1987 February 10, 2013 15:28

hi bruno and thanks a lot
for your tips

All times are GMT -4. The time now is 16:45.