Is there a way to allow QEMU/KVM virt-manager to run vm-install for users other than root? When I try I get the error ‘must be root user to run vm-install’. However I can’t logon as root so how do I do it.
Thanks,
Nick
Is there a way to allow QEMU/KVM virt-manager to run vm-install for users other than root? When I try I get the error ‘must be root user to run vm-install’. However I can’t logon as root so how do I do it.
Thanks,
Nick
In general, you must be root to install anything into openSUSE. There are exceptions where you could manually install an application into your /home area and use an icon or a terminal session to run it. But, anything that uses YaST must have root access. You need to tell us more about your system and if you have asked for permission to run the vm-install from your administrator?
Thank You,
Thats the problem I don’t know how to give a user permission to run vm-install.
As a workaround I have started vm-install from a terminal after first doing su but I would like to be able to give a user permissions to do it directly.
On 2012-04-21 19:56, Nick C wrote:
>
> Thats the problem I don’t know how to give a user permission to run
> vm-install.
su -
in a terminal.
> As a workaround I have started vm-install from a terminal after first
> doing su but I would like to be able to give a user permissions to do it
> directly.
This is not windows.
–
Cheers / Saludos,
Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)
On 04/21/2012 01:58 PM, Carlos E. R. wrote:
> On 2012-04-21 19:56, Nick C wrote:
>>
>> Thats the problem I don’t know how to give a user permission to run
>> vm-install.
>
>
> su -
>
>
> in a terminal.
>
>> As a workaround I have started vm-install from a terminal after first
>> doing su but I would like to be able to give a user permissions to do it
>> directly.
>
> This is not windows.
If you want a particular user, or all users, to be able to ‘sudo vm-install’
without the root password, you need to add that command to the sudoers list for
those users. It is one of the YaST options. Note - you will need to specify the
full path for the command.
On 2012-04-21 21:03, Larry Finger wrote:
> If you want a particular user, or all users, to be able to ‘sudo
> vm-install’ without the root password, you need to add that command to the
> sudoers list for those users. It is one of the YaST options. Note - you
> will need to specify the full path for the command.
Right.
But in any case, we don’t have the possibility or concept of “give
permissions to the user”, that does not exist. We can, er… promote a user
to be another user by using su or sudo.
On the other hand, a file can have permissions to be run by a user, a
group, or all - but if that code needs access to hardware or something that
needs running as root, it will not work, unless we also activate the suid bit.
–
Cheers / Saludos,
Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)
What I was thinking of was like in some other distributions a user can be given full access to virt-manager by creating certain groups and adding the user to those but I guess that is not possible in openSUSE.
On 2012-04-21 23:56, Nick C wrote:
>
> What I was thinking of was like in some other distributions a user can
> be given full access to virt-manager by creating certain groups and
> adding the user to those but I guess that is not possible in openSUSE.
If it is possible there, it is possible here, if you do the same modifications.
–
Cheers / Saludos,
Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)
Problem is each distro seems to be different; on some you add the user to the libvirt group, on some the KVM group. on others the QEMU group. openSUSE has neither libvirt, kvm nor QEMU groups.
Nick
On 2012-04-22 16:56, Nick C wrote:
>
> Problem is each distro seems to be different; on some you add the user
> to the libvirt group, on some the KVM group. on others the QEMU group.
> openSUSE has neither a libvirt, kvm nor QEMU groups.
And what are the permissions of the binary?
–
Cheers / Saludos,
Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)
Thats it, once I had found where vm-install file was a chmod 775 solved it.
Thanks,