Date: Fri, 15 Jun 2018 01:12:25 +0000 From: Rick Macklem <rmacklem@uoguelph.ca> To: "Rodney W. Grimes" <freebsd-rwg@pdx.rh.CN85.dnsmgr.net>, Warner Losh <imp@bsdimp.com> Cc: "freebsd-current@freebsd.org" <freebsd-current@freebsd.org> Subject: Re: utilities in /usr/bin or /usr/sbin? Message-ID: <YTOPR0101MB0953D011980539EB1F4B2D2ADD7C0@YTOPR0101MB0953.CANPRD01.PROD.OUTLOOK.COM> In-Reply-To: <201806150044.w5F0i5MM047699@pdx.rh.CN85.dnsmgr.net> References: <CANCZdfp9LOi3_KQer_9VhLe6GtZjk7RMSMeY3D9%2BvsYAGyQHNA@mail.gmail.com>, <201806150044.w5F0i5MM047699@pdx.rh.CN85.dnsmgr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Rodney W. Grimes wrote: ?> On Thu, Jun 14, 2018 at 2:15 PM, Rick Macklem <rmacklem@uoguelph.ca> wro= te: >> >> > Hi, >> > >> > I have three new utilities that are mainly useful for managing the pN= FS >> > server >> > committed as r335130. >> > >> > In the projects tree, I have them in /usr/bin and man section 1. Howev= er, >> > 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 comma= nds. > >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 wo= rk 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YTOPR0101MB0953D011980539EB1F4B2D2ADD7C0>