All of lore.kernel.org
 help / color / mirror / Atom feed
From: Horms <horms@verge.net.au>
To: xen-devel@lists.xensource.com
Subject: Re: xm dmesg output
Date: Wed, 30 Nov 2005 02:46:58 +0000 (UTC)	[thread overview]
Message-ID: <dmj3r1$btf$1@sea.gmane.org> (raw)
In-Reply-To: A95E2296287EAD4EB592B5DEEFCE0E9D32EC84@liverpoolst.ad.cl.cam.ac.uk

Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk> wrote:
> 
>> Speaking of "xm dmesg", because xm is in /usr/sbin, it 
>> implies that a normal user wouldn't normally need to run it.
>> 
>> However, xm provides several informational commands, dmesg 
>> being just one of them.  And, since the normal dmesg is in 
>> /bin, it might make sense to have them available in /usr/bin as well.
>> 
>> However, this could just be done with a shell script wrapper. 
>>  Would such a patch be accepted?
> 
> Having a wrapper to make xm available in /usr/sbin/ and /usr/bin seems
> pretty gross. It should be in one or the other, but I'm willing to
> accept it may currently be in the wrong one. Let's see if anyone has a
> strong opinion...

As I understand the way that sbin vs bin is supposed to work,
sbin is for commands that can only ever be executed by root.
And make no sense to be invoked by a normal user. The idea
being that administrative commands can be moved out of bin
to avoid cluttering users' paths. However, if commands that
users might want to access are in sbin, then users tend
to put sbin in their path so they can see them, thus negating
much of the benifit of the bin/sbin split.

So in short, if xm has a mode of invocation that makes sense for
non-root users, it should be in bin so both root and non-root users
see it without having to fiddle their paths.

-- 
Horms

  reply	other threads:[~2005-11-30  2:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-29 17:58 xm dmesg output Ian Pratt
2005-11-30  2:46 ` Horms [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-11-28 21:11 David F Barrera
2005-11-29 10:26 ` Keir Fraser
2005-11-29 17:15   ` Adam Heath
2005-11-30 16:15     ` Anthony Liguori
2005-11-29 22:15   ` David F Barrera
2005-11-30 11:39     ` Keir Fraser
2005-12-01 17:49       ` David F Barrera
2005-12-01 18:37         ` Adam Heath
2005-12-01 19:04           ` David F Barrera

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='dmj3r1$btf$1@sea.gmane.org' \
    --to=horms@verge.net.au \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.