[CMake] Make install permissions advice for ubuntu 14.04 with cmake 2.8

rleigh at codelibre.net rleigh at codelibre.net
Mon Jun 6 12:01:34 EDT 2016


On 2016-06-06 16:39, B00083603 Michael O Brien wrote:
> Hi Roger,
> 
> When I run sudo -s I get bash:  /home/myaccount/ : Permission denied
> but I get a root prompt on the terminal. I get a permission denied
> when I try to cd into anything deeper than /home/myaccount/
> 
> Yes the /home/ is an NFS mount as its common across all the vm's I'm
> assigned to but  there isn't an etc/exports file
> In /proc/mount the mount details don't mention root_squash just that
> its nfs rw relatime vers3

The root squashing is in the exports on the server side.  This maps uid 
0 to nobody,
which is why the access is denied.  One solution: make all the files 
readable by
other and the directories are readable and executable by other.  
However, since this
is generally the default it's not clear why this is happening.  You 
didn't show us
the permissions as I asked, so it's not possible to do more than 
speculate.  What does
this show (with any typos fixed)?

ls -ld / /home /home/michael.obrien /home/michael.obrien/setups 
/home/michael.obrien/setups/OpenCV 
/home/michael.obrien/setups/OpenCV/opencv-2.4.12 
/home/michael.obrien/setups/OpenCV/opencv-2.4.12/build

I'll hazard a guess that your homedir is 0700 or 0750; if so it'll need
to be 0755 (so that any user can access it, including nobody); likewise
for any other directories which you want root to read.


Regards,
Roger


More information about the CMake mailing list