Re: sudo not working



On Thu, Jul 19, 2007 at 09:54:16AM -0700, Dave Martini 1 wrote:
I want to install an rpm as a regular user. As root I used visudo to
edit the /etc/sudoers file and added this entry:

martini1 ALL=(root) /bin/rpm

I then ran this

# :/home/martini1[34]% sudo -l
Password:
User martini1 may run the following commands on this host:
(root) /bin/rpm

But I can't install an rpm when I do I get this error what am I doing wrong?

# rpm -ivh opera-8.50-20050916.5-shared-qt.i386-en.rpm
error: cannot get exclusive lock on /var/lib/rpm/Packages
error: cannot open Packages index using db3 - Operation not permitted (1)
error: cannot open Packages database in /var/lib/rpm

Dumb question, but are you running:

% sudo rpm -ivh opera-8.50-20050916.5-shared-qt.i386-en.rpm

Or just rpm by itself?

Ray

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: [SLE] Courier-imap
    ... Create your own RPM? ... I had very good experiences using the 'checkinstall' ... it makes a rpm automagically when used instead of 'make install' ... Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com -- ...
    (SuSE)
  • Re: Hp P1005
    ... but after making make install. ... If I remove the rpm hplip.1.7.4 package, ... commands even after ... I reinstall, so I have to reinstall the rpm hplip.1.7.4! ...
    (Fedora)
  • Re: [SLE] UML Instalation in SuSE 9.0
    ... Usually I compile kernel like this: ... Make menuconfig dep clean bzImage modules modules_install install ARCH=um ... > command line on your host when you start UML instance. ... For additional commands send e-mail to suse-linux-e-help@suse.com ...
    (SuSE)
  • Re: automated installation of rpm/app on a number of client machines
    ... i'm trying to figure out how to automate the process ... i was also saying that the install process might also involve ... of the rpm would perform these functions, ... would copy it over to the host and then install it ...
    (Fedora)
  • Re: i have a problem
    ... On 8/22/05, sujit sugathan wrote: ... > how to install these.can u please illustrate in simple language. ... It is a rpm package and It can be installed with the following commands. ...
    (Fedora)