From owner-freebsd-questions Wed Dec 25 22:44:22 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id WAA10222 for questions-outgoing; Wed, 25 Dec 1996 22:44:22 -0800 (PST) Received: from gdi.uoregon.edu (cisco-ts11-line4.uoregon.edu [128.223.150.119]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id WAA10217 for ; Wed, 25 Dec 1996 22:44:18 -0800 (PST) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.2/8.6.12) with SMTP id WAA00340; Wed, 25 Dec 1996 22:44:11 -0800 (PST) Date: Wed, 25 Dec 1996 22:44:11 -0800 (PST) From: Doug White Reply-To: dwhite@resnet.uoregon.edu To: "Miten N. Mehta" cc: questions@freeBSD.org Subject: Re: problem In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freeBSD.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 24 Dec 1996, Miten N. Mehta wrote: > Then also other users with "tcsh" were fine, while logging in they were > fine too. But I noticed that still the first user did not get the "tcsh" > when logged in after change. So I deleted that user by removing the > entries for that first user from both the files - /etc/passwd and > /etc/master.passwd. Never edit these files directly. Use: vipw -or- chsh > Then I rebooted the computer by shutdown command. Before that I ran > "fsch" and when it asked to fix the CLEAR FLAG, I had told yes. You don't need to run fsck before shutting down. > After rebooting, now root is working fine but with the users having > "tcsh" as initial shell are facing problem and when I login as those > users, I got following error messages ( I am dumping the screen I get ... > > tcsh: Permission denied > tcsh: Trying to start from "/home/vaidya" > tcsh: Trying to start from "/" > tcsh: Cannot open /etc/termcap. > tcsh: using dumb terminal settings. Your permissions appear to be seriously broke. Delete (using pkg_delete) and reinstall tcsh. > Also > - tell me how to remove users > - how to change shell of theirs 1. use vipw 2. delete the user's entry in there, save & quit 3. delete their home directory with rm -rf /home/user 4. edit /etc/group, remove all occurances of user All should be good. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major