CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Installation Help (https://www.cfd-online.com/Forums/openfoam-installation/57465-installation-help.html)

sandbox June 3, 2007 14:25

Hello, When I try to source
 
Hello,

When I try to source the following error occurs..(Note I am logged in as root)

box:/home # . .bashrc
bash:/home/OpenFOAM/OpenFOAM-1.4/.OpenFOAM-1.4/bashrc: Permission denied

Could someone please help me resolve this issue?
Thanks in advance
S.

alberto June 3, 2007 14:55

Hi S, are you trying to do a
 
Hi S,
are you trying to do a multi-user installation? If so, follow these hints http://www.mfix.org/mwiki/index.php/Organise_Your_Work_with_OpenFOAM#Working_Wit h_Central_Installation

If not, put the OpenFOAM directory in /home/your_user_name.

P.S. For your security, don't run anything as root, if not strictly necessary :-)

Regards,
Alberto

koen December 3, 2007 08:08

Hi everybody, I recieve the
 
Hi everybody,

I recieve the same error: /home/koen/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/bashrc: Permission denied

I installed it as a single user in /home/koen/ and I will only run it from this user account...
...but I used the su to install OpenFOAM in this users directory.

Could this be the cause of the error?

(I am using OpenSuse 10.3)

I hope somebody can help me.

Greetzzz, Koen...

koen December 3, 2007 08:52

To be sure, I just removed the
 
To be sure, I just removed the entire OpenFOAM directory and re-downloaded all files and re-installed it from scratch, now as the user and not superuser.

It still results in the same error:
bash: /home/koen/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/bashrc: Permission denied

So know I am realy counting on this forum to help me overcome this problem.

Koen...

7islands December 3, 2007 09:38

Don't try to execute the scrip
 
Don't try to execute the script, but "source" it:
source /home/koen/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/bashrc

Takuya

doum December 3, 2007 09:42

I am running on OpenSUSE 10.3
 
I am running on OpenSUSE 10.3 and my .bashrc is the following (username = openfoam), and everything is working fine



. /home/openfoam/OpenFOAM/OpenFOAM-1.4.1-dev/.OpenFOAM-1.4.1-dev/bashrc
export WM_64=on

dmoroian December 3, 2007 09:44

Hi Koen, First you should see
 
Hi Koen,
First you should see what are the prermisions on that file. For that type:
ls -l /home/koen/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/bashrc
id


The first command should give you, among other things, the permissions set on that file. In my case it reads as following:
-rw-r----- 1 dragosm fsd 7257 2007-10-03 14:15 OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/bashrc

The second command, will show you the user/group that you actually are logged as. In my case is:
uid=525(dragosm) gid=501(fsd) groups=501(fsd),801(educ),802(ext)

If you fill this is too slow, just mail me on private.
By the way, I have a full instalation of OpenFOAM 1.4.1 that works perfect on OpenSUSE 10.3.

Dragos


All times are GMT -4. The time now is 13:59.