CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Central installation and permissions

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 3, 2008, 08:01
Default Hi all, I have already inst
  #1
Senior Member
 
Francois Beaubert
Join Date: Mar 2009
Location: Lille, France
Posts: 147
Rep Power: 17
francois is on a distinguished road
Hi all,

I have already installed OpenFOAM-1.4.1 on my $HOME directory and I'm now playing with a central installation on our cluster.

According to the wiki (http://www.mfix.org/mwiki/index.php/Organise_Your_Work_with_OpenFOAM#Working_Wit h_Central_Installation)
I have made some minor modifications on the WM_PROJECT_INST_DIR like

export WM_PROJECT_INST_DIR=/opt/software/$WM_PROJECT

And I add this line to my $HOME/.bashrc
source /opt/software/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/bashrc

When I login I have the followings messages:

-bash: /opt/software/OpenFOAM/OpenFOAM-1.4.1/bin/foamCleanPath: Permission denied
-bash: /opt/software/OpenFOAM/OpenFOAM-1.4.1/bin/foamCleanPath: Permission denied
-bash: /opt/software/OpenFOAM/OpenFOAM-1.4.1/bin/foamCleanPath: Permission denied
-bash: /opt/software/OpenFOAM/OpenFOAM-1.4.1/.bashrc: Permission denied
-bash: /opt/software/OpenFOAM/OpenFOAM-1.4.1//apps/ensightFoam/bashrc: No such file or directory
-bash:
/opt/software/OpenFOAM/OpenFOAM-1.4.1//apps/paraview/bashrc: No such file or directory
-bash: /opt/software/OpenFOAM/OpenFOAM-1.4.1/bin/foamCleanPath: Permission denied
-bash: /opt/software/OpenFOAM/OpenFOAM-1.4.1/bin/foamCleanPath: Permission denied
-bash: /opt/software/OpenFOAM/OpenFOAM-1.4.1/bin/foamCleanPath: Permission denied

So obviously there are some permissions problems.
Don't know why ...

So I change those permissions with:
chmod -R a+r /opt/software/OpenFOAM/OpenFOAM-1.4.1/
chmod -R a+x /opt/software/OpenFOAM/OpenFOAM-1.4.1/bin

Is it safe to do this this way ?

After I login I still have some error messages:
Executing: /opt/software/OpenFOAM/OpenFOAM-1.4.1/.bashrc
mkdir: cannot chdir to directory `/opt/software/OpenFOAM/OpenFOAM-1.4.1/src/openmpi-1.2.3/platforms/linux64GccDPO pt': Permission denied
mkdir: cannot chdir to directory `/opt/software/OpenFOAM/OpenFOAM-1.4.1/src/openmpi-1.2.3/platforms/linux64GccDPO pt': Permission denied
mkdir: cannot chdir to directory `/opt/software/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt': Permission denied
Executing: /opt/software/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/apps/ensightFoam/bashrc
Executing: /opt/software/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/apps/paraview/bashrc


And I saw some strange thinks because I do not have applications like icoFoam,gmshToFoam on the command line. But the PATH is correct

A ls -l on /opt/software/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linux64GccDPOpt/ gives me stange thinks:

total 0
?--------- ? ? ? ? ? adiabaticFlameT
?--------- ? ? ? ? ? ansysToFoam
?--------- ? ? ? ? ? attachMesh
?--------- ? ? ? ? ? autoPatch
?--------- ? ? ? ? ? autoRefineMesh
?--------- ? ? ? ? ? blockMesh
?--------- ? ? ? ? ? boundaryFoam
?--------- ? ? ? ? ? boxTurb

Is there a bug with tar. My system use tar (GNU tar) 1.14

So to conclude what is the best way to make a good clean central installation.

Is there a bug with tar with long filename-path ?

Thank you very much for your help
Have a nice day

Francois
francois is offline   Reply With Quote

Old   April 3, 2008, 08:22
Default Try chmod -R a+rX /opt/softwar
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,679
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Try chmod -R a+rX /opt/software/OpenFOAM

Using a large 'X' instead of an small 'x' causes the execution bit to set only if any of the user/group/other execution bits are set.

This grants read permissions for everyone and lets change in to directories, but without making every file excutable (like using a small 'x' would do).

/mark
olesen is offline   Reply With Quote

Old   April 3, 2008, 09:07
Default Hi Mark, Thank you very muc
  #3
Senior Member
 
Francois Beaubert
Join Date: Mar 2009
Location: Lille, France
Posts: 147
Rep Power: 17
francois is on a distinguished road
Hi Mark,

Thank you very much for the tips
Everythings seems to be ok now for permissions

Tanks !

Francois
francois is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add a central jet badri1979 OpenFOAM Running, Solving & CFD 0 September 11, 2006 16:20
Central/QUICK Paul Main CFD Forum 12 January 9, 2006 22:32
Central DIfference Glen Main CFD Forum 9 May 27, 2005 03:06
Central differencing scheme alice FLUENT 1 March 11, 2004 20:07
Central jet injection in a fluidized bed Mike Main CFD Forum 0 April 26, 2002 16:14


All times are GMT -4. The time now is 06:27.