[Yum] yum is root-only???
Dmitry S. Makovey
dmitry at athabascau.ca
Mon Apr 5 15:45:58 UTC 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On April 5, 2004 08:56 am, seth vidal wrote:
> On Mon, 2004-04-05 at 11:13, Dmitry S. Makovey wrote:
> > 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.
but with the proper group permissions should be ok, right?
> 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.
so it was kind of shortcut instead of full-blown permissions check? Not to be
pita, but just out of curiosity I wonder if that's going to change since this
is not the most elegant solution (we have more than one admin downloading
packages) maybe it's worth another option in config: check for 'root' or
check for group?
- --
Dmitry Makovey
Web Systems Administrator
Athabasca University
(780) 675-6245
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFAcX82yDrVuGfS98QRAi3MAKCz42HxvMmDbZVLRSEz+OkylOc85QCgnc3s
ugNmUSltIyX0m7qvofh4Jpo=
=SZte
-----END PGP SIGNATURE-----
More information about the Yum
mailing list