usermod's man refers to --*-sub-uids but accepts only --*-subuids

Bug #1427807 reported by Simon Déziel
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
shadow (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

The man page refers to sub-uids and sub-gids but those don't take any "-" between sub and [ug]ids. The help message conforms to what the command accepts though.

$ man usermod | grep -F -- -sub
       -v, --add-sub-uids FIRST-LAST
       -V, --del-sub-uids FIRST-LAST
           This option may be specified multiple times to remove multiple ranges to a users account. When both --del-sub-uids and --add-sub-uids are specified remove of all subordinate uid ranges happens before any
       -w, --add-sub-gids FIRST-LAST
       -W, --del-sub-gids FIRST-LAST
           This option may be specified multiple times to remove multiple ranges to a users account. When both --del-sub-gids and --add-sub-gids are specified remove of all subordinate gid ranges happens before any

$ usermod --help | grep -F -- -sub
  -v, --add-subuids FIRST-LAST add range of subordinate uids
  -V, --del-subuids FIRST-LAST remvoe range of subordinate uids
  -w, --add-subgids FIRST-LAST add range of subordinate gids
  -W, --del-subgids FIRST-LAST remvoe range of subordinate gids

More info on the environment:

$ lsb_release -rd
Description: Ubuntu 14.04.2 LTS
Release: 14.04

$ apt-cache policy passwd
passwd:
  Installed: 1:4.1.5.1-1ubuntu9
  Candidate: 1:4.1.5.1-1ubuntu9
  Version table:
 *** 1:4.1.5.1-1ubuntu9 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: passwd 1:4.1.5.1-1ubuntu9
ProcVersionSignature: Ubuntu 3.13.0-46.77-generic 3.13.11-ckt15
Uname: Linux 3.13.0-46-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.7
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Mar 3 13:37:50 2015
InstallationDate: Installed on 2014-01-26 (400 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140124)
SourcePackage: shadow
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Simon Déziel (sdeziel) wrote :
Steve Langasek (vorlon)
Changed in shadow (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Mathew Hodson (mhodson)
tags: added: manpage
Revision history for this message
Gustavo Silva (gsilvapt) wrote :

This bug has been fixed in commit efbff6a3d9df076da17568c7b5c4787e8fdd3f1c in upstream (https://github.com/shadow-maint/shadow).
The corresponding ChangeLog entry was in 2016-12-02 by Serge Hallyn <email address hidden>.

Updates from upstream will come soon and fix this bug.

Simon Déziel (sdeziel)
Changed in shadow (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Gustavo Silva (gsilvapt) wrote :
Revision history for this message
Nish Aravamudan (nacc) wrote :

@sdeziel, afaict, that is an upstream fix committed,but not the ubuntu package in artful.

Changed in shadow (Ubuntu):
status: Fix Committed → Triaged
Revision history for this message
Simon Déziel (sdeziel) wrote : Re: [Bug 1427807] Re: usermod's man refers to --*-sub-uids but accepts only --*-subuids

On 2017-05-08 03:07 PM, Nish Aravamudan wrote:
> @sdeziel, afaict, that is an upstream fix committed,but not the ubuntu
> package in artful.

Right, my bad, sorry.

Revision history for this message
Gustavo Silva (gsilvapt) wrote :

I tried following nacc's suggestions (he brought it over IRC) because I, unkowningly, did a really terrible job last time.

Hopefully, this commit is way more understandable and (again, hopefully), I did everything well.

Please share if you see something I missed.

Thanks!

Revision history for this message
Simon Quigley (tsimonq2) wrote :

Artful is no longer supported; sorry this couldn't get in.

If you think it's useful for Xenial, please change the status, attach another debdiff, and resubscribe sponsors.

Changed in shadow (Ubuntu):
status: Triaged → Won't Fix
Revision history for this message
Simon Déziel (sdeziel) wrote :

The bug is fixed in Bionic.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.