Link to home
Create AccountLog in
Avatar of mac_g
mac_gFlag for Saudi Arabia

asked on

Linux : can't create transaction lock on rpm.lock (Permission denied)

please advise the fix
========
[bkp@dba ~]$ rpm -Uvh AvamarClient-linux-rhel4-x86_64-7.1.100-370.rpm
error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)


[bkp@dba01 ~]$ id
uid=1102(bkp) gid=0(root) groups=0(root)
=====
Avatar of Sudeep Sharma
Sudeep Sharma
Flag of India image

use su -  and then root's password to try again.

Thanks,
Sudeep
Avatar of mac_g

ASKER

am using same account which is as part of root.

with root it is working ..

this bkp user use by backup admin... I want to use that account

please advice
could you list the permissions on the file which has the error and post the output of the following

ls -la /var/lib/rpm/.rpm.lock

Sudeep
Avatar of mac_g

ASKER

-rwxr-xr-x 1 bkp oinstall 74050510 Jul 25 12:30 AvamarClient-linux-rhel4-x86_64-7.1.100-370.rpm
Avatar of mac_g

ASKER

-rw-r--r--. 1 root root 0 Feb  2  2014 /var/lib/rpm/.rpm.lock
As you could see that only user root has the write permission on the file.

bkp user is member of the Group root and group members doesn't have the write permissions on the /var/lib/rpm/.rpm.lock

You should try sudo rpm -Uvh AvamarClient-linux-rhel4-x86_64-7.1.100-370.rpm instead.

Make sure user bkp has the sudo access.

Thanks,
Sudeep
Avatar of mac_g

ASKER

]$ sudo rpm -Uvh AvamarClient-linux-rhel4-x86_64-7.1.100-370.rpm

[sudo] password for bkp:
bkp is not in the sudoers file.  This incident will be reported.

???
Well I clearly mentioned in my previous response to make sure that bkp user has sudo access.


Provide sudo access first to bkp and then run the same command again.

Thanks,
Sudeep
Avatar of mac_g

ASKER

thanks ..

can u please advice steps how to provide  sudo access to bkp user ?
ASKER CERTIFIED SOLUTION
Avatar of Sudeep Sharma
Sudeep Sharma
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account