sudo not working



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

Thank you.
Dave Martini
LLNL

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



Relevant Pages

  • Re: Dependencies
    ... Should you install it or no? ... RPM is just a low-level tool that does one thing and that one ... If getting the GPG keys causes you heartburn, ... > To stay in the RPM subject, Apache give keys for their tarball versions. ...
    (linux.redhat)
  • Re: Three newbie questions!
    ... You can see the main groups, then the applications ... Until you get to know the names of applications, it is best to use RPM ... You normally find a README, an INSTALL, and a doc ... If you have installed any libraries, then you must run the following ...
    (comp.os.linux.setup)
  • FW: [SLE] YaST Online Update Problem
    ... >>update one of the rpms manually to see if rpm will give you a better error ... >SuSE to try to apply one of the patches? ... >I've always used YaST for Online Updates and for installing new packages. ... Not only that, but at the end of the install, it ...
    (SuSE)
  • Re: How to install Java/Frefox in FC6 -
    ... just don't trust java and rpm in the same breath, ... recall that when building packages, you always opt for ./configure && ... make && make install and I don't recall a single instance where you have ... I rebuilt kde to kde-3.3.0 using konstruct, didn't fix it. ...
    (Fedora)
  • Media Tray Empty - SuSE 9.1 Solved
    ... and has, after all, worked fine in SuSE 9.0 on the same machine. ... so I just told Yast to ignore those for the time being. ... I then installed the *old* cups-related rpm files from my SuSE 9.0 Pro ... CDs and proceeded to install the downloaded ghostscript files, ...
    (alt.os.linux.suse)