Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Failed to change owner/group of file with overlay/aufs driver #77

Closed

Description

@gnawux
[root@centos-0318811974 /]# chgrp adm /a
chgrp: changing group of '/a': Operation not permitted

found in centos and ubuntu image, overlay and aufs driver.

and

[root@h8s-single centos]# grep clear /etc/libvirt/qemu.conf
clear_emulator_capabilities = 0

Activity

  1. bergwolf commented on Apr 18, 2016

    @bergwolf
    Member

    I also saw the same. And in my case, after changing "clear_emulator_capabilities = 1" to "clear_emulator_capabilities = 0" in /etc/libvirt/qemu.conf, it works for me:

    root@ubuntu-0505317255:/root# touch foo
    root@ubuntu-0505317255:/root# chown nobody foo
    root@ubuntu-0505317255:/root# ls -l foo
    -rw-r--r-- 1 nobody root 0 Apr 18 16:14 foo
    

    /etc/libvirt/qemu.conf contents:

    user = "root"
    group = "root"
    clear_emulator_capabilities = 0
    
  2. bergwolf commented on Apr 18, 2016

    @bergwolf
    Member

    btw, need to restart libvirtd and hyperd after changing libvirtd's config file, to make it effective.

  3. gnawux commented on Apr 20, 2016

    @gnawux
    MemberAuthor

    My qemu.conf is modified in March 6th, and I think I should restarted libvirtd already.

    However, restart libvirtd looks having fixed this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions