Why building with osc needs root permission

Even with --root like osc build --local-package --root /home/myhome/buildroot It asks for root password.

Maybe some setup informations her:
https://en.opensuse.org/openSUSE:OSC

@jsulig Hi, I configure ~/.config/osc/oscrc to use sudo and then a /etc/sudoers.d/01-build drop-in containing (where username is your username :wink:);

username ALL = NOPASSWD: /usr/bin/build

I run my builds in VM, so uses even less permissions than allowing to use /usr/bin/build without passwords (VMs run with user permissions)

By default osc is using chroot which is privileged operation.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.