From owner-freebsd-questions Tue Jan 20 22:05:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA16224 for questions-outgoing; Tue, 20 Jan 1998 22:05:08 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA16176 for ; Tue, 20 Jan 1998 22:04:42 -0800 (PST) (envelope-from grog@lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.8.7/8.8.5) with ESMTP id QAA09676; Wed, 21 Jan 1998 16:34:40 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id QAA08217; Wed, 21 Jan 1998 16:34:39 +1030 (CST) (envelope-from grog) Message-ID: <19980121163439.52311@lemis.com> Date: Wed, 21 Jan 1998 16:34:39 +1030 From: Greg Lehey To: Shan-Min Chao Cc: questions@FreeBSD.ORG Subject: Re: Some simple FreeBSD questions References: <34C58A3D.167EB0E7@lvdi.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <34C58A3D.167EB0E7@lvdi.net>; from Shan-Min Chao on Tue, Jan 20, 1998 at 09:40:13PM -0800 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk On Tue, Jan 20, 1998 at 09:40:13PM -0800, Shan-Min Chao wrote: > Hello! > Once again, I would like some help. Can anyone tell me which file user > account information is located in? For example, if I wanted to edit the > login shell for a certain user, what should I do? I tried to edit the > /etc/passwd file, but it doesn't seem to change anything. I even tried > the /etc/master.passwd. If these don't work, why are they here to begin > with? I don't know. But they work for me. The correct way is to first edit master.passwd and then rebuild the password databases. The easiest way to do this is with vipw. Alternately, in your case you could have the user run chsh (change shell), which seems to be exactly what you're looking for. See the man pages for more detail. > Second of all, what is the difference between .profile, .login, and > .cshrc? .profile is used by the Bourne shell, .login and .cshrc by the C shell (the former only for login shells). > Third of all, I know there is a C++ compiler on FreeBSD called c++. > Where are the include files for the c++ (not the cc) compiler? I know > the ones for the cc are in /etc/include. But there is no iostream.h in > there! They're in /usr/include/g++. > Fourth of all, would it cause any adverse effects if I deleted the > /usr/ports directory? Not unless you wanted to install a port. Have you checked on the size of the directory? It's not that big. > Last but not least, do you guys know how to set any preferences for the > ppp dialer? I mean, every time I finish dialing, I have to do the > following commands: "add 0 0 HISADDR" and "set timeout 0". Any ideas > how to make the ppp set this up by itself so that I don't have to type > it in every time? Yup, it's in the man page. Make sure you have the following in your /etc/ppp/ppp.linkup: MYADDR: add 0 0 HISADDR (note the exact spacing at the beginning of the line). Add set timeout 0 to the default: section of your /etc/ppp/ppp.conf, and make sure you don't have any overrides elsewhere where they could affect you. Greg