[Yum] yum is root-only???

seth vidal skvidal at phy.duke.edu
Mon Apr 5 14:56:22 UTC 2004


On Mon, 2004-04-05 at 11:13, Dmitry S. Makovey wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> Hi everybody,
> 
> I need to use yum only for download of packages to central server and faced 
> "minor" problem: namely yum refuses getting listing from the server unless 
> yum is run by root. What are the reasons for this? I found corresponding 
> code:
> 
>     # some misc speedups/sanity checks
>     if conf.uid != 0:
>         conf.cache=1
> 
> Can anybody explain side effects of me removing this "check" ?

not much - if you're not running as root you can't update the cache, so
don't bother trying.

instead of checking perms on each run to see if the user can write to
the cache dir, just skip it if ther user is not root.
-sv





More information about the Yum mailing list