Discussion:
utilities in /usr/bin or /usr/sbin?
(too old to reply)
Rick Macklem
2018-06-14 20:15:49 UTC
Permalink
Hi,

I have three new utilities that are mainly useful for managing the pNFS server
committed as r335130.

In the projects tree, I have them in /usr/bin and man section 1. However,
since they are mostly useful to a sysadmin managing the pNFS service,
I'm thinking that maybe they should be in /usr/sbin with man pages in section 8.

Which of these sounds correct?

Thanks, rick
Rick Macklem
2018-06-14 20:18:37 UTC
Permalink
I wrote:
>I have three new utilities that are mainly useful for managing the pNFS server
>committed as r335130.
Oops, I meant r334930, although it doesn't really affect the question.
>In the projects tree, I have them in /usr/bin and man section 1. However,
>since they are mostly useful to a sysadmin managing the pNFS service,
>I'm thinking that maybe they should be in /usr/sbin with man pages in section 8.
>
>Which of these sounds correct?

rick
Warner Losh
2018-06-14 22:38:24 UTC
Permalink
On Thu, Jun 14, 2018 at 2:15 PM, Rick Macklem <***@uoguelph.ca> wrote:

> Hi,
>
> I have three new utilities that are mainly useful for managing the pNFS
> server
> committed as r335130.
>
> In the projects tree, I have them in /usr/bin and man section 1. However,
> since they are mostly useful to a sysadmin managing the pNFS service,
> I'm thinking that maybe they should be in /usr/sbin with man pages in
> section 8.
>
> Which of these sounds correct?
>

/usr/sbin is the more proper location if they are truly admin-only commands.

Warner
Rodney W. Grimes
2018-06-15 00:44:05 UTC
Permalink
> On Thu, Jun 14, 2018 at 2:15 PM, Rick Macklem <***@uoguelph.ca> wrote:
>
> > Hi,
> >
> > I have three new utilities that are mainly useful for managing the pNFS
> > server
> > committed as r335130.
> >
> > In the projects tree, I have them in /usr/bin and man section 1. However,
> > since they are mostly useful to a sysadmin managing the pNFS service,
> > I'm thinking that maybe they should be in /usr/sbin with man pages in
> > section 8.
> >
> > Which of these sounds correct?
> >
>
> /usr/sbin is the more proper location if they are truly admin-only commands.

Dont these commands require root priv to work?
If so they are certainly /usr/sbin material.


--
Rod Grimes ***@freebsd.org
Rick Macklem
2018-06-15 01:12:25 UTC
Permalink
Rodney W. Grimes wrote:
?> On Thu, Jun 14, 2018 at 2:15 PM, Rick Macklem <***@uoguelph.ca> wrote:
>>
>> > Hi,
>> >
>> > I have three new utilities that are mainly useful for managing the pNFS
>> > server
>> > committed as r335130.
>> >
>> > In the projects tree, I have them in /usr/bin and man section 1. However,
>> > since they are mostly useful to a sysadmin managing the pNFS service,
>> > I'm thinking that maybe they should be in /usr/sbin with man pages in
>> > section 8.
>> >
>> > Which of these sounds correct?
>> >
>>
>> /usr/sbin is the more proper location if they are truly admin-only commands.
>
>Dont these commands require root priv to work?
>If so they are certainly /usr/sbin material.
Yea, this is a little amusing.
The first of these three utilities would just get an extended attribute and
display the info (it's binary) and I didn't see any reason for this being
restricted to root, so I didn't do that in the utility.

However, I just realized I had never tried it as non-root and it doesn't work
as non-root (apparently get extended attribute of "system" namespace is
restricted to root).

So, I think it's settled. They should all go in /usr/sbin.

Thanks everyone for your comments, rick
Loading...