GNU bug report logs -
#21096
Useradd, usermod do not use the target to read groups from when using the -R parameter
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21096 in the body.
You can then email your comments to 21096 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#21096
; Package
coreutils
.
(Mon, 20 Jul 2015 15:30:06 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Olliver Schinagl <o.schinagl <at> ultimaker.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Mon, 20 Jul 2015 15:30:08 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi list,
I'm trying to generate a rootfs and am using a script to add users,
groups etc. I first add a group via groupadd -R ${ROOTFS_TARGET}
somegroup which works fine.
Using useradd with the -R parameter, to add a user also works as
expected, until i try to add the -a -G somegroup options. Using usermod
after creating the group and doing -a -G somegroup identically fails
informing us there is no such group, somegroup.
It appears both usermod and useradd use the local /etc/group rather then
what is supplied via the -R parameter. A workaround for now, is to use
chroot directly, chroot ${TARGET} usermod -a -G somegroup someuser, but
that only works if coreutils (or busybox (without useradd/usermod)) are
already installed on the target, which may not be there (yet/at all).
Am I doing something wrong or is this indeed a bug in the coreutils?
I'm using debian jessie's 8.23-4 on amd64
Olliver
--
Met vriendelijke groeten, Kind regards, 与亲切的问候
Olliver Schinagl
Research & Development
Ultimaker B.V.
--
IMAGINE IT >> MAKE IT
Meet us online at Twitter <http://twitter.com/ultimaker>, Facebook
<http://facebook.com/ultimaker>, Google+ <http://google.com/+Ultimaker>
www.ultimaker.com
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#21096
; Package
coreutils
.
(Mon, 20 Jul 2015 16:00:05 GMT)
Full text and
rfc822 format available.
Message #8 received at 21096 <at> debbugs.gnu.org (full text, mbox):
Hello,
On 07/20/2015 04:12 AM, Olliver Schinagl wrote:
<...>
> It appears both usermod and useradd use the local /etc/group rather
> then what is supplied via the -R parameter.
<...>
> Am I doing something wrong or is this indeed a bug in the coreutils?
It might be a bug, but not in coreutils - these programs are not part of coreutils.
> I'm using debian jessie's 8.23-4 on amd64
It seems that in Debian, these programs are part of the 'passwd' package,
whose source is maintained here (as upstream of the 'shadow' package):
http://pkg-shadow.alioth.debian.org/features.php
You could try asking here:
http://pkg-shadow.alioth.debian.org/getinvolved.php
regards,
- assaf
Added tag(s) notabug.
Request was from
Pádraig Brady <P <at> draigBrady.com>
to
control <at> debbugs.gnu.org
.
(Mon, 20 Jul 2015 16:49:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
21096 <at> debbugs.gnu.org and Olliver Schinagl <o.schinagl <at> ultimaker.com>
Request was from
Pádraig Brady <P <at> draigBrady.com>
to
control <at> debbugs.gnu.org
.
(Mon, 20 Jul 2015 16:49:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#21096
; Package
coreutils
.
(Tue, 21 Jul 2015 08:52:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 21096 <at> debbugs.gnu.org (full text, mbox):
Hey
On 20-07-15 17:59, Assaf Gordon wrote:
> Hello,
>
> On 07/20/2015 04:12 AM, Olliver Schinagl wrote:
> <...>
>> It appears both usermod and useradd use the local /etc/group rather
>> then what is supplied via the -R parameter.
> <...>
>> Am I doing something wrong or is this indeed a bug in the coreutils?
>
> It might be a bug, but not in coreutils - these programs are not part
> of coreutils.
>
>> I'm using debian jessie's 8.23-4 on amd64
>
> It seems that in Debian, these programs are part of the 'passwd' package,
> whose source is maintained here (as upstream of the 'shadow' package):
> http://pkg-shadow.alioth.debian.org/features.php
> You could try asking here:
> http://pkg-shadow.alioth.debian.org/getinvolved.php
I feel so stupid for not noticing this. I thought I checked, but for
some reason I thought it was in coreutils.
Sorry for the noise!
>
> regards,
> - assaf
>
--
Met vriendelijke groeten, Kind regards, 与亲切的问候
Olliver Schinagl
Research & Development
Ultimaker B.V.
--
IMAGINE IT >> MAKE IT
Meet us online at Twitter <http://twitter.com/ultimaker>, Facebook
<http://facebook.com/ultimaker>, Google+ <http://google.com/+Ultimaker>
www.ultimaker.com
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 18 Aug 2015 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 306 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.