Why is getcwd cannot access parent directories after?
Why is getcwd cannot access parent directories after?
For instance, when we open a new xterm we get the errors shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Why is Apache not able to access my home directory?
You can also apply that permission to /home/dbugger/html instead of 777, but you have to keep in mind that if user www-data cannot cd to your home, it won’t be able to access any file or subfolder. So, if your home permission is rwx—— dbugger:dbugger apache will not be able to access any file inside your home.
What is the error ” cannot access parent directories “?
But the error in the title of this blog post: getcwd: cannot access parent directories: No such file or directory had me scratching my head for quite some time. Until I realized that the error message states what was wrong.
How to get rid of getcwd in Linux?
To get rid of this, in case your current directory was recreated in the meantime, just cd to another (existing) directory and then cd back; the simplest would be: cd; cd -. Just change the directory to another one and come back. Probably that one has been deleted or moved.
Why do I get error retrieving current directory?
All that happens when that step is added is an additional: chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory I tried kickstarting the nfs daemon on the off chance that there was some confusion about my homedir and substituted /etc/init.d in case the problem was with /opt.
Is there a problem with getcwd In xterm?
The only problem now is that we are getting odd error messages about “getcwd”. For instance, when we open a new xterm we get the errors