From owner-freebsd-questions Sun Jan 16 1:49:16 2000 Delivered-To: freebsd-questions@freebsd.org Received: from sblake.comcen.com.au (sblake.comcen.com.au [203.23.236.144]) by hub.freebsd.org (Postfix) with ESMTP id 54E2B14FCF for ; Sun, 16 Jan 2000 01:49:12 -0800 (PST) (envelope-from aunty@sblake.comcen.com.au) Received: (from aunty@localhost) by sblake.comcen.com.au (8.9.3/8.9.3) id UAA14948 for freebsd-questions@freebsd.org; Sun, 16 Jan 2000 20:50:34 +1100 (EST) (envelope-from aunty) Date: Sun, 16 Jan 2000 20:50:34 +1100 From: aunty To: freebsd-questions@freebsd.org Subject: login class and bash clash? Message-ID: <20000116205034.C14280@comcen.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On a -STABLE system I'm trying to set up a staff class with, among other things, a different default path. (Easy to maintain, and not so likely to be edited away by novice wheel members.) After logging in, the environment seems to be that in /etc/profile instead of the one set for the class. Everyone uses the bash shell. The staff users' home directories contain neither .profile nor .bash* When the user's shell is set to csh they do get the environment that is set up for the class, as intended. But they must have bash. This line from login(1) might be hinting at an explanation for my puzzle, but if so I'd need it filled out a bit: The standard shells, csh(1) and sh(1), do not fork before executing the login utility. I suppose it'd be possible to maintain a .bash_profile in their home directories to ovveride /etc/profile, but using login.class is neater. Am I reading the situation correctly? Maybe I should remove /etc/profile (is it necessary?) and use the other class definitions to replace some of what /etc/profile sets up. Or read something. Or something. Suggestions? -- Regards, -*Sue*- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message