[Touch-packages] [Bug 1342875] Re: Unable to delete currently logged in user

2015-08-18 Thread Ubuntu QA Website
This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1342875

** Tags added: iso-testing

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1342875

Title:
  Unable to delete currently logged in user

Status in shadow package in Ubuntu:
  Fix Released
Status in shadow source package in Trusty:
  Fix Released
Status in shadow source package in Utopic:
  Won't Fix

Bug description:
  [SRU justification]
  Regression from previous releases, this prevents cloud instance setup 
processes from removing the default admin account that's exists solely for the 
purpose of the setup itself.

  [Test case]
  1. Create a trusty schroot environment
  2. Log into the trusty schroot environment as a non-root admin user: schroot 
-c trusty
  3. Attempt to remove the admin account: sudo userdel -f vorlon (warning! do 
not use -r if your host system's home directory is mounted!)
  4. Observe the following error:
  userdel: user vorlon is currently used by process 5253
  userdel: cannot open /etc/subuid
  5. Upgrade to the passwd package from trusty-proposed
  6. Attempt to remove the admin account again
  7. Verify that the command has succeeded.

  [Regression potential]
  Minimal, as this is a targeted bugfix to the error handling for subuids.

  
  A user can not delete themselves using the command 'sudo userdel -rf 
username', this is common in cloud tools that clean up running images prior 
to capture.  A quick test shows that this worked from Precise (didn't look back 
further) to Raring and stopped working with Saucy.

  Here's a quick example of the failure (from trusty):
  # sudo adduser test
  # sudo usermod -aG sudo test
  ## As the 'test' user
  # sudo userdel -rf test
  userdel: user test is currently used by process 9600
  userdel: cannot open /etc/subuid
  ## User is not removed

  Previously (output from precise)
  # sudo userdel -rf test
  userdel: user test is currently logged in
  userdel: warning: can't remove /var/mail/test: No such file or directory
  ## User is removed

  This is being run as the last command by tools that remove the
  'ubuntu' user to clean the image prior to capture.  This had
  previously worked and it is preferable that this could be made to work
  again.  The alternative is removal by root, but the root user on cloud
  images is locked down and we would not want the user to enable root to
  run userdel on the risk of it not getting disabled properly prior to
  image capture.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1342875/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1342875] Re: Unable to delete currently logged in user

2015-07-28 Thread Simon Déziel
I successfully tested the fix on Trusty and since Utopic reached EOL on
July 23rd I ignored it thus marking the verification as done. The Vivid
verification was reported successfully in comment # 6

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

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1342875

Title:
  Unable to delete currently logged in user

Status in shadow package in Ubuntu:
  Fix Released
Status in shadow source package in Trusty:
  Fix Committed
Status in shadow source package in Utopic:
  Fix Committed

Bug description:
  [SRU justification]
  Regression from previous releases, this prevents cloud instance setup 
processes from removing the default admin account that's exists solely for the 
purpose of the setup itself.

  [Test case]
  1. Create a trusty schroot environment
  2. Log into the trusty schroot environment as a non-root admin user: schroot 
-c trusty
  3. Attempt to remove the admin account: sudo userdel -f vorlon (warning! do 
not use -r if your host system's home directory is mounted!)
  4. Observe the following error:
  userdel: user vorlon is currently used by process 5253
  userdel: cannot open /etc/subuid
  5. Upgrade to the passwd package from trusty-proposed
  6. Attempt to remove the admin account again
  7. Verify that the command has succeeded.

  [Regression potential]
  Minimal, as this is a targeted bugfix to the error handling for subuids.

  
  A user can not delete themselves using the command 'sudo userdel -rf 
username', this is common in cloud tools that clean up running images prior 
to capture.  A quick test shows that this worked from Precise (didn't look back 
further) to Raring and stopped working with Saucy.

  Here's a quick example of the failure (from trusty):
  # sudo adduser test
  # sudo usermod -aG sudo test
  ## As the 'test' user
  # sudo userdel -rf test
  userdel: user test is currently used by process 9600
  userdel: cannot open /etc/subuid
  ## User is not removed

  Previously (output from precise)
  # sudo userdel -rf test
  userdel: user test is currently logged in
  userdel: warning: can't remove /var/mail/test: No such file or directory
  ## User is removed

  This is being run as the last command by tools that remove the
  'ubuntu' user to clean the image prior to capture.  This had
  previously worked and it is preferable that this could be made to work
  again.  The alternative is removal by root, but the root user on cloud
  images is locked down and we would not want the user to enable root to
  run userdel on the risk of it not getting disabled properly prior to
  image capture.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1342875/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1342875] Re: Unable to delete currently logged in user

2015-07-28 Thread Brian Murray
** Changed in: shadow (Ubuntu Utopic)
   Status: Fix Committed = Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1342875

Title:
  Unable to delete currently logged in user

Status in shadow package in Ubuntu:
  Fix Released
Status in shadow source package in Trusty:
  Fix Released
Status in shadow source package in Utopic:
  Won't Fix

Bug description:
  [SRU justification]
  Regression from previous releases, this prevents cloud instance setup 
processes from removing the default admin account that's exists solely for the 
purpose of the setup itself.

  [Test case]
  1. Create a trusty schroot environment
  2. Log into the trusty schroot environment as a non-root admin user: schroot 
-c trusty
  3. Attempt to remove the admin account: sudo userdel -f vorlon (warning! do 
not use -r if your host system's home directory is mounted!)
  4. Observe the following error:
  userdel: user vorlon is currently used by process 5253
  userdel: cannot open /etc/subuid
  5. Upgrade to the passwd package from trusty-proposed
  6. Attempt to remove the admin account again
  7. Verify that the command has succeeded.

  [Regression potential]
  Minimal, as this is a targeted bugfix to the error handling for subuids.

  
  A user can not delete themselves using the command 'sudo userdel -rf 
username', this is common in cloud tools that clean up running images prior 
to capture.  A quick test shows that this worked from Precise (didn't look back 
further) to Raring and stopped working with Saucy.

  Here's a quick example of the failure (from trusty):
  # sudo adduser test
  # sudo usermod -aG sudo test
  ## As the 'test' user
  # sudo userdel -rf test
  userdel: user test is currently used by process 9600
  userdel: cannot open /etc/subuid
  ## User is not removed

  Previously (output from precise)
  # sudo userdel -rf test
  userdel: user test is currently logged in
  userdel: warning: can't remove /var/mail/test: No such file or directory
  ## User is removed

  This is being run as the last command by tools that remove the
  'ubuntu' user to clean the image prior to capture.  This had
  previously worked and it is preferable that this could be made to work
  again.  The alternative is removal by root, but the root user on cloud
  images is locked down and we would not want the user to enable root to
  run userdel on the risk of it not getting disabled properly prior to
  image capture.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1342875/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1342875] Re: Unable to delete currently logged in user

2015-07-28 Thread Launchpad Bug Tracker
This bug was fixed in the package shadow - 1:4.1.5.1-1ubuntu9.1

---
shadow (1:4.1.5.1-1ubuntu9.1) trusty; urgency=medium

  [ William Grant ]
  * debian/patches/1020_fix_user_busy_errors:
- libmisc/user_busy.c: Call sub_uid_close in all error cases, otherwise
  code that later opens it as RW fails obscurely. (LP: #1342875)

 -- Steve Langasek steve.langa...@ubuntu.com  Fri, 10 Jul 2015
13:06:20 -0700

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

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1342875

Title:
  Unable to delete currently logged in user

Status in shadow package in Ubuntu:
  Fix Released
Status in shadow source package in Trusty:
  Fix Released
Status in shadow source package in Utopic:
  Won't Fix

Bug description:
  [SRU justification]
  Regression from previous releases, this prevents cloud instance setup 
processes from removing the default admin account that's exists solely for the 
purpose of the setup itself.

  [Test case]
  1. Create a trusty schroot environment
  2. Log into the trusty schroot environment as a non-root admin user: schroot 
-c trusty
  3. Attempt to remove the admin account: sudo userdel -f vorlon (warning! do 
not use -r if your host system's home directory is mounted!)
  4. Observe the following error:
  userdel: user vorlon is currently used by process 5253
  userdel: cannot open /etc/subuid
  5. Upgrade to the passwd package from trusty-proposed
  6. Attempt to remove the admin account again
  7. Verify that the command has succeeded.

  [Regression potential]
  Minimal, as this is a targeted bugfix to the error handling for subuids.

  
  A user can not delete themselves using the command 'sudo userdel -rf 
username', this is common in cloud tools that clean up running images prior 
to capture.  A quick test shows that this worked from Precise (didn't look back 
further) to Raring and stopped working with Saucy.

  Here's a quick example of the failure (from trusty):
  # sudo adduser test
  # sudo usermod -aG sudo test
  ## As the 'test' user
  # sudo userdel -rf test
  userdel: user test is currently used by process 9600
  userdel: cannot open /etc/subuid
  ## User is not removed

  Previously (output from precise)
  # sudo userdel -rf test
  userdel: user test is currently logged in
  userdel: warning: can't remove /var/mail/test: No such file or directory
  ## User is removed

  This is being run as the last command by tools that remove the
  'ubuntu' user to clean the image prior to capture.  This had
  previously worked and it is preferable that this could be made to work
  again.  The alternative is removal by root, but the root user on cloud
  images is locked down and we would not want the user to enable root to
  run userdel on the risk of it not getting disabled properly prior to
  image capture.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1342875/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1342875] Re: Unable to delete currently logged in user

2015-07-15 Thread Chris J Arges
Hello Robert, or anyone else affected,

Accepted shadow into trusty-proposed. The package will build now and be
available at
https://launchpad.net/ubuntu/+source/shadow/1:4.1.5.1-1ubuntu9.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!

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

** Tags added: verification-needed

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

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1342875

Title:
  Unable to delete currently logged in user

Status in shadow package in Ubuntu:
  Fix Released
Status in shadow source package in Trusty:
  Fix Committed
Status in shadow source package in Utopic:
  Fix Committed

Bug description:
  [SRU justification]
  Regression from previous releases, this prevents cloud instance setup 
processes from removing the default admin account that's exists solely for the 
purpose of the setup itself.

  [Test case]
  1. Create a trusty schroot environment
  2. Log into the trusty schroot environment as a non-root admin user: schroot 
-c trusty
  3. Attempt to remove the admin account: sudo userdel -f vorlon (warning! do 
not use -r if your host system's home directory is mounted!)
  4. Observe the following error:
  userdel: user vorlon is currently used by process 5253
  userdel: cannot open /etc/subuid
  5. Upgrade to the passwd package from trusty-proposed
  6. Attempt to remove the admin account again
  7. Verify that the command has succeeded.

  [Regression potential]
  Minimal, as this is a targeted bugfix to the error handling for subuids.

  
  A user can not delete themselves using the command 'sudo userdel -rf 
username', this is common in cloud tools that clean up running images prior 
to capture.  A quick test shows that this worked from Precise (didn't look back 
further) to Raring and stopped working with Saucy.

  Here's a quick example of the failure (from trusty):
  # sudo adduser test
  # sudo usermod -aG sudo test
  ## As the 'test' user
  # sudo userdel -rf test
  userdel: user test is currently used by process 9600
  userdel: cannot open /etc/subuid
  ## User is not removed

  Previously (output from precise)
  # sudo userdel -rf test
  userdel: user test is currently logged in
  userdel: warning: can't remove /var/mail/test: No such file or directory
  ## User is removed

  This is being run as the last command by tools that remove the
  'ubuntu' user to clean the image prior to capture.  This had
  previously worked and it is preferable that this could be made to work
  again.  The alternative is removal by root, but the root user on cloud
  images is locked down and we would not want the user to enable root to
  run userdel on the risk of it not getting disabled properly prior to
  image capture.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1342875/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1342875] Re: Unable to delete currently logged in user

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

** Branch linked: lp:ubuntu/utopic-proposed/shadow

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1342875

Title:
  Unable to delete currently logged in user

Status in shadow package in Ubuntu:
  Fix Released
Status in shadow source package in Trusty:
  Fix Committed
Status in shadow source package in Utopic:
  Fix Committed

Bug description:
  [SRU justification]
  Regression from previous releases, this prevents cloud instance setup 
processes from removing the default admin account that's exists solely for the 
purpose of the setup itself.

  [Test case]
  1. Create a trusty schroot environment
  2. Log into the trusty schroot environment as a non-root admin user: schroot 
-c trusty
  3. Attempt to remove the admin account: sudo userdel -f vorlon (warning! do 
not use -r if your host system's home directory is mounted!)
  4. Observe the following error:
  userdel: user vorlon is currently used by process 5253
  userdel: cannot open /etc/subuid
  5. Upgrade to the passwd package from trusty-proposed
  6. Attempt to remove the admin account again
  7. Verify that the command has succeeded.

  [Regression potential]
  Minimal, as this is a targeted bugfix to the error handling for subuids.

  
  A user can not delete themselves using the command 'sudo userdel -rf 
username', this is common in cloud tools that clean up running images prior 
to capture.  A quick test shows that this worked from Precise (didn't look back 
further) to Raring and stopped working with Saucy.

  Here's a quick example of the failure (from trusty):
  # sudo adduser test
  # sudo usermod -aG sudo test
  ## As the 'test' user
  # sudo userdel -rf test
  userdel: user test is currently used by process 9600
  userdel: cannot open /etc/subuid
  ## User is not removed

  Previously (output from precise)
  # sudo userdel -rf test
  userdel: user test is currently logged in
  userdel: warning: can't remove /var/mail/test: No such file or directory
  ## User is removed

  This is being run as the last command by tools that remove the
  'ubuntu' user to clean the image prior to capture.  This had
  previously worked and it is preferable that this could be made to work
  again.  The alternative is removal by root, but the root user on cloud
  images is locked down and we would not want the user to enable root to
  run userdel on the risk of it not getting disabled properly prior to
  image capture.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1342875/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1342875] Re: Unable to delete currently logged in user

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

- A user can not delete themselves using the command 'sudo userdel -rf
- username', this is common in cloud tools that clean up running images
- prior to capture.  A quick test shows that this worked from Precise
- (didn't look back further) to Raring and stopped working with Saucy.
+ [SRU justification]
+ Regression from previous releases, this prevents cloud instance setup 
processes from removing the default admin account that's exists solely for the 
purpose of the setup itself.
+ 
+ [Test case]
+ 1. Create a trusty schroot environment
+ 2. Log into the trusty schroot environment as a non-root admin user: schroot 
-c trusty
+ 3. Attempt to remove the admin account: sudo userdel -f vorlon (warning! do 
not use -r if your host system's home directory is mounted!)
+ 4. Observe the following error:
+ userdel: user vorlon is currently used by process 5253
+ userdel: cannot open /etc/subuid
+ 5. Upgrade to the passwd package from trusty-proposed
+ 6. Attempt to remove the admin account again
+ 7. Verify that the command has succeeded.
+ 
+ [Regression potential]
+ Minimal, as this is a targeted bugfix to the error handling for subuids.
+ 
+ 
+ A user can not delete themselves using the command 'sudo userdel -rf 
username', this is common in cloud tools that clean up running images prior 
to capture.  A quick test shows that this worked from Precise (didn't look back 
further) to Raring and stopped working with Saucy.
  
  Here's a quick example of the failure (from trusty):
  # sudo adduser test
  # sudo usermod -aG sudo test
  ## As the 'test' user
  # sudo userdel -rf test
  userdel: user test is currently used by process 9600
  userdel: cannot open /etc/subuid
  ## User is not removed
  
  Previously (output from precise)
  # sudo userdel -rf test
  userdel: user test is currently logged in
  userdel: warning: can't remove /var/mail/test: No such file or directory
  ## User is removed
  
  This is being run as the last command by tools that remove the 'ubuntu'
  user to clean the image prior to capture.  This had previously worked
  and it is preferable that this could be made to work again.  The
  alternative is removal by root, but the root user on cloud images is
  locked down and we would not want the user to enable root to run userdel
  on the risk of it not getting disabled properly prior to image capture.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1342875

Title:
  Unable to delete currently logged in user

Status in shadow package in Ubuntu:
  Fix Released
Status in shadow source package in Trusty:
  Triaged
Status in shadow source package in Utopic:
  Triaged

Bug description:
  [SRU justification]
  Regression from previous releases, this prevents cloud instance setup 
processes from removing the default admin account that's exists solely for the 
purpose of the setup itself.

  [Test case]
  1. Create a trusty schroot environment
  2. Log into the trusty schroot environment as a non-root admin user: schroot 
-c trusty
  3. Attempt to remove the admin account: sudo userdel -f vorlon (warning! do 
not use -r if your host system's home directory is mounted!)
  4. Observe the following error:
  userdel: user vorlon is currently used by process 5253
  userdel: cannot open /etc/subuid
  5. Upgrade to the passwd package from trusty-proposed
  6. Attempt to remove the admin account again
  7. Verify that the command has succeeded.

  [Regression potential]
  Minimal, as this is a targeted bugfix to the error handling for subuids.

  
  A user can not delete themselves using the command 'sudo userdel -rf 
username', this is common in cloud tools that clean up running images prior 
to capture.  A quick test shows that this worked from Precise (didn't look back 
further) to Raring and stopped working with Saucy.

  Here's a quick example of the failure (from trusty):
  # sudo adduser test
  # sudo usermod -aG sudo test
  ## As the 'test' user
  # sudo userdel -rf test
  userdel: user test is currently used by process 9600
  userdel: cannot open /etc/subuid
  ## User is not removed

  Previously (output from precise)
  # sudo userdel -rf test
  userdel: user test is currently logged in
  userdel: warning: can't remove /var/mail/test: No such file or directory
  ## User is removed

  This is being run as the last command by tools that remove the
  'ubuntu' user to clean the image prior to capture.  This had
  previously worked and it is preferable that this could be made to work
  again.  The alternative is removal by root, but the root user on cloud
  images is locked down and we would not want the user to enable root to
  run userdel on the risk of it not getting disabled properly prior to
  image capture.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1342875/+subscriptions

-- 
Mailing list: 

[Touch-packages] [Bug 1342875] Re: Unable to delete currently logged in user

2015-07-09 Thread lic_interop
This issue still exists in the latest 12.04, 14.04, and 14.10 images in
Azure

On 12.04:
# userdel  -f -r azureuser
userdel: user azureuser is currently logged in
userdel: warning: can't remove /var/mail/azureuser: No such file or directory
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting

On 14.04 and 14.10:
# userdel -f -r azureuser
userdel: user azureuser is currently used by process 1783
userdel: cannot open /etc/subuid

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1342875

Title:
  Unable to delete currently logged in user

Status in shadow package in Ubuntu:
  Fix Released
Status in shadow source package in Trusty:
  Triaged
Status in shadow source package in Utopic:
  Triaged

Bug description:
  A user can not delete themselves using the command 'sudo userdel -rf
  username', this is common in cloud tools that clean up running
  images prior to capture.  A quick test shows that this worked from
  Precise (didn't look back further) to Raring and stopped working with
  Saucy.

  Here's a quick example of the failure (from trusty):
  # sudo adduser test
  # sudo usermod -aG sudo test
  ## As the 'test' user
  # sudo userdel -rf test
  userdel: user test is currently used by process 9600
  userdel: cannot open /etc/subuid
  ## User is not removed

  Previously (output from precise)
  # sudo userdel -rf test
  userdel: user test is currently logged in
  userdel: warning: can't remove /var/mail/test: No such file or directory
  ## User is removed

  This is being run as the last command by tools that remove the
  'ubuntu' user to clean the image prior to capture.  This had
  previously worked and it is preferable that this could be made to work
  again.  The alternative is removal by root, but the root user on cloud
  images is locked down and we would not want the user to enable root to
  run userdel on the risk of it not getting disabled properly prior to
  image capture.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1342875/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1342875] Re: Unable to delete currently logged in user

2015-04-20 Thread Brian Murray
** Changed in: shadow (Ubuntu Trusty)
   Status: Won't Fix = Triaged

** Changed in: shadow (Ubuntu Utopic)
   Status: Won't Fix = Triaged

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

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1342875

Title:
  Unable to delete currently logged in user

Status in shadow package in Ubuntu:
  Fix Released
Status in shadow source package in Trusty:
  Triaged
Status in shadow source package in Utopic:
  Triaged

Bug description:
  A user can not delete themselves using the command 'sudo userdel -rf
  username', this is common in cloud tools that clean up running
  images prior to capture.  A quick test shows that this worked from
  Precise (didn't look back further) to Raring and stopped working with
  Saucy.

  Here's a quick example of the failure (from trusty):
  # sudo adduser test
  # sudo usermod -aG sudo test
  ## As the 'test' user
  # sudo userdel -rf test
  userdel: user test is currently used by process 9600
  userdel: cannot open /etc/subuid
  ## User is not removed

  Previously (output from precise)
  # sudo userdel -rf test
  userdel: user test is currently logged in
  userdel: warning: can't remove /var/mail/test: No such file or directory
  ## User is removed

  This is being run as the last command by tools that remove the
  'ubuntu' user to clean the image prior to capture.  This had
  previously worked and it is preferable that this could be made to work
  again.  The alternative is removal by root, but the root user on cloud
  images is locked down and we would not want the user to enable root to
  run userdel on the risk of it not getting disabled properly prior to
  image capture.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1342875/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1342875] Re: Unable to delete currently logged in user

2015-04-20 Thread Robert C Jennings
I tested the vivid package.   1:4.1.5.1-1.1ubuntu3 recreated the issue
but in 1:4.1.5.1-1.1ubuntu4 --force works.

Requesting SRU of fixes from bug #1436937 back to Trusty/Utopic.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1342875

Title:
  Unable to delete currently logged in user

Status in shadow package in Ubuntu:
  Triaged
Status in shadow source package in Trusty:
  Won't Fix
Status in shadow source package in Utopic:
  Won't Fix

Bug description:
  A user can not delete themselves using the command 'sudo userdel -rf
  username', this is common in cloud tools that clean up running
  images prior to capture.  A quick test shows that this worked from
  Precise (didn't look back further) to Raring and stopped working with
  Saucy.

  Here's a quick example of the failure (from trusty):
  # sudo adduser test
  # sudo usermod -aG sudo test
  ## As the 'test' user
  # sudo userdel -rf test
  userdel: user test is currently used by process 9600
  userdel: cannot open /etc/subuid
  ## User is not removed

  Previously (output from precise)
  # sudo userdel -rf test
  userdel: user test is currently logged in
  userdel: warning: can't remove /var/mail/test: No such file or directory
  ## User is removed

  This is being run as the last command by tools that remove the
  'ubuntu' user to clean the image prior to capture.  This had
  previously worked and it is preferable that this could be made to work
  again.  The alternative is removal by root, but the root user on cloud
  images is locked down and we would not want the user to enable root to
  run userdel on the risk of it not getting disabled properly prior to
  image capture.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1342875/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1342875] Re: Unable to delete currently logged in user

2015-04-20 Thread Brian Murray
This was a deliberate change by upstream as a part of adding support for
subordinate ids. You can find the full list of patches in shadow devel
mailing list:

https://lists.alioth.debian.org/pipermail/pkg-shadow-
devel/2013-January/thread.html#9561

The specific patch affecting userdel can be found here:

https://lists.alioth.debian.org/pipermail/pkg-shadow-
devel/2013-January/009561.html

** Changed in: shadow (Ubuntu)
   Status: Confirmed = Invalid

** Changed in: shadow (Ubuntu Trusty)
   Status: Confirmed = Won't Fix

** Changed in: shadow (Ubuntu Utopic)
   Status: Confirmed = Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1342875

Title:
  Unable to delete currently logged in user

Status in shadow package in Ubuntu:
  Invalid
Status in shadow source package in Trusty:
  Won't Fix
Status in shadow source package in Utopic:
  Won't Fix

Bug description:
  A user can not delete themselves using the command 'sudo userdel -rf
  username', this is common in cloud tools that clean up running
  images prior to capture.  A quick test shows that this worked from
  Precise (didn't look back further) to Raring and stopped working with
  Saucy.

  Here's a quick example of the failure (from trusty):
  # sudo adduser test
  # sudo usermod -aG sudo test
  ## As the 'test' user
  # sudo userdel -rf test
  userdel: user test is currently used by process 9600
  userdel: cannot open /etc/subuid
  ## User is not removed

  Previously (output from precise)
  # sudo userdel -rf test
  userdel: user test is currently logged in
  userdel: warning: can't remove /var/mail/test: No such file or directory
  ## User is removed

  This is being run as the last command by tools that remove the
  'ubuntu' user to clean the image prior to capture.  This had
  previously worked and it is preferable that this could be made to work
  again.  The alternative is removal by root, but the root user on cloud
  images is locked down and we would not want the user to enable root to
  run userdel on the risk of it not getting disabled properly prior to
  image capture.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1342875/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1342875] Re: Unable to delete currently logged in user

2015-04-20 Thread Brian Murray
Actually, it seems to me that the following fix resolves the issue.

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

  * debian/patches/1020_fix_user_busy_errors:
- libmisc/user_busy.c: Call sub_uid_close in all error cases, otherwise
  code that later opens it as RW fails obscurely. (LP: #1436937)
 -- William Grant wgr...@ubuntu.com Mon, 20 Apr 2015 18:41:47 +0100

(vivid-amd64)root@impulse:/home/bdmurray# apt-get install passwd
Reading package lists... Done
Building dependency tree   
Reading state information... Done
The following packages will be upgraded:
  passwd
1 upgraded, 0 newly installed, 0 to remove and 60 not upgraded.
Need to get 760 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ vivid-proposed/main passwd amd64 
1:4.1.5.1-1.1ubuntu4 [760 kB]
Fetched 760 kB in 6s (117 kB/s) 
 
(Reading database ... 14236 files and directories currently installed.)
Preparing to unpack .../passwd_1%3a4.1.5.1-1.1ubuntu4_amd64.deb ...
Unpacking passwd (1:4.1.5.1-1.1ubuntu4) over (1:4.1.5.1-1.1ubuntu3) ...
(vivid-amd64)root@impulse:/home/bdmurray# su test
(vivid-amd64)test@impulse:/home/bdmurray$ sudo userdel -rf test
sudo: unable to resolve host impulse
userdel: user test is currently used by process 32256
userdel: test mail spool (/var/mail/test) not found
(vivid-amd64)test@impulse:/home/bdmurray$ exit
su: User not known to the underlying authentication module
(vivid-amd64)root@impulse:/home/bdmurray# su test
No passwd entry for user 'test'


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

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1342875

Title:
  Unable to delete currently logged in user

Status in shadow package in Ubuntu:
  Triaged
Status in shadow source package in Trusty:
  Won't Fix
Status in shadow source package in Utopic:
  Won't Fix

Bug description:
  A user can not delete themselves using the command 'sudo userdel -rf
  username', this is common in cloud tools that clean up running
  images prior to capture.  A quick test shows that this worked from
  Precise (didn't look back further) to Raring and stopped working with
  Saucy.

  Here's a quick example of the failure (from trusty):
  # sudo adduser test
  # sudo usermod -aG sudo test
  ## As the 'test' user
  # sudo userdel -rf test
  userdel: user test is currently used by process 9600
  userdel: cannot open /etc/subuid
  ## User is not removed

  Previously (output from precise)
  # sudo userdel -rf test
  userdel: user test is currently logged in
  userdel: warning: can't remove /var/mail/test: No such file or directory
  ## User is removed

  This is being run as the last command by tools that remove the
  'ubuntu' user to clean the image prior to capture.  This had
  previously worked and it is preferable that this could be made to work
  again.  The alternative is removal by root, but the root user on cloud
  images is locked down and we would not want the user to enable root to
  run userdel on the risk of it not getting disabled properly prior to
  image capture.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1342875/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1342875] Re: Unable to delete currently logged in user

2015-04-16 Thread Brian Murray
** Tags added: trusty utopic

** Tags added: vivid

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1342875

Title:
  Unable to delete currently logged in user

Status in shadow package in Ubuntu:
  Confirmed
Status in shadow source package in Trusty:
  Confirmed
Status in shadow source package in Utopic:
  Confirmed

Bug description:
  A user can not delete themselves using the command 'sudo userdel -rf
  username', this is common in cloud tools that clean up running
  images prior to capture.  A quick test shows that this worked from
  Precise (didn't look back further) to Raring and stopped working with
  Saucy.

  Here's a quick example of the failure (from trusty):
  # sudo adduser test
  # sudo usermod -aG sudo test
  ## As the 'test' user
  # sudo userdel -rf test
  userdel: user test is currently used by process 9600
  userdel: cannot open /etc/subuid
  ## User is not removed

  Previously (output from precise)
  # sudo userdel -rf test
  userdel: user test is currently logged in
  userdel: warning: can't remove /var/mail/test: No such file or directory
  ## User is removed

  This is being run as the last command by tools that remove the
  'ubuntu' user to clean the image prior to capture.  This had
  previously worked and it is preferable that this could be made to work
  again.  The alternative is removal by root, but the root user on cloud
  images is locked down and we would not want the user to enable root to
  run userdel on the risk of it not getting disabled properly prior to
  image capture.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1342875/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1342875] Re: Unable to delete currently logged in user

2014-10-03 Thread Konstantin Pavlov
As a temporary workaround for tools like waagent -deprovision+user, I
can suggest rm -f /etc/sub{g,u}id{-} before running the waagent.

Hope it'll get fixed sooner than later because this really is a huge
problem.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1342875

Title:
  Unable to delete currently logged in user

Status in “shadow” package in Ubuntu:
  Confirmed
Status in “shadow” source package in Trusty:
  Confirmed
Status in “shadow” source package in Utopic:
  Confirmed

Bug description:
  A user can not delete themselves using the command 'sudo userdel -rf
  username', this is common in cloud tools that clean up running
  images prior to capture.  A quick test shows that this worked from
  Precise (didn't look back further) to Raring and stopped working with
  Saucy.

  Here's a quick example of the failure (from trusty):
  # sudo adduser test
  # sudo usermod -aG sudo test
  ## As the 'test' user
  # sudo userdel -rf test
  userdel: user test is currently used by process 9600
  userdel: cannot open /etc/subuid
  ## User is not removed

  Previously (output from precise)
  # sudo userdel -rf test
  userdel: user test is currently logged in
  userdel: warning: can't remove /var/mail/test: No such file or directory
  ## User is removed

  This is being run as the last command by tools that remove the
  'ubuntu' user to clean the image prior to capture.  This had
  previously worked and it is preferable that this could be made to work
  again.  The alternative is removal by root, but the root user on cloud
  images is locked down and we would not want the user to enable root to
  run userdel on the risk of it not getting disabled properly prior to
  image capture.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1342875/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1342875] Re: Unable to delete currently logged in user

2014-08-29 Thread Ben Howard
** Changed in: shadow (Ubuntu Utopic)
   Importance: Undecided = Medium

** Changed in: shadow (Ubuntu Trusty)
   Importance: Undecided = Medium

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1342875

Title:
  Unable to delete currently logged in user

Status in “shadow” package in Ubuntu:
  Confirmed
Status in “shadow” source package in Trusty:
  Confirmed
Status in “shadow” source package in Utopic:
  Confirmed

Bug description:
  A user can not delete themselves using the command 'sudo userdel -rf
  username', this is common in cloud tools that clean up running
  images prior to capture.  A quick test shows that this worked from
  Precise (didn't look back further) to Raring and stopped working with
  Saucy.

  Here's a quick example of the failure (from trusty):
  # sudo adduser test
  # sudo usermod -aG sudo test
  ## As the 'test' user
  # sudo userdel -rf test
  userdel: user test is currently used by process 9600
  userdel: cannot open /etc/subuid
  ## User is not removed

  Previously (output from precise)
  # sudo userdel -rf test
  userdel: user test is currently logged in
  userdel: warning: can't remove /var/mail/test: No such file or directory
  ## User is removed

  This is being run as the last command by tools that remove the
  'ubuntu' user to clean the image prior to capture.  This had
  previously worked and it is preferable that this could be made to work
  again.  The alternative is removal by root, but the root user on cloud
  images is locked down and we would not want the user to enable root to
  run userdel on the risk of it not getting disabled properly prior to
  image capture.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1342875/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1342875] Re: Unable to delete currently logged in user

2014-08-29 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

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

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1342875

Title:
  Unable to delete currently logged in user

Status in “shadow” package in Ubuntu:
  Confirmed
Status in “shadow” source package in Trusty:
  Confirmed
Status in “shadow” source package in Utopic:
  Confirmed

Bug description:
  A user can not delete themselves using the command 'sudo userdel -rf
  username', this is common in cloud tools that clean up running
  images prior to capture.  A quick test shows that this worked from
  Precise (didn't look back further) to Raring and stopped working with
  Saucy.

  Here's a quick example of the failure (from trusty):
  # sudo adduser test
  # sudo usermod -aG sudo test
  ## As the 'test' user
  # sudo userdel -rf test
  userdel: user test is currently used by process 9600
  userdel: cannot open /etc/subuid
  ## User is not removed

  Previously (output from precise)
  # sudo userdel -rf test
  userdel: user test is currently logged in
  userdel: warning: can't remove /var/mail/test: No such file or directory
  ## User is removed

  This is being run as the last command by tools that remove the
  'ubuntu' user to clean the image prior to capture.  This had
  previously worked and it is preferable that this could be made to work
  again.  The alternative is removal by root, but the root user on cloud
  images is locked down and we would not want the user to enable root to
  run userdel on the risk of it not getting disabled properly prior to
  image capture.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1342875/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1342875] Re: Unable to delete currently logged in user

2014-08-29 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: shadow (Ubuntu Trusty)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1342875

Title:
  Unable to delete currently logged in user

Status in “shadow” package in Ubuntu:
  Confirmed
Status in “shadow” source package in Trusty:
  Confirmed
Status in “shadow” source package in Utopic:
  Confirmed

Bug description:
  A user can not delete themselves using the command 'sudo userdel -rf
  username', this is common in cloud tools that clean up running
  images prior to capture.  A quick test shows that this worked from
  Precise (didn't look back further) to Raring and stopped working with
  Saucy.

  Here's a quick example of the failure (from trusty):
  # sudo adduser test
  # sudo usermod -aG sudo test
  ## As the 'test' user
  # sudo userdel -rf test
  userdel: user test is currently used by process 9600
  userdel: cannot open /etc/subuid
  ## User is not removed

  Previously (output from precise)
  # sudo userdel -rf test
  userdel: user test is currently logged in
  userdel: warning: can't remove /var/mail/test: No such file or directory
  ## User is removed

  This is being run as the last command by tools that remove the
  'ubuntu' user to clean the image prior to capture.  This had
  previously worked and it is preferable that this could be made to work
  again.  The alternative is removal by root, but the root user on cloud
  images is locked down and we would not want the user to enable root to
  run userdel on the risk of it not getting disabled properly prior to
  image capture.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1342875/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1342875] Re: Unable to delete currently logged in user

2014-08-13 Thread Stéphane Graber
** Also affects: shadow (Ubuntu Trusty)
   Importance: Undecided
   Status: New

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

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1342875

Title:
  Unable to delete currently logged in user

Status in “shadow” package in Ubuntu:
  New
Status in “shadow” source package in Trusty:
  New
Status in “shadow” source package in Utopic:
  New

Bug description:
  A user can not delete themselves using the command 'sudo userdel -rf
  username', this is common in cloud tools that clean up running
  images prior to capture.  A quick test shows that this worked from
  Precise (didn't look back further) to Raring and stopped working with
  Saucy.

  Here's a quick example of the failure (from trusty):
  # sudo adduser test
  # sudo usermod -aG sudo test
  ## As the 'test' user
  # sudo userdel -rf test
  userdel: user test is currently used by process 9600
  userdel: cannot open /etc/subuid
  ## User is not removed

  Previously (output from precise)
  # sudo userdel -rf test
  userdel: user test is currently logged in
  userdel: warning: can't remove /var/mail/test: No such file or directory
  ## User is removed

  This is being run as the last command by tools that remove the
  'ubuntu' user to clean the image prior to capture.  This had
  previously worked and it is preferable that this could be made to work
  again.  The alternative is removal by root, but the root user on cloud
  images is locked down and we would not want the user to enable root to
  run userdel on the risk of it not getting disabled properly prior to
  image capture.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1342875/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp