From owner-freebsd-questions@FreeBSD.ORG Tue Mar 29 16:25:13 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 540D016A4CE for ; Tue, 29 Mar 2005 16:25:13 +0000 (GMT) Received: from web50101.mail.yahoo.com (web50101.mail.yahoo.com [206.190.38.29]) by mx1.FreeBSD.org (Postfix) with SMTP id C7D7A43D1D for ; Tue, 29 Mar 2005 16:25:12 +0000 (GMT) (envelope-from jhnpublic@yahoo.com) Received: (qmail 80558 invoked by uid 60001); 29 Mar 2005 16:25:10 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=yVU9lDmWF88Jdoe2OSFdrmiPiPGqvARx0hGA7PldqKPUlxFtqo7LIeFOYSfnkX01nxfg8/V1NqBXQ7X/X/WIEHGTJHVXGWqLkxxuXe30sYvjhAn3VA6VX17YWQf0qhOrj6BLRKdQC0NYb3JqYqO0us9bCZFBhRPf3q5HDIEgOIk= ; Message-ID: <20050329162510.80553.qmail@web50101.mail.yahoo.com> Received: from [164.64.118.41] by web50101.mail.yahoo.com via HTTP; Tue, 29 Mar 2005 08:25:10 PST Date: Tue, 29 Mar 2005 08:25:10 -0800 (PST) From: John Public To: Kevin Kinsey In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: Jeff Wirth cc: freebsd-questions@freebsd.org Subject: Re: su command problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2005 16:25:13 -0000 Thank you very much! I had checked the password file, but had been focused on the mysql account. I only just noticed that the root account was set to use /bin/csh for it's shell. When I changed it to /usr/local/bin/bash, suddenly everything started working. Thank you for your direction, I really appreciate it. Thank you to everybody who helped me on this. God Bless John --- Kevin Kinsey wrote: > John Public wrote: > > >I'm apologize for being unclear. Let me try again. > I > >have not modified the mysql-server.sh script in any > >way. The 'su -m mysql -c date' line is merely an > >example of what I used to see if 'su' is having a > >problem. All that line does is run the 'date' > command > >as the mysql user. I used this for testing between > >the 5.3 system and the 5.2.1 system to see if there > >was a difference. > > > >Indeed there was a difference. On the 5.2.1 system > >the command ran 'date' w/o any problem and then > >returned control to the root shell, but on the 5.3 > >system, it su'ed me to the mysql account, but did > not > >execute the 'date' command and stayed w/ the mysql > >account. > > > >This is how I have come to the conclusion that it > has > >something to do w/ the su command or security > relating > >to it, rather than the scripts which are used to > run > >mysql or nagios. I guess I'm trying to determine > if > >this is a bug in the 'su' command or if there is a > >security setting somewhere in 5.3 which changes the > >behavior of 'su'. > > > >Thanks again for your attention. > >John > > > > > > So, we need to check on a few things between > the two systems; I'd start with the contents of > /etc/passwd, which should be the same on > both machines. > > FWIW, I can't reproduce the "problem" on 5.3 > nor 4.11, as long as I'm running as root or using > sudo. Running without privileges gives a "Password" > prompt, as expected.... > > Kevin Kinsey > __________________________________ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250