From owner-freebsd-questions Fri Jan 21 16:28:46 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mx2.x-treme.gr (mx2.x-treme.gr [212.120.192.15]) by hub.freebsd.org (Postfix) with ESMTP id 0709E15672 for ; Fri, 21 Jan 2000 16:28:32 -0800 (PST) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: from hades.hell.gr (pat47.x-treme.gr [212.120.197.239]) by mx2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with ESMTP id CAA25566; Sat, 22 Jan 2000 02:06:04 +0200 Received: (from charon@localhost) by hades.hell.gr (8.9.3/8.9.3) id CAA03324; Sat, 22 Jan 2000 02:06:03 +0200 (EET) (envelope-from keramida@diogenis.ceid.upatras.gr) Date: Sat, 22 Jan 2000 02:06:02 +0200 From: Giorgos Keramidas To: Jonathon McKitrick Cc: freebsd-questions@FreeBSD.ORG Subject: Re: zsh alias question Message-ID: <20000122020602.A3078@hades.hell.gr> Reply-To: keramida@ceid.upatras.gr References: <20000120180954.C866@hades.hell.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: X-PGP-Fingerprint: 62 45 D1 C9 26 F9 95 06 D6 21 2A C8 8C 16 C0 8E X-Phone-Number: +30-94-6203692, +30-93-2886457 X-Address: Theodorou Kirinaiou 61, 26334 Patra, Greece Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Jan 21, 2000 at 02:54:37PM +0000, Jonathon McKitrick wrote: > On Thu, 20 Jan 2000, Giorgos Keramidas wrote: > >I used vipw and added the home directory at the end of the `toor' line. > > > > toor:*:0:0:Bourne-again Superuser:/root:/bin/sh > > So does toor need a home directory in order to have a different > password from root? At this point, when i su or login as toor, when > i run passwd or chsh, it references root. I have them both pointing at /root, as you can see from: % head -2 /etc/passwd root:*:0:0:Superuser:/root:/bin/csh toor:*:0:0:Bourne-again Superuser:/root:/usr/local/bin/bash They can have the same home directory. The files they will be using will be the same, except for the shell startup scripts. But each shell keeps it's startup in a different script, so this is not a problem. I keep my Bourne shell aliases in /root/.shrc -- the terminal setup and other stuff needed for login and interactive shells in /root/.profile -- the Bash specific prompt setup in ~/.bashrc (which calls .profile to do the rest of the work), and nothing in /root/.bash_profile ;) The /root/.cshrc and /root/.login files are the stock versions provided with my release of FreeBSD (3.4-STABLE). About the `zsh/su -m' question, I don't really know why this happens. Ciao. -- Giorgos Keramidas, < keramida @ ceid . upatras . gr > "Don't let your schooling interfere with your education." [Mark Twain] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message