I very much appreciate your reply.
ls -ld /var{,/tmp{,/pamac{,/dbs{,/sync}}}}
drwxr-xr-x 12 root root 4096 21. Jul 04:31 /var
drwxrwxrwt 10 root root 4096 21. Jul 06:38 /var/tmp
drwxrwxrwx 4 user user 4096 21. Jul 06:39 /var/tmp/pamac
drwxrwxrwx 3 root root 4096 21. Jul 06:40 /var/tmp/pamac/dbs
drwxrwxrwx 2 root root 4096 21. Jul 06:40 /var/tmp/pamac/dbs/sync
ls -lh /var/tmp/pamac/dbs/sync
total 86M
-rw-rw-rw- 1 root root 1,0K 17. Jul 08:18 community.db
-rw-rw-rw- 1 root root 34M 29. Jun 23:48 community.files
-rw-rw-rw- 1 root root 146K 19. Jul 08:18 core.db
-rw-r--r-- 1 root root 2,2M 19. Jul 08:18 core.files
-rw-r--r-- 1 user user 0 8. Mai 01:28 core.files.part
-rw-rw-rw- 1 root root 8,7M 20. Jul 16:36 extra.db
-rw-r--r-- 1 root root 41M 20. Jul 16:36 extra.files
-rw-rw-rw- 1 root root 144K 19. Jul 08:19 multilib.db
-rw-r--r-- 1 root root 217K 19. Jul 08:19 multilib.files
-rw-rw-rw- 1 root root 0 7. Jul 22:34 refresh_timestamp
Ok, via
sudo chown user:user /var/tmp/pamac/dbs
ls -ld /var{,/tmp{,/pamac{,/dbs{,/sync}}}}
drwxr-xr-x 12 root root 4096 21. Jul 04:31 /var
drwxrwxrwt 10 root root 4096 21. Jul 06:38 /var/tmp
drwxrwxrwx 4 user user 4096 21. Jul 06:39 /var/tmp/pamac
drwxrwxrwx 3 user user 4096 21. Jul 06:40 /var/tmp/pamac/dbs
drwxrwxrwx 2 root root 4096 21. Jul 06:40 /var/tmp/pamac/dbs/sync
ls -lh /var/tmp/pamac/dbs/sync
total 86M
-rw-rw-rw- 1 root root 1,0K 17. Jul 08:18 community.db
-rw-rw-rw- 1 root root 34M 29. Jun 23:48 community.files
-rw-rw-rw- 1 root root 146K 19. Jul 08:18 core.db
-rw-r--r-- 1 root root 2,2M 19. Jul 08:18 core.files
-rw-r--r-- 1 user user 0 8. Mai 01:28 core.files.part
-rw-rw-rw- 1 root root 8,7M 20. Jul 16:36 extra.db
-rw-r--r-- 1 root root 41M 20. Jul 16:36 extra.files
-rw-rw-rw- 1 root root 144K 19. Jul 08:19 multilib.db
-rw-r--r-- 1 root root 217K 19. Jul 08:19 multilib.files
-rw-rw-rw- 1 root root 0 7. Jul 22:34 refresh_timestamp
ls -ld /var{,/tmp{,/pamac{,/dbs{,/sync}}}}
drwxr-xr-x 12 root root 4096 21. Jul 04:31 /var
drwxrwxrwt 10 root root 4096 21. Jul 06:38 /var/tmp
drwxrwxrwx 4 user user 4096 21. Jul 06:53 /var/tmp/pamac
drwxrwxrwx 3 root root 4096 21. Jul 06:54 /var/tmp/pamac/dbs
drwxrwxrwx 2 root root 4096 21. Jul 06:54 /var/tmp/pamac/dbs/sync
ls -lh /var/tmp/pamac/dbs/sync
total 86M
-rw-rw-rw- 1 root root 1,0K 17. Jul 08:18 community.db
-rw-rw-rw- 1 root root 34M 29. Jun 23:48 community.files
-rw-rw-rw- 1 root root 146K 19. Jul 08:18 core.db
-rw-r--r-- 1 root root 2,2M 19. Jul 08:18 core.files
-rw-r--r-- 1 user user 0 8. Mai 01:28 core.files.part
-rw-rw-rw- 1 root root 8,7M 20. Jul 16:36 extra.db
-rw-r--r-- 1 root root 41M 20. Jul 16:36 extra.files
-rw-rw-rw- 1 root root 144K 19. Jul 08:19 multilib.db
-rw-r--r-- 1 root root 217K 19. Jul 08:19 multilib.files
-rw-rw-rw- 1 root root 0 21. Jul 06:53 refresh_timestamp
Thanks for your time looking into it.
Edit 1: I’ve read all the forums posts on this issue and tried
sudo rm -rf /var/tmp/pamac*
followed by
pamac update --force-refresh -a
without success! The old warning is back also my ownership change
sudo chown user:user /var/tmp/pamac/dbs
is reverted to root again!
Why?
Edit 2:
When I run
sudo rm -rf /var/tmp/pamac*
followed by
sudo pacman-mirrors -f 5 && sudo pacman -Syyu
all ownership/permissions look good
ls -ld /var{,/tmp{,/pamac{,/dbs{,/sync}}}}
drwxr-xr-x 12 root root 4096 21. Jul 20:42 /var
drwxrwxrwt 10 root root 4096 21. Jul 21:46 /var/tmp
drwxrwxrwx 3 user user 4096 21. Jul 20:42 /var/tmp/pamac
drwxrwxrwx 3 user user 4096 21. Jul 21:57 /var/tmp/pamac/dbs
drwxrwxrwx 2 user user 4096 21. Jul 21:55 /var/tmp/pamac/dbs/sync
but as soon I run
pamac update --force-refresh -a
the ownership is reverted again
ls -ld /var{,/tmp{,/pamac{,/dbs{,/sync}}}}
drwxr-xr-x 12 root root 4096 21. Jul 20:42 /var
drwxrwxrwt 10 root root 4096 21. Jul 21:46 /var/tmp
drwxrwxrwx 3 user user 4096 21. Jul 21:59 /var/tmp/pamac
drwxrwxrwx 3 root root 4096 21. Jul 22:00 /var/tmp/pamac/dbs
drwxrwxrwx 2 root root 4096 21. Jul 22:00 /var/tmp/pamac/dbs/sync
back to root !! (and of course the old warning is back)
WTF and why pamac does that and how to solve it?
Edit 3:
When I run
sudo rm -rf /var/tmp/pamac*
and open the Pamac GUI looking for updates, all all ownership/permissions are looking good,
also when I just run (from terminal)
pamac update
all ownership/permissions are ok!
As soon I choose update database from the menu inside the Pamac GUI the ownership is reverted to root again!
So it is caused by update database (inside the GUI) as well as by –force-refresh -a !!
I can’t narrow it down more (with my limited Linux knowledge), but hope it helps to find the reason for an more experienced user or team member.
Thank for taking your time.