Re: sudo not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux