From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jim Schutt" Subject: Re: [PATCH] ceph_common.sh: Do not sudo to root unless needed Date: Mon, 19 Sep 2011 11:12:54 -0600 Message-ID: <4E777816.3080206@sandia.gov> References: <1316012977-13675-1-git-send-email-jaschut@sandia.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from sentry-two.sandia.gov ([132.175.109.14]:35159 "EHLO sentry-two.sandia.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751619Ab1ISRNi (ORCPT ); Mon, 19 Sep 2011 13:13:38 -0400 In-Reply-To: Sender: ceph-devel-owner@vger.kernel.org List-ID: To: Tommi Virtanen Cc: ceph-devel@vger.kernel.org Tommi Virtanen wrote: > On Wed, Sep 14, 2011 at 08:09, Jim Schutt wrote: >> Using do_root_cmd() doesn't really need to sudo to root >> if you're already root. >> >> Commit 71dc75bdafe62a098c0493ad62f2d0d2a6ca7946 causes a regression: >> when system "foo" has a sudoers config that requires a tty, >> init-ceph now fails like this: >> sudo: sorry, you must have a tty to run sudo >> >> when it is invoked by root with something like this: >> ssh foo /etc/init.d/init-ceph start >> >> Signed-off-by: Jim Schutt > > Applied as d64237a6a555944d6d35676490bc4fb7c7db965d, thank you. > > (It seems I screwed up the author field in the commit, sorry about > that. I don't want to force push just to fix that; Signed-off-by gives > you credit anyway.) > > No problem - thanks for taking a look. -- Jim