Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #167121

Re: Installation of openssh-client stops with error in groupadd

From Reco <recoverym4n@gmail.com>
Newsgroups linux.debian.user
Subject Re: Installation of openssh-client stops with error in groupadd
Date 2016-04-26 20:10 +0200
Message-ID <rsfAS-3CZ-21@gated-at.bofh.it> (permalink)
References <rrUZu-3iQ-63@gated-at.bofh.it> <rrVsv-3wP-33@gated-at.bofh.it> <rrVLR-3EY-25@gated-at.bofh.it> <rsfhw-3db-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


	Hi.

On Tue, 26 Apr 2016 19:25:48 +0200
Michael Luecke <ml@mluecke.eu> wrote:

> Hi,
> 
> as I restarted my computer today. I wanted to install lsof via apt-get 
> and at least it configured openssh-client without failure. So I thought 
> that problem fixed itself, but it didn't.
> 
> I tried to add another group manually so I typed as root:
> 
> # groupadd -g 1234 test
> groupadd: failure while writing changes to /etc/group
> 
> and
> 
> # strace groupadd -g 1234 test
> showed the known error:
> ...
> rename("/etc/group+", "/etc/group") = -1 EBUSY (Device or resource busy)
> 
> On 04/25/2016 10:57 PM, Reco wrote:
>  > /bin/fuser /etc/group
> # fuser /etc/group
> [ no output ]
> 
>  > /usr/bin/lsof /etc/group
> # lsof /etc/group
> [ no output ]

Ok, then we'll have to do it hard way. Basically I want to make sure
that it's btrfs fault, not some mount output anomaly that hides
bind-mounted /etc/group.

unshare -m /bin/bash
mount -o bind / /mnt
mount -o bind /proc /mnt/proc
mount -o bind /dev /mnt/dev
chroot /mnt
strace groupadd -g 1234 test
exit
exit

'exit' should be done twice, first time to exit chroot, second time to
exit detached mount namespace.

Reco

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Installation of openssh-client stops with error in groupadd Michael Luecke <ml2016@mluecke.eu> - 2016-04-25 22:00 +0200
  Re: Installation of openssh-client stops with error in groupadd <tomas@tuxteam.de> - 2016-04-25 22:10 +0200
  Re: Installation of openssh-client stops with error in groupadd Reco <recoverym4n@gmail.com> - 2016-04-25 22:10 +0200
    Re: Installation of openssh-client stops with error in groupadd Reco <recoverym4n@gmail.com> - 2016-04-25 23:00 +0200
      Re: Installation of openssh-client stops with error in groupadd Michael Luecke <ml@mluecke.eu> - 2016-04-26 19:50 +0200
        Re: Installation of openssh-client stops with error in groupadd Reco <recoverym4n@gmail.com> - 2016-04-26 20:10 +0200
          Re: Installation of openssh-client stops with error in groupadd Michael Luecke <ml@mluecke.eu> - 2016-04-26 20:40 +0200
            Re: Installation of openssh-client stops with error in groupadd Reco <recoverym4n@gmail.com> - 2016-04-26 21:00 +0200
              Re: Installation of openssh-client stops with error in groupadd Michael Luecke <lists-2016@mluecke.eu> - 2016-04-26 21:10 +0200
                Re: Installation of openssh-client stops with error in groupadd Michael Luecke <ml@mluecke.eu> - 2016-04-27 20:40 +0200

csiph-web