libera/#maemo/ Tuesday, 2018-09-18

sixwheeledbeastI think pastebin looks normal but it has been a while.11:30
KotCzarnymaybe he just needs some if [ -f ... ]; then rm ...; fi in installation script11:33
KotCzarnyusers are easily scared of error messages11:33
sixwheeledbeastflopswap creates it's own sudoers IIRC there is update preinst and postinst due to some compatibility between flopswap versions and upstart version. flopswap needs to know which version of upstart due to differences.11:34
KotCzarnyi'm just commenting on that single rm line in pastebin11:35
KotCzarnyunless he confirms flopswap doesnt work or something11:35
sixwheeledbeastI felt at the time that, echo "try to remove previous file" was enough to justify the rm: no file exists.11:37
sixwheeledbeastI agree it would be nicer11:41
sixwheeledbeastLooking at your pastebin again i would say that ssh would be my first guess at your sudo issue.11:44
DocScrutinizer05UMMM  >> Remove sudoers Update sudoers<<15:59
DocScrutinizer05are you sure this does the right thing[TM]?16:00
DocScrutinizer05I guess when anybody would remove sudoers on my system, I'd prolly fetch the sledgehammer ;-D Unless this script is WAY smarter than the diagnostic output suggests16:01
DocScrutinizer05for sure my recent sudoers is not compatible with a braindead remoce&&replace script16:02
DocScrutinizer05not saying the actual flopswap was braindead in that regard, I didn't look into it16:03
DocScrutinizer05just saying my sudoers prolly look quite different than what you might have expected, and replacing them by a (modified) default version might cause havoc16:04
DocScrutinizer05actually maemo5 sudoers is a tricky critter since it doesn'T yet support sudoers.d/* genuinely and instead runs a script ... ... which is exactly what might produce the diagnostic output quoted above16:06
DocScrutinizer05so maybe it's the OP ( <{-0-}> ?) who messed up sudoers by editing the /wtc/sudoers file in a way they better had not?16:07
DocScrutinizer05W*T*F?????  >>Installing new version of config file /etc/event.d/avahi-daemon<<16:09
DocScrutinizer05sixwheeledbeast: there are TWO "Remove sudoers" in flopswap context. I think that's one too many16:12
DocScrutinizer05line 41 and line 6116:12
DocScrutinizer05in pastebin16:13
sixwheeledbeastSee above, I can't recall reason but I had to deal with compatibility between flopswap versions and upstart versions.16:17
sixwheeledbeastflopswap only touches a flopswap.sudoers file IIRC16:27
sixwheeledbeastcertainly not replacing any systems files with a stock version like seen in other packages.16:34
DocScrutinizer05maybe a former flopswap version did, though?16:50
sixwheeledbeastline 41 is version 0.1.9 postrm and line 61 is version 0.2.4 postinst.16:50
sixwheeledbeastno16:50
DocScrutinizer05hmm, I wonder what happens when two instances of update_sudoers run concurrently16:51
DocScrutinizer05prolly disaster16:51
sixwheeledbeastI can't see how that could happen, debian install scripts are ran sequentially16:53
DocScrutinizer05no idea if update_sudoers spawns an async process17:31
DocScrutinizer05anyway the most plausible cause in my book is >>maybe it's the OP ( <{-0-}> ?) who messed up sudoers by editing the /wtc/sudoers file in a way they better had not?<<17:32
DocScrutinizer05it's a known and seen frequently problem that users unaware of update-sudoers (and ignoring the warnings in /etc/sudoers) run into fubar sudoers after next time update-sudoers is running17:34
* {-0-} comes from Slackware... sudo is the land of the unknown :D No, I hadn't, still haven't and won't edit sudoers19:37
KotCzarnydont lie. sudo is essential in slack too19:37
{-0-}true, it's there. "su -" once then do all your root stuff rather than typing 5 extra chars on every command19:39
KotCzarnyyes, till you shoot yourself in the foot19:39
{-0-}that's part of learning :)19:40
KotCzarny(although i have root terminal open, so i'm guilty too)19:40
KotCzarnybut sudo is still important19:41
KotCzarnyfor the user, and for misc. system scripts19:41
{-0-}root shell with different colour prompt from the user shell works here *touch wood*19:43
KotCzarnyyou need to knock on wood. touching your wood is teens fun19:55
{-0-}Ah, the US version of the phrase! Unless of course this stuff gives you a woody which case... */me edges away from KotCzarny*21:52

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!