Re: groupadd -R problem
>
> How do u add a group with --root or -R option?
> the error message doesn't seem to make sense.
>
> This is an example:
>
> ROOT@debian:/tmp# mkdir /blabla
> ROOT@debian:/tmp# groupadd -R /blabla testChroot
> groupadd: cannot lock /etc/group; try again later.
> ROOT@debian:/tmp# groupadd testChroot
>
> without the -R option just works..
>
> mvg,
> Wim
>
>
> You have misunderstood the groupadd comand. It is used to add new
> group to the system and NOT to change the group ownersheep of a
> directory as in your example. Read the man page for groupadd and chown
> to see the difference.
Maybe my example was not clear:
the objective was to add a group, not to change the group ownership.
cf
-R, --root CHROOT_DIR
Apply changes in the CHROOT_DIR directory and use the
configuration files from the CHROOT_DIR directory.
So i'm guessing this only applies when u have chrooted "OS's" within
your OS?
mvg,
Wim
>
>
>
>
Reply to: