From owner-freebsd-current Sun Feb 27 14: 3:52 2000 Delivered-To: freebsd-current@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 990FE37B696 for ; Sun, 27 Feb 2000 14:03:47 -0800 (PST) (envelope-from robert@cyrus.watson.org) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.9.3/8.9.3) with SMTP id RAA31976 for ; Sun, 27 Feb 2000 17:04:45 -0500 (EST) (envelope-from robert@cyrus.watson.org) Date: Sun, 27 Feb 2000 17:04:45 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org Reply-To: Robert Watson To: freebsd-current@freebsd.org Subject: 4.0: default path when su'd Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG While trying to explain to someone how to run ping, I noticed that by default, we exclude /sbin and /usr/sbin (etc) from the normal user path. There are various arguments as to whether that is a good idea or not (especially given that ping and md5 are both in /sbin...?), but my current observation is that if you su to root, you don't get /sbin or /usr/sbin in the path. This is because those directories are added to the root path by .login, which doesn't run with su called normally. The obvious fixes would be to rearrange the dot files in ~root some (.cshrc instead of .login -- don't know what the appropriate change for /bin/sh would be), or to add those directories to the global path configured in login.conf so that it would work regardless of the shell in use. Whatever the solution, I'd like it to be in place before we cut 4.0--as much as I enjoy teaching people about the vaguarities of different shells and environmental variables when they install their first box, I'd rather not. I'd also rather not modify the files on every box I install, as there is a reasonable and common convenience factor. Also, if we're going to keep excluding /sbin, etc, from the normal user path, we should consider moving a few of the things in /sbin and /usr/sbin into /bin and /usr/bin respectively. For example, md5 is sufficiently useful for all users that having it in the default user path would be a good idea. Ping is also a common ``where's that'' among my users, etc. Neither of these requires privilege, and both are useful for generic users. There are probably a couple of others that fall into that category. Robert N M Watson robert@fledge.watson.org http://www.watson.org/~robert/ PGP key fingerprint: AF B5 5F FF A6 4A 79 37 ED 5F 55 E9 58 04 6A B1 TIS Labs at Network Associates, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message