I enabled root in terminal by sudo passwd root and then attempted to cd a rails site folder located on my desktop. I got the error -bash: cd: /Users/fred/Desktop/sitefolder: Permission denied
How to get rid of this error/ enable all permissions for root? Thanks
Are you sure you called
cdas root?If yes, check if the owner of the folder is root. If not call
sudo chown /Users/fred/Desktop/sitefolder rootthen check if the owner has reading permission. If not call
(this enables all permissions for owner and only reading permission for group and others).
If you don’t care much about that folder you may instead call directly
giving all permissions to every user.