From owner-freebsd-questions Fri Jul 2 23:55:31 1999 Delivered-To: freebsd-questions@freebsd.org Received: from usagi.cts.com (usagi.cts.com [209.68.192.66]) by hub.freebsd.org (Postfix) with ESMTP id CF14D14BD5 for ; Fri, 2 Jul 1999 23:55:28 -0700 (PDT) (envelope-from preeper@cts.com) Received: from backshop (gt361.cts.com [204.212.158.91]) by usagi.cts.com (8.9.3/8.9.3) with SMTP id XAA01241 for ; Fri, 2 Jul 1999 23:55:54 -0700 (PDT) Message-Id: <3.0.5.32.19990702235310.00801010@cts.com> X-Sender: preeper@cts.com (Unverified) X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Fri, 02 Jul 1999 23:53:10 -0700 To: freebsd-questions@FreeBSD.ORG From: Jerry Preeper Subject: shell-init: could not get current directory??? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I was wondering if anyone else has run into this and can point me in the right direction. Tonite I was woking on my server and removed 3 users from the web server that had ftponly access. I removed the domains from the httpd.conf file, removed their directories, restarted apache, removed their entries from sendmail and virtusertable, issued a makemap hash /etc/virtusertable < /etc/virtusertable and restarted sendmail, removed the info from named.boot and the associated db. file, then restarted named I was on a dialup connection and ran top to keep my connection open for about an hour as a regular user (not su) after I made all of the above changes. Then when I came back to work again, I switched to su and started getting this: bash-2.01$ su Password: shell-init: could not get current directory: getcwd: cannot access parent directories su-2.01# pwd pwd: could not get current directory: getcwd: cannot access parent directories su-2.01# whoami job-working-directory: could not get current directory: getcwd: cannot access parent directories root su-2.01# cd /var/log cd_links: could not get current directory: getcwd: cannot access parent directories It seems that when I do a cd command, it goes away, but otherwise anything I try to do generates messages like this. What could I have done wrong and how do I fix it? I haven't logged out as root yet because I'm afraid if I do I won't be able to get back in. Maybe a simple log out will cure it? Jerry Preeper To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message