From owner-freebsd-questions Wed Aug 29 12:15:45 2001 Delivered-To: freebsd-questions@freebsd.org Received: from relay02.esat.net (relay02.esat.net [192.111.39.21]) by hub.freebsd.org (Postfix) with ESMTP id 64A1B37B405 for ; Wed, 29 Aug 2001 12:15:35 -0700 (PDT) (envelope-from noelfitz@ipac.ie) Received: from (ipac01.ipac.local) [193.95.175.126] by relay02.esat.net with esmtp id 15cAoH-00069X-00; Wed, 29 Aug 2001 20:15:33 +0100 Subject: RE: Changing shell Date: Wed, 29 Aug 2001 15:49:13 +0100 Message-ID: <712A2C3F8297CB498D51421F26F7ECAEDA43@ipac01.ipac.local> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Changing shell content-class: urn:content-classes:message Thread-Index: AcEwmLJ3wWQFzBXSQiq2YT2AM2GEHgAAO9HQ X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 From: "Noel Fitzpatrick" To: "David Kelly" , "Andrew Gould" Cc: "Edwin Groothuis" , , 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 Hey, I even go one better and say learn to use pw. Very handy! Whatever you do don't edit /etc/passwd by hand it will probably work but your just asking for trouble. Noel. -----Original Message----- From: David Kelly [mailto:dkelly@hiwaay.net] Sent: 29 August 2001 15:42 To: Andrew Gould Cc: Edwin Groothuis; 'lucas@slb.to'; questions@FreeBSD.ORG Subject: Re: Changing shell 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] [...] > >=20 > > > Either play around with vipw(1) or edit /etc/password directly. > > ^^^^^^^^^^^^^ > > My system doesn't have this file. --=20 David Kelly N4HHE, dkelly@hiwaay.net =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message