You are not logged in.
I'm wondering what is the best way to share the pacman cache .
I went with the obvious choice 'sshfs' . But the cache on the server is owned by root so I can't use it dynamically unless I enable root logins , right ?
Is it safe to enable root logins and mount with the root user ?
What is the best and safest way to share pacman cache dynamically ?
Last edited by Nezmer (2008-12-07 01:13:20)
English is not my native language .
Offline
I use NFS to share pacman cache. No need to worry about permissions as is it owned by root, just mount the share in fstab.
Offline
Thank you . It works indeed .
I'm not going to add [solved] to the title now because I would like to see other recommendations/opinions .
English is not my native language .
Offline
NFS is a good choice. I had two machines I shared caches between, and each used its own as the primary cache (e.g. the one downloads would go to) and the other as the secondary cache over NFS. You can add multiple CacheDir lines to your pacman.conf to support this kind of setup.
Offline
Thank you for the explanation and for the multiple caches tip .
I'll stick with NFS and one cache on the server . Setting up multiple caches adds unneeded complexity for me besides I don't have a lot of disk space free on the other machine .
English is not my native language .
Offline
Interesting. I use sshfs and yes use root login to do business. But I see it this way you want more security created a stronger password. You want more security than that disable passwords and use keys. But once you start NFS you are surely introducing some security issue just as if you enable root ssh login, so why is NFS better?
Just asking out of interest, I claim to know nothing about security.
Offline
Well I believe with nfs you can setup your share to be readonly and also there is an option to prevent the client root user from writing from the share.
So that is more secure than using sshfs, logging in as root.
Offline