You are not logged in.

#1 2008-12-06 21:23:55

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

[Solved] What is the best way to share pacman cache ?

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

#2 2008-12-06 21:30:45

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: [Solved] What is the best way to share pacman cache ?

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.


neutral

Offline

#3 2008-12-06 22:32:08

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: [Solved] What is the best way to share pacman cache ?

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

#4 2008-12-07 00:54:58

toofishes
Developer
From: Chicago, IL
Registered: 2006-06-06
Posts: 602
Website

Re: [Solved] What is the best way to share pacman cache ?

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

#5 2008-12-07 01:12:07

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: [Solved] What is the best way to share pacman cache ?

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

#6 2008-12-07 01:53:13

tesjo
Member
Registered: 2007-11-30
Posts: 164

Re: [Solved] What is the best way to share pacman cache ?

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

#7 2008-12-07 03:51:57

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: [Solved] What is the best way to share pacman cache ?

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.


Website - Blog - arch-home
Arch User since March 2005

Offline

Board footer

Powered by FluxBB