[Bug 1475749] Re: usermod --add-subuids fails for users not in /etc/passwd

2015-11-04 Thread Launchpad Bug Tracker
This bug was fixed in the package shadow - 1:4.1.5.1-1.1ubuntu4.1

---
shadow (1:4.1.5.1-1.1ubuntu4.1) vivid; urgency=medium

  * debian/patches/userns/subuids-nonlocal-users: Don't limit
subuid/subgid support to local users.  Closes LP: #1475749.

 -- Steve Langasek   Mon, 20 Jul 2015
22:58:18 -0700

** Changed in: shadow (Ubuntu Vivid)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1475749

Title:
  usermod --add-subuids fails for users not in /etc/passwd

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1475749/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1475749] Re: usermod --add-subuids fails for users not in /etc/passwd

2015-11-03 Thread Serge Hallyn
** Changed in: shadow (Ubuntu Vivid)
   Status: Fix Committed => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1475749

Title:
  usermod --add-subuids fails for users not in /etc/passwd

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1475749/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1475749] Re: usermod --add-subuids fails for users not in /etc/passwd

2015-11-03 Thread Serge Hallyn
(sorry, i msread the bug history)

** Changed in: shadow (Ubuntu Vivid)
   Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1475749

Title:
  usermod --add-subuids fails for users not in /etc/passwd

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1475749/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1475749] Re: usermod --add-subuids fails for users not in /etc/passwd

2015-11-03 Thread Serge Hallyn
The test case in the Description passed cleanly for me (and failed
without -proposed)


** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1475749

Title:
  usermod --add-subuids fails for users not in /etc/passwd

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1475749/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1475749] Re: usermod --add-subuids fails for users not in /etc/passwd

2015-11-02 Thread Mathew Hodson
** Changed in: shadow (Ubuntu Vivid)
   Importance: Undecided => High

** Tags removed: bot-stop-nagging
** Tags added: vivid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1475749

Title:
  usermod --add-subuids fails for users not in /etc/passwd

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1475749/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1475749] Re: usermod --add-subuids fails for users not in /etc/passwd

2015-10-16 Thread Pat McGowan
** Changed in: canonical-devices-system-image
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1475749

Title:
  usermod --add-subuids fails for users not in /etc/passwd

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1475749/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1475749] Re: usermod --add-subuids fails for users not in /etc/passwd

2015-09-14 Thread Serge Hallyn
** Tags removed: verification-failed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1475749

Title:
  usermod --add-subuids fails for users not in /etc/passwd

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1475749/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1475749] Re: usermod --add-subuids fails for users not in /etc/passwd

2015-09-10 Thread Serge Hallyn
** Tags removed: verification-failed
** Tags added: bot-stop-nagging

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1475749

Title:
  usermod --add-subuids fails for users not in /etc/passwd

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1475749/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1475749] Re: usermod --add-subuids fails for users not in /etc/passwd

2015-07-22 Thread Chris J Arges
Hello kevin, or anyone else affected,

Accepted shadow into vivid-proposed. The package will build now and be
available at
https://launchpad.net/ubuntu/+source/shadow/1:4.1.5.1-1.1ubuntu4.1 in a
few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed.  Your feedback will aid us getting this update
out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, and change the tag
from verification-needed to verification-done. If it does not fix the
bug for you, please add a comment stating that, and change the tag to
verification-failed.  In either case, details of your testing will help
us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Also affects: shadow (Ubuntu Vivid)
   Importance: Undecided
   Status: New

** Changed in: shadow (Ubuntu Vivid)
   Status: New = Fix Committed

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1475749

Title:
  usermod --add-subuids fails for users not in /etc/passwd

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1475749/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1475749] Re: usermod --add-subuids fails for users not in /etc/passwd

2015-07-22 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/vivid-proposed/shadow

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1475749

Title:
  usermod --add-subuids fails for users not in /etc/passwd

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1475749/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1475749] Re: usermod --add-subuids fails for users not in /etc/passwd

2015-07-21 Thread Launchpad Bug Tracker
This bug was fixed in the package shadow - 1:4.1.5.1-1.1ubuntu7

---
shadow (1:4.1.5.1-1.1ubuntu7) wily; urgency=medium

  * debian/patches/userns/subuids-nonlocal-users: Don't limit
subuid/subgid support to local users.  Closes LP: #1475749.

 -- Steve Langasek steve.langa...@ubuntu.com  Mon, 20 Jul 2015
18:44:12 -0700

** Changed in: shadow (Ubuntu)
   Status: Triaged = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1475749

Title:
  usermod --add-subuids fails for users not in /etc/passwd

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1475749/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1475749] Re: usermod --add-subuids fails for users not in /etc/passwd

2015-07-21 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/wily-proposed/shadow

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1475749

Title:
  usermod --add-subuids fails for users not in /etc/passwd

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1475749/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1475749] Re: usermod --add-subuids fails for users not in /etc/passwd

2015-07-21 Thread Steve Langasek
** Description changed:

  [SRU justification]
  The (distro patched) subuid/subgid support in the shadow 'usermod' command 
only works with users present in /etc/passwd.  As /etc/subuid and /etc/subgid 
are separate databases that do not require modification of /etc/passwd, this is 
an unnecessary restriction that appears to be due to a simple logic bug in the 
patch and not as a deliberate design decision.  As Ubuntu Touch and Ubuntu 
Snappy systems will as a class have users in different NSS backends from 
/etc/passwd, and lxc should be supported for these users with uid namespacing, 
this bug warrants fixing.
  
  [Test case]
  1. Install the libnss-extrausers package
  2. Enable it by running sudo sed -i -e'/passwd:/ s/$/ extrausers/' 
/etc/nsswitch.conf
  3. Create a test user by running echo 
'testuser:x:2000:2000::/nonexistent:/bin/false' | sudo tee 
/var/lib/extrausers/passwd
  4. Attempt to add subuids for this user by running sudo usermod 
--add-subuids 1-12000 testuser
  5. Confirm that this fails with the error message usermod: user 'testuser' 
does not exist in /etc/passwd
  6. Install the new version of the 'passwd' package
  7. Repeat the test from step 4
- 8. Confirm that the command now succeeds, and the user's entry has been added 
to /etc/subuids
+ 8. Confirm that the command now succeeds, and the user's entry has been added 
to /etc/subuid
  9. Clean up by running 'sudo usermod --del-subuids 1-12000 testuser and 
removing the /var/lib/extrausers/passwd file
  
  [Regression potential]
  This is a targeted bugfix in the behavior of usermod, and users are unlikely 
to be relying on the usermod command failing for non-local users.
  
  [Original report]
  currently we have need to utilize lxc on vivid+stable overlay which requires 
adding subuser  subgroup ids.
  unfortunately, usermod currently fails since phablet password is readonly

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1475749

Title:
  usermod --add-subuids fails for users not in /etc/passwd

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1475749/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1475749] Re: usermod --add-subuids fails for users not in /etc/passwd

2015-07-21 Thread Steve Langasek
** Description changed:

+ [SRU justification]
+ The (distro patched) subuid/subgid support in the shadow 'usermod' command 
only works with users present in /etc/passwd.  As /etc/subuid and /etc/subgid 
are separate databases that do not require modification of /etc/passwd, this is 
an unnecessary restriction that appears to be due to a simple logic bug in the 
patch and not as a deliberate design decision.  As Ubuntu Touch and Ubuntu 
Snappy systems will as a class have users in different NSS backends from 
/etc/passwd, and lxc should be supported for these users with uid namespacing, 
this bug warrants fixing.
+ 
+ [Test case]
+ 1. Install the libnss-extrausers package
+ 2. Enable it by running sudo sed -i -e'/passwd:/ s/$/ extrausers/' 
/etc/nsswitch.conf
+ 3. Create a test user by running echo 
'testuser:x:2000:2000::/nonexistent:/bin/false' | sudo tee 
/var/lib/extrausers/passwd
+ 4. Attempt to add subuids for this user by running sudo usermod 
--add-subuids 1-12000 testuser
+ 5. Confirm that this fails with the error message usermod: user 'testuser' 
does not exist in /etc/passwd
+ 6. Install the new version of the 'passwd' package
+ 7. Repeat the test from step 4
+ 8. Confirm that the command now succeeds, and the user's entry has been added 
to /etc/subuids
+ 9. Clean up by running 'sudo usermod --del-subuids 1-12000 testuser and 
removing the /var/lib/extrausers/passwd file
+ 
+ [Regression potential]
+ This is a targeted bugfix in the behavior of usermod, and users are unlikely 
to be relying on the usermod command failing for non-local users.
+ 
+ [Original report]
  currently we have need to utilize lxc on vivid+stable overlay which requires 
adding subuser  subgroup ids.
  unfortunately, usermod currently fails since phablet password is readonly

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1475749

Title:
  usermod --add-subuids fails for users not in /etc/passwd

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1475749/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1475749] Re: usermod --add-subuids fails for users not in /etc/passwd

2015-07-20 Thread Serge Hallyn
Thanks, no objection from me.

** Changed in: shadow (Ubuntu)
   Status: New = Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1475749

Title:
  usermod --add-subuids fails for users not in /etc/passwd

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1475749/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1475749] Re: usermod --add-subuids fails for users not in /etc/passwd

2015-07-17 Thread Steve Langasek
** Summary changed:

- changes to phablet to enable moduser on vivid+stable overlay ppa
+ usermod --add-subuids fails for users not in /etc/passwd

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1475749

Title:
  usermod --add-subuids fails for users not in /etc/passwd

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1475749/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1475749] Re: usermod --add-subuids fails for users not in /etc/passwd

2015-07-17 Thread Steve Langasek
This appears to be an issue with the patches to shadow for subuid/subgid
support.  The --{add,del}-sub{uid,gid}s options don't operate on
/etc/passwd, only on /etc/sub{uid,gid}; but the code causes usermod to
fail if called for any non-local user.

Assuming there's no policy reason why non-local users are disallowed
from /etc/sub{uid,gid}, this is a simple fix.  Cc:ing Serge Hallyn for
comment, as he originally pulled these patches in.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1475749

Title:
  usermod --add-subuids fails for users not in /etc/passwd

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1475749/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1475749] Re: usermod --add-subuids fails for users not in /etc/passwd

2015-07-17 Thread Launchpad Bug Tracker
** Branch linked: lp:~vorlon/ubuntu/wily/shadow/lp.1475749

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1475749

Title:
  usermod --add-subuids fails for users not in /etc/passwd

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1475749/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs