WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: xm dmesg output

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Re: xm dmesg output
From: Horms <horms@xxxxxxxxxxxx>
Date: Wed, 30 Nov 2005 02:46:58 +0000 (UTC)
Delivery-date: Wed, 30 Nov 2005 02:51:06 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <A95E2296287EAD4EB592B5DEEFCE0E9D32EC84@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: tin/1.7.10-20050815 ("Grimsay") (UNIX) (Linux/2.6.12.6-xen0 (i686))
Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx> 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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>