From owner-freebsd-current@freebsd.org Fri Jun 15 01:12:28 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7EF401000B9F for ; Fri, 15 Jun 2018 01:12:28 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-TO1-obe.outbound.protection.outlook.com (mail-eopbgr670055.outbound.protection.outlook.com [40.107.67.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT TLS CA 4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 04FE46F248 for ; Fri, 15 Jun 2018 01:12:27 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from YTOPR0101MB0953.CANPRD01.PROD.OUTLOOK.COM (52.132.44.24) by YTOPR0101MB1803.CANPRD01.PROD.OUTLOOK.COM (52.132.44.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.17; Fri, 15 Jun 2018 01:12:26 +0000 Received: from YTOPR0101MB0953.CANPRD01.PROD.OUTLOOK.COM ([fe80::d0eb:3783:7c99:2802]) by YTOPR0101MB0953.CANPRD01.PROD.OUTLOOK.COM ([fe80::d0eb:3783:7c99:2802%3]) with mapi id 15.20.0863.016; Fri, 15 Jun 2018 01:12:26 +0000 From: Rick Macklem To: "Rodney W. Grimes" , Warner Losh CC: "freebsd-current@freebsd.org" Subject: Re: utilities in /usr/bin or /usr/sbin? Thread-Topic: utilities in /usr/bin or /usr/sbin? Thread-Index: AQHUBBwbpfrSoP3WKkWzYAn0GuSY0aRgWJYAgAAjHoCAAAZhLQ== Date: Fri, 15 Jun 2018 01:12:25 +0000 Message-ID: References: , <201806150044.w5F0i5MM047699@pdx.rh.CN85.dnsmgr.net> In-Reply-To: <201806150044.w5F0i5MM047699@pdx.rh.CN85.dnsmgr.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=rmacklem@uoguelph.ca; x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; YTOPR0101MB1803; 7:foOZoyznh2iootOeWesCiZooDs2Y6iIQtQfJWGpvBE1+EP0NldP0lhD6x1r8h5ravX9z2Pg+g2FnYbgF8KCDJLClnd02C5OV/JCyTtFjBHi+VAK8gLD44k7bow45uvSweaZImT2WLOtMLvI2omDaHnyr33wBWnOatsiVDhNqiUHFt3Fpsyb1gApUCTEyFpjoJETpxLOwRehB+vNI9gjrbG7v3oB1h/qrVX8rOzK970zFrzDPIWKkE4fPpnGbNWko x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: d6858148-0af5-4391-57ed-08d5d25d0e88 x-microsoft-antispam: UriScan:(18154293887054); BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989080)(4534165)(4627221)(201703031133081)(201702281549075)(8990040)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:YTOPR0101MB1803; x-ms-traffictypediagnostic: YTOPR0101MB1803: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(158342451672863)(18154293887054)(5213294742642); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281529075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:YTOPR0101MB1803; BCL:0; PCL:0; RULEID:; SRVR:YTOPR0101MB1803; x-forefront-prvs: 0704670F76 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(346002)(39380400002)(366004)(39860400002)(199004)(189003)(6436002)(229853002)(55016002)(97736004)(6506007)(2900100001)(102836004)(59450400001)(7696005)(53546011)(786003)(316002)(76176011)(86362001)(4326008)(6246003)(53936002)(68736007)(14454004)(478600001)(9686003)(3280700002)(2906002)(33656002)(105586002)(26005)(186003)(74482002)(106356001)(476003)(446003)(486006)(5250100002)(81156014)(3660700001)(110136005)(99286004)(25786009)(11346002)(81166006)(305945005)(8936002)(8676002)(74316002)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:YTOPR0101MB1803; H:YTOPR0101MB0953.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: uoguelph.ca does not designate permitted sender hosts) x-microsoft-antispam-message-info: 6zYSLWzgvjf4vPgx6oI9yQT7Dy2crAZCBUM4OTTQGLOU34mFXyTwbz9ztDxmL0veaZJGQmagLA9dE/vEfLMfheSl32FbQ2+egCUh9nffKehdNj1VNDSH/EPdjVu58SP0ifyMwWISupGgJ4KI5sQndYTYxIe/55xoBYwLzKmHP8s8fN1w38l4wLYzfOOLvzWt spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-Network-Message-Id: d6858148-0af5-4391-57ed-08d5d25d0e88 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jun 2018 01:12:25.9932 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTOPR0101MB1803 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2018 01:12:28 -0000 Rodney W. Grimes wrote: ?> On Thu, Jun 14, 2018 at 2:15 PM, Rick Macklem 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