CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Bashrc Permission denied (https://www.cfd-online.com/Forums/openfoam/70488-bashrc-permission-denied.html)

Xye November 25, 2009 17:38

Bashrc Permission denied
 
Hey. Sorry for all these threads i seem to be creating.

Right. So far I have successfully downloaded and compiled OF 1.6.x

The trouble comes when I try to edit the bashrc file.

I have editted it in the terminal using the command

Quote:

sudo nano .bashrc
and saved changes to it before exiting.

as the readme says I have added
Quote:

$HOME/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc
to the very end of the file so there is nothing after it.

This gives me the error when i start the terminal again of:
Quote:

bash: /home/xye/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc: Permission denied
I do not know what to do now.

Ahmed November 25, 2009 17:52

Quote:

Originally Posted by Xye (Post 237738)
Hey. Sorry for all these threads i seem to be creating.

Right. So far I have successfully downloaded and compiled OF 1.6.x

The trouble comes when I try to edit the bashrc file.

I have editted it in the terminal using the command



and saved changes to it before exiting.

as the readme says I have added


to the very end of the file so there is nothing after it.

This gives me the error when i start the terminal again of:


I do not know what to do now.

You forgot the . (the dot space) before your command.
you can make it easier for yourself, by typing
source ...................................../bashrc instead.
Good Luck

Xye November 26, 2009 05:27

Yes! thank you!

was confused for a minute where you mean't to put the . but i put it in the bashrc just to check.


All times are GMT -4. The time now is 04:30.