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

[OpenFOAM.com] How to change OpenFoam installation to root

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 19, 2022, 11:15
Unhappy How to change OpenFoam installation to root
  #1
New Member
 
JetT
Join Date: Jan 2021
Posts: 4
Rep Power: 5
jetaji1 is on a distinguished road
Hi, I am new at Linux/Ubuntu and just realised I couldn't copy the OpenFoam tutorials into my home directory because it has been installed under my user and not root.

Is there a way to change this to root? I have tried 'sudo' and 'chmod' commands to change permissions (I am not familiar with permissions so used the internet for these commands), but they gave similar errors to 'permission denied'.

Is there a way to chamge the OpenFoam dir to root? Do I have to re-install? If so, how do I make sure I install under root?

Thank you.
jetaji1 is offline   Reply With Quote

Old   November 19, 2022, 11:25
Thumbs down Code
  #2
New Member
 
JetT
Join Date: Jan 2021
Posts: 4
Rep Power: 5
jetaji1 is on a distinguished road
To be more precise, this is what I tried:

/usr/lib/openfoam/

I initially tried to copy dir to home by:

cp -r /usr/lib/openfoam/ ./ - I get this error: "cp: cannot create directory './openfoam': Permission denied"

I tried:

chmod -R +x /lib/openfoam/ - no error popped up but when I try to copy directory, I get the same error as earlier.

The same happens when I use sudo chown.

Please help me!
jetaji1 is offline   Reply With Quote

Reply

Tags
permission, permission denied, root, user


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
[OpenFOAM.com] Problem installation OpenFOAM 6 wamars OpenFOAM Installation 0 June 23, 2020 10:01
[OpenFOAM.org] Install OpenFOAM 6 on Ubuntu 16.04 without root access DoQuocVu OpenFOAM Installation 1 December 27, 2019 17:27
[OpenFOAM.org] Installation of OpenFOAM 2.3.0 / 2.3.x on RHEL 5.8 without root permissions niX1337 OpenFOAM Installation 7 January 12, 2015 04:43
OpenFoam 2.0.0 installation Jan_Peters OpenFOAM Installation 86 April 27, 2012 06:32
Source Pack Installation OpenFOAM Version 2.1.0 on Redhat Linux Indrajit OpenFOAM Installation 1 April 1, 2012 05:39


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