From owner-freebsd-questions Wed Aug 29 7:42:45 2001 Delivered-To: freebsd-questions@freebsd.org Received: from grumpy.dyndns.org (user-24-214-57-209.knology.net [24.214.57.209]) by hub.freebsd.org (Postfix) with ESMTP id 31CBE37B403 for ; Wed, 29 Aug 2001 07:42:38 -0700 (PDT) (envelope-from dkelly@grumpy.dyndns.org) Received: (from dkelly@localhost) by grumpy.dyndns.org (8.11.6/8.11.4) id f7TEfus75841; Wed, 29 Aug 2001 09:41:56 -0500 (CDT) (envelope-from dkelly) Date: Wed, 29 Aug 2001 09:41:56 -0500 From: David Kelly To: Andrew Gould Cc: Edwin Groothuis , "'lucas@slb.to'" , questions@FreeBSD.ORG Subject: Re: Changing shell Message-ID: <20010829094156.A75821@grumpy.dyndns.org> References: <6C5913137AC8D4119A1800902794313E1053C1@ISTECH4> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <6C5913137AC8D4119A1800902794313E1053C1@ISTECH4>; from AndrewGould@shannonhealth.org on Wed, Aug 29, 2001 at 09:13:34AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Aug 29, 2001 at 09:13:34AM -0500, Andrew Gould wrote: > Try /etc/passwd Don't edit /etc/passwd as its faked for compatibility. If you want the change a user's login shell use "chsh" which allows the user to do it himself. If you are root then you can do maximum damage the fastest with vipw. As for which file to edit so bash executes a script on login one needs to study the default shell in use to determine where the script in question can be hooked into place. Is one of .cshrc, .login, .profile, .bashrc, .tcshrc, etc. And keep in mind "su" executes a different set of config files than a real login (which can be simulated with "su -"). If you have bash installed then the first line of the script can start with #!/path-to-bash/bash and be chmod'ed executable. Then the default login shell has less to do with whatever this guy is trying to do. > > From: Lucas Bergman[SMTP:lucas@slb.to] [...] > > > > > Either play around with vipw(1) or edit /etc/password directly. > > ^^^^^^^^^^^^^ > > My system doesn't have this file. -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message