>>>>> On Mon, 18 Apr 2022 16:16:18 +0300, Peter Pentchev <r...@ringlet.net> 
>>>>> said:


    > If you run sudo without the "set_home" option, thus making it preserve
    > the HOME environment variable, rpm run as root with HOME set to
    > /home/something will indeed do the wrong thing.
I have no set_home entry in /etc/sudoers and everything in
/etc/sudo.conf is commented out.

Here's a test:

As normal user
$ export HOME=/tmp/b
$ sudo rpm -qa

This still creates /root/.rpmdb
and not
/tmp/b/.rpmdb

-- 
regards Thomas

Reply via email to