On Tue, Oct 1, 2013 at 7:59 PM, Wim Bertels <wim.bert...@khleuven.be> wrote:
> Hallo, > > 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.