[zypp-devel] zypper: Root privileges are required for modifying system repositories...
ma@Fibonacci:~ $ rm -rf /tmp/rr ma@Fibonacci:~ $ zypper --root /tmp/rr sa http://download.opensuse.org/distribution/SL-OSS-factory/inst-source Root privileges are required for modifying system repositories. Why should the above require Root privileges? Shouldn't we actually check whether we are aloowed to read/write the directories? -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres YaST Development ma@novell.com SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
Hi, On Thu, 8 May 2008, Michael Andres wrote:
ma@Fibonacci:~ $ rm -rf /tmp/rr ma@Fibonacci:~ $ zypper --root /tmp/rr sa http://download.opensuse.org/distribution/SL-OSS-factory/inst-source
Root privileges are required for modifying system repositories.
Why should the above require Root privileges? Shouldn't we actually check whether we are aloowed to read/write the directories?
Yes, that would be very nice. For my local testing I often patched out the geteuid checks, obviously not a nice solution :-) Ciao, Michael. -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
Michael Andres wrote:
ma@Fibonacci:~ $ rm -rf /tmp/rr ma@Fibonacci:~ $ zypper --root /tmp/rr sa http://download.opensuse.org/distribution/SL-OSS-factory/inst-source
Root privileges are required for modifying system repositories.
Why should the above require Root privileges? Shouldn't we actually check whether we are aloowed to read/write the directories?
Agreed :O) Me or Pepa will do it. I'm just wondering whether just checking for write access is all that is to it (maybe it is). jano -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
Jan Kupec wrote:
Michael Andres wrote:
ma@Fibonacci:~ $ rm -rf /tmp/rr ma@Fibonacci:~ $ zypper --root /tmp/rr sa http://download.opensuse.org/distribution/SL-OSS-factory/inst-source
Root privileges are required for modifying system repositories.
Why should the above require Root privileges? Shouldn't we actually check whether we are aloowed to read/write the directories?
Agreed :O) Me or Pepa will do it. I'm just wondering whether just checking for write access is all that is to it (maybe it is).
jano
Now it is done, you can test it. Checking of root is disabled when you specify another root via -r/--root. If you have enought permision you can also try -r / which allow you run zypper on current root. On my pc install command doesn't work due to rpm, which have same problem with it. Pepa -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
participants (4)
-
Jan Kupec
-
Josef Reidinger
-
Michael Andres
-
Michael Matz