Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > shell-init: could not get current directory

shell-init: could not get current directory
Thread Tools
Zim
Senior User
Join Date: Apr 2001
Location: Cary, NC
Status: Offline
Reply With Quote
Apr 22, 2003, 07:01 AM
 
Hmm, something new when I ssh to my machine... must've (?) cropped up with either the 10.2.5 update (which amazingly did not change permissions on /), or the Safari update (which did).

So what is this message trying to tell me?
(I get this when I ssh to my Mac, altho I do get logged in to my $HOME)

password:
shell-init: could not get current directory: getcwd: cannot access parent direct
ories: No such file or directory
Last login: Tue Apr 22 07:21:26 2003
Welcome to Darwin!
Thanks,
Mike
     
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status: Offline
Reply With Quote
Apr 22, 2003, 03:26 PM
 
shell-init: could not get current directory: getcwd: cannot access parent direct
ories: No such file or directory
Questions:[list=1][*]Which shell?[*]Do you get the same message when local (i.e. opening the Terminal.app from your Mac)?[*]Is it the same shell when local or remote?[*]Is it the same account? (Might want to do a whoami from each to confirm.)[/list=1]
     
Zim  (op)
Senior User
Join Date: Apr 2001
Location: Cary, NC
Status: Offline
Reply With Quote
Apr 22, 2003, 08:47 PM
 
Originally posted by Rainy Day:
Questions:[list=1][*]Which shell?[*]Do you get the same message when local (i.e. opening the Terminal.app from your Mac)?[*]Is it the same shell when local or remote?[*]Is it the same account? (Might want to do a whoami from each to confirm.)[/list=1]
1) I use tcsh local and remote.
2) I do not get this via Terminal. Nor do I get it every time I ssh in (seen it twice now in the past 3 days.
3) yes, same user.
     
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status: Offline
Reply With Quote
Apr 23, 2003, 11:58 AM
 
You don't see it every time you SSH in? Curious. Without seeing your tcsh configuration files, it would be hard to say what, exactly, might be causing it. It would appear to be having problems accessing a directory somewhere along the way, although that directory is not your $HOME directory. The fact that you don't see it every time suggests that something is changing between log-ins which either prevents it from accessing whatever directory some of the time, or not to look in the forbidden directory some of the time.
     
Zim  (op)
Senior User
Join Date: Apr 2001
Location: Cary, NC
Status: Offline
Reply With Quote
Apr 23, 2003, 02:30 PM
 
Originally posted by Rainy Day:
You don't see it every time you SSH in? Curious. Without seeing your tcsh configuration files, it would be hard to say what, exactly, might be causing it. It would appear to be having problems accessing a directory somewhere along the way, although that directory is not your $HOME directory. The fact that you don't see it every time suggests that something is changing between log-ins which either prevents it from accessing whatever directory some of the time, or not to look in the forbidden directory some of the time.
Yep, its a curious one. My .cshrc, login, .aliases have not been touched since Mar 2... and are mostly the same ones I have been carting around from job to job since the early 90's....

I did enable X11 Forwarding the other day... perhaps I shall experiment with Apple X11 not/running with some logins.

Guess I shoulda looked at the log files (just thought of that)

Mike
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:05 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2