- Forums
- Linux Systems
- Linux Error - Shell-init: Error Retrieving Current Directory
this topic is about a linux error Shell-init: Error Retrieving Current Directory Cannot Access Parent Directories. this is a common error on linux systems when you are booting or installing a fresh operating system on your computer or server. [2945], Last Updated: Sat May 18, 2024
pack
Sun Jul 01, 2007
11 Comments
15004 Visits
i was wondering if you can help me, im getting this error whenver i try to restart a service in my server:
-bash: etc/init.d/named: No such file or directory
[root@server install]# /etc/init.d/named stop
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Stopping named: [ OK ]
[root@server install]# /etc/init.d/mysqld stop
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Stopping MySQL: [ OK ]
[root@server install]# /etc/init.d/httpd stop
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Stopping httpd: [ OK ]
[root@server install]# /etc/init.d/postfix stop
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Shutting down postfix: [ OK ]
[root@server install]# /etc/init.d/proftpd stop
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Shutting down proftpd: [ OK ]
[root@server install]#
[root@server install]# cd /
[root@server /]# /etc/init.d/httpd start
Starting httpd: [Mon Jul 02 04:39:16 2007] [warn] The ScriptAlias directive in /etc/httpd/conf/httpd.conf at line 1001 will probably never match because it overlaps an earlier ScriptAlias.
[ OK ]
what can i do. i heard that you guys with www.webune.com can help me with this error.
as for this error:
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
If you are getting this error while installing or starting some service like
COMMAND:
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Shutting down httpd:
Then that error says that its not able to locate the (cwd) corrent working directory, so it happens because you’re still in the check directory which doesn’t exist anymore. Go to another directory, and you’ll see the warnings are gone.
so just send this command
COMMAND:
now try your command again