Dear All
I am trying to allow a local user on the centos machine to be able to run yum
What I have done is added him to the wheel group so that he can run software, basically it's his own machine if he breaks it it's his problem
But even after adding him to wheel, sys and adm group he is unable to install using yum
I am sure I must be missing something or I must be doing something wrong,
Many Thanks
Harry
Hi Harry,
Try to implement sudoers and add the group "wheel" inside from it (you can modify it from /etc/sudoers or using visudo command). In that way, all your users can use yum command.
Cheers, -james
On Fri, Jun 27, 2008 at 12:51 PM, Harry Sukumar hsukumar@bond.edu.au wrote:
Dear All
I am trying to allow a local user on the centos machine to be able to run yum
What I have done is added him to the wheel group so that he can run software, basically it's his own machine if he breaks it it's his problem
But even after adding him to wheel, sys and adm group he is unable to install using yum
I am sure I must be missing something or I must be doing something wrong,
Many Thanks
Harry
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Thursday 26 June 2008 10:51:18 pm Harry Sukumar wrote:
Dear All
But even after adding him to wheel, sys and adm group he is unable to install using yum
Ok, I'm new to CentOS and yum, but it seems to me that installing software would need to have write permission to all the directories that the software installs to. This could include directories in /sbin /bin /usr /lib /etc... If you want to do all using group, it would seem to me you would need to have the directories where software, libraries and configuration files install to all in the same group as yum unless you are using setuid.
I would suggest using sudo to allow the user to run the command yum with root ownership using his own password. You then would not have to worry about setuid and groups...
centos@atempleton.net wrote:
On Thursday 26 June 2008 10:51:18 pm Harry Sukumar wrote:
Dear All
But even after adding him to wheel, sys and adm group he is unable to install using yum
Ok, I'm new to CentOS and yum, but it seems to me that installing software would need to have write permission to all the directories that the software installs to. This could include directories in /sbin /bin /usr /lib /etc... If you want to do all using group, it would seem to me you would need to have the directories where software, libraries and configuration files install to all in the same group as yum unless you are using setuid.
I would suggest using sudo to allow the user to run the command yum with root ownership using his own password. You then would not have to worry about setuid and groups...
There is the rpm database too ... the user would need to be able to write there as well.
I think that adding software should require root access personally, and people who you trust to add software should be able to get root, but that is not my decision.
It is possible to do this though ... as pirut does it with it's GUI via consolehelper ... and that can be setup to not require a password.