From owner-freebsd-questions Fri Feb 23 13: 6:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from server1.cipher.com.br (server1.cipher.com.br [200.192.23.19]) by hub.freebsd.org (Postfix) with ESMTP id CC73037B503 for ; Fri, 23 Feb 2001 13:06:34 -0800 (PST) (envelope-from alexandre@cipher.com.br) Received: from is32.cipher.com.br (localhost.localdomain [127.0.0.1]) by server1.cipher.com.br (8.11.0/8.11.0) with SMTP id f1NK5Cj06701; Fri, 23 Feb 2001 18:05:12 -0200 Date: Fri, 23 Feb 2001 18:08:22 -0300 From: Alexandre Florio To: Trevin Chow Cc: freebsd-questions@freebsd.org Subject: Re: Messed up bash configuration? Message-Id: <20010223180822.2d29acb6.alexandre@cipher.com.br> In-Reply-To: <5.0.2.1.2.20010223120111.02b32fe8@mail.brightmail.com> References: <5.0.2.1.2.20010223120111.02b32fe8@mail.brightmail.com> X-Mailer: Sylpheed version 0.4.9 (GTK+ 1.2.8; FreeBSD 4.2-RELEASE; i386) Organization: Cipher Technology Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 23 Feb 2001 12:02:55 -0800 Trevin Chow wrote: > I was reading a HowTo on bash and I'm getting a weird problem when I try to > su to another user. I'm not sure if its related to my chanages or > not. When i try to su to another user, it doesn't prompt me for a password > and I get this: > > -=(root@benny)(504/ttyp0)(12:03P:02/23/01)=- > @(/home/tmchow)--# su tonyt > su-2.04$ ls > ls: .: Permission denied > > Any ideas what's going on? I'm able to login as these users directly with > no problems When you are root you don't need to supply a password to substitute your identity with another user (man su). The 'permission denied' that appears when you issue an 'ls' command, is because the path that you were before the 'su' command be executed is not readable by the 'tonyt' user. -- Alexandre Florio To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message