Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Gentoo Chat
  • Search

[Bug 286017] and Gentoo developer's *behavior*

Opinions, ideas and thoughts about Gentoo. Anything and everything about Gentoo except support questions.
Locked
  • Print view
Advanced search
77 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • Next
Author
Message
Earthwings
Bodhisattva
Bodhisattva
User avatar
Posts: 7753
Joined: Mon Apr 14, 2003 8:13 pm
Location: Germany

Post by Earthwings » Fri Oct 02, 2009 4:29 pm

Spinal_by wrote:Looks like you can't read.
Do you understand what are we speaking about?
You can find the information you are not aware about here:
http://www.rootshell.be/~spinal/gentoo_ ... 86017.html

Specially for you, running "sudo visudo" is something different from running visudo being root...
Calm down and stop being rude, please. [topic=525]Forum Guidelines[/topic].
KDE
Top
desultory
Bodhisattva
Bodhisattva
User avatar
Posts: 9410
Joined: Fri Nov 04, 2005 6:07 pm

Post by desultory » Sat Oct 03, 2009 1:06 am

Spinal_by wrote:Did you visit the link? It's obviously seen there, just next to button "Commit"
http://www.rootshell.be/~spinal/gentoo_ ... 86017.html
I read the bug and checked the activity log for it.
Top
argin
n00b
n00b
Posts: 6
Joined: Sat Oct 03, 2009 8:33 pm

Post by argin » Sat Oct 03, 2009 9:35 pm

I attentively read all thread, and I think that changing default behavior of well known important application like visudo without any noticing is really bad decision. And it bad decision even with noticing, because the leave the important variable unseted in case of someone remove the nano from system.
In fact we have two different editor - one is configured with EDITORS variable, and another with "default editor" . It is sense, that in stage 3 both have the same value, but it two essentially different case, and have to be a interface like
eselect set visudo bla-bla-bla
to set this IMPORTANT security related editor when we deploy gentoo on computer. All editor's ebuilds in it postinastall phase should check the value of both variable and suggest decision.

This bug obviously related to Diego, but not only him. It is gentoo system level bug, IMO.
Top
ulm
Developer
Developer
Posts: 98
Joined: Mon Oct 04, 2004 4:07 pm
Location: Mainz, Germany

Post by ulm » Sat Oct 03, 2009 10:05 pm

A copy of the bug's activity log is here: http://dev.gentoo.org/~ulm/misc/bug-286 ... ivity.html
Top
Voltago
Advocate
Advocate
User avatar
Posts: 2593
Joined: Tue Sep 02, 2003 1:54 pm
Location: userland

Re: [Bug 286017] and Gentoo developer's *behavior*

Post by Voltago » Sat Oct 03, 2009 11:21 pm

brezblock wrote:Is it fair to restrict community from discuss bugs and it's solution???
You want it one way, Diego wants it another way. You insist, Diego doesn't budge. You are user, Diego is a developer. You loose. Welcome to reality. As for discussion, I guess the forums are a better place for that, bugzilla is for bug resolution. Haranguing a developer doesn't really resolve anything, it only wastes time.
Top
ewphillips
n00b
n00b
Posts: 9
Joined: Mon Mar 16, 2009 4:50 am

Post by ewphillips » Sun Oct 04, 2009 7:26 am

Since sudo hard codes a default editor during compile(which for security reasons it should), when you change the default in /etc/env.d(for openrc) or /etc/conf.d/rc(for non openrc users) you must the env-update and emerge sudo again for the change to have any effect(ie when running sudo visudo or sudoedit foo). I did this, adding: /etc/env.d/99editor(I use openrc) containing

Code: Select all

EDITOR=/usr/bin/emacs
running env-update and then emerge sudo, sudo visudo gave the expected result of opening /etc/sudoers in emacs, also sudoedit foo opened foo in emacs.
[/post]
Top
energyman76b
Advocate
Advocate
User avatar
Posts: 2048
Joined: Wed Mar 26, 2003 11:31 am
Location: Germany

Post by energyman76b » Sun Oct 04, 2009 7:35 am

hard coding an editor during compile is idiotic from a security POV.
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Top
comprookie2000
Retired Dev
Retired Dev
User avatar
Posts: 925
Joined: Sun Jul 25, 2004 5:39 am
Location: Sun City Center, Florida
Contact:
Contact comprookie2000
Website

Post by comprookie2000 » Sun Oct 04, 2009 6:54 pm

Hi Everyone,
Diego wanted me to post a link to his blog where he explains his reasoning. He would have posted it himself but he has misplaced his forum credentials :)
http://blog.flameeyes.eu/2009/10/04/exp ... o-crapfest

being kind is more important than being right
http://dev.gentoo.org/~dabbott/
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

Post by Anon-E-moose » Sun Oct 04, 2009 7:05 pm

comprookie2000 wrote:Hi Everyone,
Diego wanted me to post a link to his blog where he explains his reasoning. He would have posted it himself but he has misplaced his forum credentials :)
http://blog.flameeyes.eu/2009/10/04/exp ... o-crapfest

being kind is more important than being right
:lol: Thanks for that read.

I agree with Diego.

And a final thought on the original whine/complaint about sudo.
If someone really, really, really doesn't like the default way gentoo has compiled sudo,
or any package for that matter, they can certainly get the original source and compile it
themselves. Problem solved.
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
yngwin
Retired Dev
Retired Dev
User avatar
Posts: 4572
Joined: Thu Dec 19, 2002 1:22 pm
Location: Suzhou, China

Post by yngwin » Sun Oct 04, 2009 9:39 pm

Don't play reopen-close wars on bugzilla. It's highly annoying and you will loose. As you have seen.

Also, and more importantly, it distracts the attention away from the real issue and makes it about your behaviour. And saying "you're wrong, this is not the Gentoo Way" to a developer who commits a lot of time to Gentoo year after year, achieves the same thing.
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Top
rrbrussell
n00b
n00b
User avatar
Posts: 65
Joined: Mon Jun 21, 2004 7:33 pm
Contact:
Contact rrbrussell
Website

Post by rrbrussell » Mon Oct 05, 2009 3:37 pm

Sudo should probably depend on nano directly and not virtual/editor. I would also add some einfo documentation to the ebuild saying that the <2MB of storage nano requires when built with normal use flags probably is only worth worrying about if you are using an embed system.

I quit using sudo when I noticed subversion creating a root owned .svn directory under my users ~/ directory, when layman updated some overlays using subversion. I figured that if subversion or sudo was going to leave root owned configuration files under my personal ~/ tree I might as well su - to root.
Top
Flameeyes
Retired Dev
Retired Dev
User avatar
Posts: 189
Joined: Wed Mar 30, 2005 3:22 pm
Location: London, Europe
Contact:
Contact Flameeyes
Website

Post by Flameeyes » Mon Oct 05, 2009 6:09 pm

rrbrussell wrote:Sudo should probably depend on nano directly and not virtual/editor. I would also add some einfo documentation to the ebuild saying that the <2MB of storage nano requires when built with normal use flags probably is only worth worrying about if you are using an embed system.
Given I'm the first person who _removes_ nano from a system upon install, I would never do that to beginw ith.
rrbrussel wrote:I quit using sudo when I noticed subversion creating a root owned .svn directory under my users ~/ directory, when layman updated some overlays using subversion. I figured that if subversion or sudo was going to leave root owned configuration files under my personal ~/ tree I might as well su - to root.
I would have suggested to read the manual about stuff like, say,

Code: Select all

sudo -i
.
You want to know what I'm working on right now? Just follow my blog.
Top
rrbrussell
n00b
n00b
User avatar
Posts: 65
Joined: Mon Jun 21, 2004 7:33 pm
Contact:
Contact rrbrussell
Website

Post by rrbrussell » Tue Oct 06, 2009 10:11 pm

Flameeyes wrote:
rrbrussell wrote:Sudo should probably depend on nano directly and not virtual/editor. I would also add some einfo documentation to the ebuild saying that the <2MB of storage nano requires when built with normal use flags probably is only worth worrying about if you are using an embed system.
Given I'm the first person who _removes_ nano from a system upon install, I would never do that to beginw ith.
I understand not wanting to keep unused stuff around on the system, but, since sudo has a compiled in link to nano it should correctly depend on nano.
If someone overrides the choice for compiled in editor sudo should then sudo should depend on virtual/editor. The patch for the vanilla use flag attached to bug report seems to do this.

My other recommendation would be to add to sudo one use flag per editor and which editor sudo depends upon and has compiled in is determined by the use flags. I am willing to modify the sudo ebuilds to make support the single use flag per editor aproach, with some help from a developer.
Flameeyes wrote:
rrbrussell wrote:I quit using sudo when I noticed subversion creating a root owned .svn directory under my users ~/ directory, when layman updated some overlays using subversion. I figured that if subversion or sudo was going to leave root owned configuration files under my personal ~/ tree I might as well su - to root.
I would have suggested to read the manual about stuff like, say,

Code: Select all

sudo -i
.
The sudo man page does not seem as dense as I remember it being.
Top
Flameeyes
Retired Dev
Retired Dev
User avatar
Posts: 189
Joined: Wed Mar 30, 2005 3:22 pm
Location: London, Europe
Contact:
Contact Flameeyes
Website

Post by Flameeyes » Tue Oct 06, 2009 10:18 pm

rrbrussell wrote:I understand not wanting to keep unused stuff around on the system, but, since sudo has a compiled in link to nano it should correctly depend on nano.
If someone overrides the choice for compiled in editor sudo should then sudo should depend on virtual/editor. The patch for the vanilla use flag attached to bug report seems to do this.

My other recommendation would be to add to sudo one use flag per editor and which editor sudo depends upon and has compiled in is determined by the use flags. I am willing to modify the sudo ebuilds to make support the single use flag per editor aproach, with some help from a developer.
No, see, you probably haven't read my post with all the explanation of the thing, or you wouldn't be going on about this after I gave a definitive answer to this.

Please drop it. You also said you don't use sudo, so stop caring, and stop keeping on wasting others' time.
You want to know what I'm working on right now? Just follow my blog.
Top
kernelOfTruth
Watchman
Watchman
User avatar
Posts: 6111
Joined: Tue Dec 20, 2005 10:34 pm
Location: Vienna, Austria; Germany; hello world :)
Contact:
Contact kernelOfTruth
Website

Post by kernelOfTruth » Tue Oct 06, 2009 11:16 pm

Flameeyes wrote: I would have suggested to read the manual about stuff like, say,

Code: Select all

sudo -i
.
thanks Diego !

I've been looking for this kind of behavior since years ! :lol:

(and have always neglected to read man :roll: )


I'm not really using sudo on a regular basis but good to know how it works / how to initiate :)
https://github.com/kernelOfTruth/ZFS-fo ... scCD-4.9.0
https://github.com/kernelOfTruth/pulsea ... zer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Top
gentoo_lan
l33t
l33t
User avatar
Posts: 891
Joined: Wed Sep 08, 2004 12:45 am
Location: Charles Town, WV

Post by gentoo_lan » Tue Oct 06, 2009 11:49 pm

Reported and this thread needs to be locked.
Top
desultory
Bodhisattva
Bodhisattva
User avatar
Posts: 9410
Joined: Fri Nov 04, 2005 6:07 pm

Post by desultory » Wed Oct 07, 2009 5:56 am

gentoo_lan wrote:Reported and this thread needs to be locked.
While the [post=6000473]post[/post] you [post=6000570]reported[/post] is arguably argumentative, I do not consider it to be cause to lock this topic, much less ban Flameeyes, though that is best argued [topic=795975]elsewhere[/topic].
Top
rrbrussell
n00b
n00b
User avatar
Posts: 65
Joined: Mon Jun 21, 2004 7:33 pm
Contact:
Contact rrbrussell
Website

Post by rrbrussell » Wed Oct 07, 2009 7:04 am

Flameeyes wrote:
rrbrussell wrote:I understand not wanting to keep unused stuff around on the system, but, since sudo has a compiled in link to nano it should correctly depend on nano.
If someone overrides the choice for compiled in editor sudo should then sudo should depend on virtual/editor. The patch for the vanilla use flag attached to bug report seems to do this.

My other recommendation would be to add to sudo one use flag per editor and which editor sudo depends upon and has compiled in is determined by the use flags. I am willing to modify the sudo ebuilds to make support the single use flag per editor aproach, with some help from a developer.
No, see, you probably haven't read my post with all the explanation of the thing, or you wouldn't be going on about this after I gave a definitive answer to this.

Please drop it. You also said you don't use sudo, so stop caring, and stop keeping on wasting others' time.
What I got from your post was
  • People really need to offer to help fix things when they make bug reports. I completely agree with this one.
  • The default editor is nano because it is assumed to be there. Again, I agree.
  • Sudo is told to respect the EDITOR and VISUAL environmental editors and I managed to miss an obvious point in the sudo man page.
  • The default editor can be changed, but, not by the usual means of changing a compiled in feature in Gentoo.
  • Fixing the default editor would require more work than you have time available right now.
The current setup does work well for most people. However, some people would like to remove nano from their system or systems. But, sudo currently has a hidden dependency on nano. This dependency can sometimes bite those who remove nano, through either a misunderstanding of how sudo works or a misconfiguration of sudo.

I have seen five methods suggested for solving the bug of sudo trying to call a non existant nano.
  • Change the sudo ebuilds to depend on nano directly. This solves only the hidden dependency and does not allow the user to remove nano. This also unnecessarily limits the freedoms of users.
  • Change the sudo ebuilds to import an external environmental variable during build time. A hack pure and simple.
  • Change the sudo ebuilds to install a configuration file that always keeps the EDITOR variable set. This only guarantees that sudo will not call nano unless the default EDITOR variable is in effect or the user resets their EDITOR variable back to nano.
  • Change the sudo ebuilds to build with nano as the default editor and depend on nano. Then add use flags for each command line editor in portage to the sudo ebuild. If one of these new use flags is set then sudo will use that editor as its default and depend on that editor. I would also install a configuration file set to preserve the EDITOR variable.
  • Implement the /usr/libexec/gentoo-editor script Flameeyes suggested.
I suggest either methods 5, 4, or 3 because I think they would solve or come the closest to solving the problem. I am also willing to work with any developer to implement these changes or changes that might be required after more eyes look at this. I also will have to start using sudo here in the next couple of weeks so I do have an interest in solving this.

I am also so an optimist who thinks a reasonable solution/compromise can be found. If someone has a technical reason, not just lack of man power, that any of these solutions might not work please make a mention of it with details.
Top
SamuliSuominen
Retired Dev
Retired Dev
Posts: 2133
Joined: Fri Sep 30, 2005 8:38 am
Location: Finland

Post by SamuliSuominen » Wed Oct 07, 2009 8:12 am

You guys don't seem to realize that without Diego you would be using vulnerable sudo from 2006 and by forcing his hand on such a ridicilous issue he's not intrested it maintaining it anymore.

Thanks for ruining it for everyone. :(
Top
Flameeyes
Retired Dev
Retired Dev
User avatar
Posts: 189
Joined: Wed Mar 30, 2005 3:22 pm
Location: London, Europe
Contact:
Contact Flameeyes
Website

Post by Flameeyes » Wed Oct 07, 2009 8:55 am

rrbrussell wrote:
  • …
  • Implement the /usr/libexec/gentoo-editor script Flameeyes suggested.
This is exactly what we're doing already, ulm went ahead and started working on such a script.

As I said, I really have no intention on forcing any particular editor upon users; the reason why sudo could (and should!) use nano without an explicit depend is that it's the Gentoo “default” editor (read the link for further details, and if something is still not clear feel free to ask there).

The main lesson to be learned here (for more than a couple of people it seems) is: “developers don't usually ignore users unless they have a reason to; and they tend to be more productive when they are not forced into repeating, or defending, themselves”. And if you don't understand the reason for something, rather than insisting you know the best way, the most common way to get actual results is to ask.
You want to know what I'm working on right now? Just follow my blog.
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

Post by Anon-E-moose » Wed Oct 07, 2009 10:44 am

ssuominen wrote:You guys don't seem to realize that without Diego you would be using vulnerable sudo from 2006 and by forcing his hand on such a ridicilous issue he's not intrested it maintaining it anymore.
I can't say that I blame him.
I wouldn't put up with what he did.
It's not like he's being paid to do it.

Anyway, there are those of us out here who do appreciate what you do and have done Diego 8)
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
kernelOfTruth
Watchman
Watchman
User avatar
Posts: 6111
Joined: Tue Dec 20, 2005 10:34 pm
Location: Vienna, Austria; Germany; hello world :)
Contact:
Contact kernelOfTruth
Website

Post by kernelOfTruth » Wed Oct 07, 2009 11:42 am

Anon-E-moose wrote:
ssuominen wrote:You guys don't seem to realize that without Diego you would be using vulnerable sudo from 2006 and by forcing his hand on such a ridicilous issue he's not intrested it maintaining it anymore.
I can't say that I blame him.
I wouldn't put up with what he did.
It's not like he's being paid to do it.

Anyway, there are those of us out here who do appreciate what you do and have done Diego 8)
++
https://github.com/kernelOfTruth/ZFS-fo ... scCD-4.9.0
https://github.com/kernelOfTruth/pulsea ... zer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Top
baaann
Guru
Guru
Posts: 558
Joined: Mon Jan 23, 2006 4:36 am
Location: uk

Post by baaann » Wed Oct 07, 2009 11:45 am

Anon-E-moose wrote:
ssuominen wrote:You guys don't seem to realize that without Diego you would be using vulnerable sudo from 2006 and by forcing his hand on such a ridicilous issue he's not intrested it maintaining it anymore.
I can't say that I blame him.
I wouldn't put up with what he did.
It's not like he's being paid to do it.

Anyway, there are those of us out here who do appreciate what you do and have done Diego 8)
++
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

Post by Sadako » Wed Oct 07, 2009 10:31 pm

I don't know if this has been suggested in this thread already, but what about modifying the sudo ebuild to hardcode the value of something like "${SUDO_EDITOR}" if defined, otherwise default to nano, so if a user doesn't want it to default to nano they can set something like SUDO_EDITOR="/bin/vi" in make.conf?

Then you could even add an ewarn or einfo if SUDO_EDITOR isn't defined but nano isn't installed.

More and more ebuilds seem to using something like this, ie optional variables in make.conf specific to the one package...

And tbh, I do think rrbrussell has a point wrt nano being a dependency of sudo with the current ebuilds, and it would be trivial for anyone to add nano to package.provided if they really doesn't want it installed.

Just my worthless 2¢ is all...
"You have to invite me in"
Top
Flameeyes
Retired Dev
Retired Dev
User avatar
Posts: 189
Joined: Wed Mar 30, 2005 3:22 pm
Location: London, Europe
Contact:
Contact Flameeyes
Website

Post by Flameeyes » Wed Oct 07, 2009 11:02 pm

Okay, now, please, everybody stop proposing changes that have no reason to be considered at all.

My blog post explain everything and no further change will happen. The editor script will cover everything and you can finally stop proposing solutions that have no use at all beside increasing complexity and thus waste the time of the maintainer (i.e.: most likely, still me).

If I really have to put up with so many suggestion (tons of variables, no-defaulting at build-time even though the runtime behaviour is already customizable to the detail, or absurd dependencies), then yeah, of course I'm going to drop the package and leave whoever wants to pick it up to pick it up. Given that nobody beside me stepped up after Tavis left, I'm curious who's going to be at that point. Especially taking into consideration this sheer amount of pointless commentaries.

Because yes, this is just pointless. No I'm not going to add a new variable, there's no need for that, three at runtime are already quite enough; no I'm not going to add a dependency over nano, there's no more dependency over nano in sudo than there is already in baselayout/openrc; no I'm not going to add a truckload of USE flags just because you like to set them; there is no need for that; no I'm not going to do anything beside completing the gentoo-editor script that Ulrich already started and using that.

Given that, as some other people have reminded here, I'm not paid by anybody to do this I could really have just ignored all requests from the beginning; what I'm trying to do instead is, for goodwill, trying to explain slowly to everybody that there is no compelling reason to do anything beside the fact that I don't like the change that was forced on sudo against my (the maintainer's) will.

So if you still think my post explaining the sudo non-issue doesn't cover something, feel free to ask, not go around proposing overcomplex solutions to problems that don't exist; and if you think that nano should be a dependency please re-read the other post. If you still cannot formulate a question of a non-covered note, but you still would make a suggestion, re-read and repeat until you can first come up with a question. Either this or I should start charging for every commit I make…
You want to know what I'm working on right now? Just follow my blog.
Top
Locked
  • Print view

77 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • Next

Return to “Gentoo Chat”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy