Installed PGI Workstation as root

Someone helping me install PGI Workstation installed as root. Another person suggested using the following command to fix it:

“chown -R myname:mygroup /usr/pgi”

I may not know alot about Linux, but don’t think this will work. Many files and directories are not owned by root, e.g. “ls -la /usr/pgi/linux86/6.1” gives

drwxr-xr-x 4 909 1004 4096 Mar 2 16:45 bin

for the bin directory. I doubt if I should be the owner of files and directories such as these!! Since the person who installed it didn’t leave me a copy of the download, can I fix it by individually editing only the ownership of files and directories owned by root or is it necessary to completely reinstall?

Hi fkelly,

Actually, it shouldn’t matter who the owner and group are so long the objects are world readable and executable. However, it’s not a bad idea to change them to be more uniform with what you normally use on your system. So “chown -R myname:mygroup /usr/pgi” is fine as is “chown -R root:mygroup /usr/pgi”. You should not need to re-install.

  • Mat

Hi Mat,
OK. Perhaps the reason I could not execute PGI was the fact that the /usr/pgi directory was not world executable. “ls -la /usr” yielded
drwxr-xr-- 3 root root pgi
I did a test install in different directory and the world permissions were set to r-x and I was able to execute PGI compilers. So the person who helped me install originally must have done something to make it non-executable to the world. Is this the reason I had trouble?

Hi fkelly,

This was the most likely reason.

  • Mat