Shell-init: Error Retrieving Current Directory Cannot Access Parent Directories
shell-init: error retrieving current directory cannot access parent directories
shell, init, error, retrieving, current, directory, cannot, access, parent, directories
Shell-init: Error Retrieving Current Directory Cannot Access Parent Directories
Post Description: shell-init: error retrieving current directory cannot access parent directories
POST# 1000
Posted On: Fri Feb 29, 2008 12:01 pm
pack
Topic: Shell-init: Error Retrieving Current Directory Cannot Access Parent Directories
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.


Sun Jul 01, 2007 9:36 pm
1
webune
Reply #1713
shell-init: error retrieving current directory: getcwd:

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:
/etc/init.d/httpd restart


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:
cd /


now try your command again
Mon Mar 17, 2008 3:52 pm
2
lastfeel
Reply #1714
thanks for your help

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload