touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #00925
[Bug 1342875] [NEW] Unable to delete currently logged in user
Public bug reported:
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.
** Affects: shadow (Ubuntu)
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
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
Follow ups
-
[Bug 1342875] Re: Unable to delete currently logged in user
From: Ubuntu QA Website, 2015-08-18
-
[Bug 1342875] Update Released
From: Brian Murray, 2015-07-28
-
[Bug 1342875] Re: Unable to delete currently logged in user
From: Launchpad Bug Tracker, 2015-07-28
-
[Bug 1342875] Re: Unable to delete currently logged in user
From: Brian Murray, 2015-07-28
-
[Bug 1342875] Re: Unable to delete currently logged in user
From: Simon Déziel, 2015-07-28
-
[Bug 1342875] Re: Unable to delete currently logged in user
From: Launchpad Bug Tracker, 2015-07-15
-
[Bug 1342875] Please test proposed package
From: Chris J Arges, 2015-07-15
-
[Bug 1342875] Re: Unable to delete currently logged in user
From: Chris J Arges, 2015-07-15
-
[Bug 1342875] Re: Unable to delete currently logged in user
From: Steve Langasek, 2015-07-10
-
[Bug 1342875] Re: Unable to delete currently logged in user
From: lic_interop, 2015-07-09
-
[Bug 1342875] Re: Unable to delete currently logged in user
From: Brian Murray, 2015-04-20
-
[Bug 1342875] Re: Unable to delete currently logged in user
From: Robert C Jennings, 2015-04-20
-
[Bug 1342875] Re: Unable to delete currently logged in user
From: Brian Murray, 2015-04-20
-
[Bug 1342875] Re: Unable to delete currently logged in user
From: Brian Murray, 2015-04-20
-
[Bug 1342875] Re: Unable to delete currently logged in user
From: Brian Murray, 2015-04-16
-
[Bug 1342875] Re: Unable to delete currently logged in user
From: Konstantin Pavlov, 2014-10-03
-
[Bug 1342875] Re: Unable to delete currently logged in user
From: Launchpad Bug Tracker, 2014-08-29
-
[Bug 1342875] Re: Unable to delete currently logged in user
From: Launchpad Bug Tracker, 2014-08-29
-
[Bug 1342875] Re: Unable to delete currently logged in user
From: Ben Howard, 2014-08-29
-
[Bug 1342875] Re: Unable to delete currently logged in user
From: Stéphane Graber, 2014-08-13
-
[Bug 1342875] [NEW] Unable to delete currently logged in user
From: Robert C Jennings, 2014-07-16
References