From owner-freebsd-questions@FreeBSD.ORG Mon Aug 25 16:41:31 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4050C1065685 for ; Mon, 25 Aug 2008 16:41:31 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 00BEA8FC08 for ; Mon, 25 Aug 2008 16:41:30 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id m7PGfSld063311 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 25 Aug 2008 11:41:29 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.2/Submit) id m7PGfRKf063310; Mon, 25 Aug 2008 11:41:27 -0500 (CDT) (envelope-from dan) Date: Mon, 25 Aug 2008 11:41:27 -0500 From: Dan Nelson To: Robe Message-ID: <20080825164127.GA26653@dan.emsphone.com> References: <221c791e0808250918s19d782c1l565f066e778a55bf@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <221c791e0808250918s19d782c1l565f066e778a55bf@mail.gmail.com> X-OS: FreeBSD 7.0-STABLE User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions@freebsd.org Subject: Re: Help using setenv as a restricted user X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2008 16:41:31 -0000 In the last episode (Aug 25), Robe said: > I'm trying to use *setenv* command as a non-root user. But I get the > following error "setenv: not found". However when I do the same as > root it works well. > > I'm using tcsh and FreeBSD 7.0 > > There's a way to use it as a restricted user? I mean avoiding the su > command and so on. Are you sure your non-root user is using tcsh? That error message looks like it's coming from /bin/sh: $ tcsh dan: {3035} asddsa asddsa: Command not found. dan: {3036} sh $ asddsa asddsa: not found $ -- Dan Nelson dnelson@allantgroup.com