[Linux] to solve the problem virtualbox shared folder does not have access

Built on a virtual machine site and found not visit, the configuration is correct, use the following command to trace the letters of the mark

strace $(pidof 'php-fpm: pool www'|sed 's/\([0-9]*\)/-p \1/g')

Reported that the authority does not view the shared directory permissions to groups of users found to be vboxsf

[pid 1851] lstat("/var/www/phpProject/laykefu/public/index.php", 0x7ffcb08a6170) = -1 EACCES (Permission denied)
[pid 1851] stat("/var/www/phpProject/laykefu/public", 0x7ffcb08a85b0) = -1 EACCES (Permission denied)

[pid  1851] write(4, "\1\7\0\1\0\26\2\0Primary script unknown\0\0"..., 144) = 144

 

Change directory permissions are changed those not moving, so use this command to execute the user to join the group

usermod -aG vboxsf $(whoami)

usermod -aG vboxsf www-data

 

 Refresh enough

Guess you like

Origin www.cnblogs.com/taoshihan/p/12129230.html