[Yum] yum is root-only???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux