CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   problem removing broken 1.6-ext installation (http://www.cfd-online.com/Forums/openfoam-installation/112986-problem-removing-broken-1-6-ext-installation.html)

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:
    Code:

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

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

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

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

    exit
Best regards,
Bruno

AmirBaqa1987 February 10, 2013 15:28

appreciation
 
hi bruno and thanks a lot
for your tips


All times are GMT -4. The time now is 05:32.