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

Is it safe to change owner of src to root?

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 20, 2014, 02:40
Default Is it safe to change owner of src to root?
  #1
Member
 
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 85
Rep Power: 12
chrisb2244 is on a distinguished road
So essentially I have myself a nice working copy of OF-2.2.2
I'm writing my own applications and libraries in my OpenFOAM/user-2.2.2/... directories, and all is well.
I'm referring to the original source files in OpenFOAM/OpenFOAM-2.2.2/src/... directories.

My question is, whilst I have these open in an editor to refer to, sometimes I make changes to the original /src files, which I don't want to do, and accidentally save them. Usually I notice, undo the changes, and save them again, but I'm worried I might change the source files, save them, and not notice. Now until I wmake in the src directories, this won't change my installation (right?) and so shouldn't matter, but it does mean that I might later be referring to source files which are not as they originally were.

Is it safe to type
Code:
cd src
sudo chown -R root *
such that then the directories under the src directory have permissions like (viewed via ls -l)
Code:
-rwxr-xr-x  1 root christian 2057 10月  3 19:28 Allwmake
drwxr-xr-x 13 root christian 4096 11月 20 15:32 combustionModels
drwxr-xr-x  9 root christian 4096 11月 20 15:25 conversion
drwxr-xr-x  6 root christian 4096 10月  3 19:28 dummyThirdParty
drwxr-xr-x 11 root christian 4096 11月 20 15:26 dynamicFvMesh
drwxr-xr-x 22 root christian 4096 11月 20 15:25 dynamicMesh
...
chrisb2244 is offline   Reply With Quote

 

Tags
chown src


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
ANSYS Workbench on "Uncertified" Linux Distros hsr CFX 289 April 20, 2023 09:23
How to change turbulence model in InterFoam Gildeh OpenFOAM Running, Solving & CFD 4 March 28, 2012 12:04
Change cell zone index/thread during simulation neilduffy1024 FLUENT 0 January 17, 2011 09:40
no enthalpy change across the momentum source Atit Koonsrisuk CFX 2 December 19, 2005 02:33
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


All times are GMT -4. The time now is 08:57.