mock and non-local user accounts

Braden McDaniel braden at endoframe.com
Sun May 6 13:48:13 UTC 2012


On Sun, 2012-05-06 at 09:34 +0200, Niels de Vos wrote:
> On 6 May 2012 03:19, "Braden McDaniel" <braden at endoframe.com> wrote:
> >
> > Does mock have problems with non-local user accounts?  When I do
> >
> >        $ fedpkg mockbuild
> >
> > I get:
> >
> >        ERROR: Must be member of 'mock' group to run mock!
> (['users'])
> >        Traceback (most recent call last):
> >          File "/usr/sbin/mock", line 520, in <module>
> >            def do_buildsrpm(config_opts, chroot, options, args):
> >          File "/usr/sbin/mock", line 619, in main
> >            groupcheck(unprivGid)
> >          File "/usr/sbin/mock", line 576, in groupcheck
> >            raise RuntimeError, "Must be member of 'mock' group to
> run mock! (%s)" % sorted(set(members))
> >        RuntimeError: Must be member of 'mock' group to run mock!
> (['users'])
> 
> I guess you have /usr/sbin before /usr/bin in your path.

That does not appear to be the case:

        $ echo $PATH
        /home/braden/x86_64-redhat-linux-gnu/bin:/home/braden/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin

This is happening on an up-to-date Fedora 16 installation.

-- 
Braden McDaniel <braden at endoframe.com>



More information about the devel mailing list