libera/#devuan/ Tuesday, 2021-08-10

systemdletehow do I control or view the power settings for wifi?05:01
systemdletehmmm.. pm-utils?05:06
masonsystemdlete: Generally the iw* tools. iwconfig, probably iw05:11
masonI don't know the newer tools, but check the man pages for all of them.05:11
masonExample: https://unix.stackexchange.com/questions/269661/how-to-turn-off-wireless-power-management-permanently05:11
systemdletehow can I write a rule for udev to turn off the power saver?   I tried this:06:13
systemdleteACTION=="add", SUBSYSTEM=="net", KERNEL=="wlan*" RUN+="/usr/sbin/iw dev %k set power_save on"06:14
systemdletebut that gives an error when I run it with udevadm test06:14
rrqwhich error?06:21
rrqthe missing comma before RUN ?06:24
onefangI'm having issues with root running a program as another user.  The exact same sudo command runs fine when running it as a user that has sudo rights.  su and runuser tell me the user I'm trying to run the program as isn't a sudoer.06:26
onefangroot@Superbitch:/opt/opensim_SC-DG# runuser opensimsc whoami06:27
onefang/usr/bin/whoami: /usr/bin/whoami: cannot execute binary file06:27
onefangroot@Superbitch:/opt/opensim_SC-DG# runuser -u opensimsc /home/opensimsc/runGrid.sh06:27
onefangopensimsc is not in the sudoers file.  This incident will be reported.06:28
onefangSame for -l, and same for su versions.06:28
rrqthat first example lacks -u  .. just a mistake here?06:32
rrqrunuser opensimsc whoami  .. should be: runuser -u opensimsc whoami06:33
rrqother: is opensimsc a sudoer ?06:34
onefangI gave examples with and without -u.06:37
onefangopensimsc isn't a sudoer, but I though these commands was for root to run, and run the argument as the given user.06:38
onefangman runuser doesn't mention sudoer at all.06:38
rrq"runuser -u blah foo" runs foo as user blah ... if foo is a script using sudo then that gets invoked as user blah06:39
onefangIn theory yes, in practice nope.06:40
rrqwhich ... runuser or script/sudo ?06:40
onefangIt's not running anything as the specified user.06:41
rrqwell, it sets the effective user of the process to be that user regardless of whether the user has a login shell or not06:41
onefangrunuser -u opensimsc bash06:41
onefangThat works.  lol06:42
onefangI was hoping to avoid yet another layer.  I guess I can do runuser -l opensimsc bash -c "actualprogram"06:43
rrqIf the option -u is not given, runuser falls back  to su-compatible  semantics and  a  shell is executed06:43
rrqsays the man page :)06:43
onefangrunuser -u opensimsc /home/opensimsc/runGrid.sh06:45
onefangopensimsc is not in the sudoers file.  This incident will be reported.06:45
onefangYou would think, huh?  lol06:45
systemdleterrq:  I fixed that.  Actually, I just found out I can run a preconnect script in wicd.  I'm doing that now06:46
systemdleteonefang in BIIIIIG trouble...06:48
systemdlete(he's been reported!)06:48
onefangReported to myself.  lol06:48
systemdletestill06:49
rrqmmm onefang runs as root to run a user that runs as root ...06:50
onefangNo, I'm trying to get root to run a user that DOESN'T run as root and has no special prigiledges, so I can run the command from /etc/rc.local06:51
onefangAh start-stop-daemon is behaving better for this task.06:56
onefangOr not, it's giving me exactly the same bullshit sudo did in the first place.  lol07:08
onefangOK, one extra level of bash it is then.  Pffft07:17
rwpUse "su -" to switch user to root, add yourself to the sudo group as root "adduser myusername sudo" (while there add the "adm" and "staff" groups too) then log out and log back in again and sudo will work.07:57
rwpAnd being in the adm group then you can look at /var/log/* log files without needing root too.  Since then you will be in the adm group on your system.08:00
rwponefang, Both start-stop-daemon and su need to be started from root already so that they can switch user to the non-root non-privileged account.08:01
rwpUsing start-stop-daemon is useful if one is also using pidfiles and/or if someone wants to kill the process using a pidfile though.08:03
rwpIf not then su is generally the traditional approach.  I was never really sure of the advantage of runuser.08:04
onefangThe problem isn't ME being in the sudo group.  The problems was trying to sudo (as root) to the other user, who isn't in the sudo group, and should not be in that group08:17
onefangAdding an extra level of bash -c to what I was trying to run solved the problem.08:19
onefangManaged to cut it down to just two recursive bash -c.  lol08:26
systemdleteonefang:  What about sudo, using the -u (and maybe -g) options to set the user, group?  Just wondering08:53
onefangsudo -u is what ended up working, just with one more bash -c in front of the actual program.09:06
rwpWho is the initial sudo -u being run from?  Root or non-root?09:23
onefangroot09:30
onefangThe exact same sudo command worked fine when done as my usual user.  Doing it as root needed the extra bash -c in front of it.  shrugs09:32
onefangWorks now, moved on.09:32
spike1Hello, has anyone managed to get FVWM running on Beowulf? I installed Beowulf without a GUI  and booted into a terminal session. Then I installed FVWM. When I run 'startx' it crashes the machine and I have to reboot. The error that the X server displays is 'Xf86EnableIOPorts: Failed to set IOPO for I/O (operation not permitted)'.20:44
rwpspike1, Do you have xserver-xorg-legacy installed?  I think that might be required.  Not sure though.20:50
nemohttps://lists.opensuse.org/archives/list/kernel@lists.opensuse.org/thread/PI44AW623CFLV3RRJPPZEIKDXN6QS5WI/  will this commit make it into chimæra?20:51
rwpspike1, I am always running with xserver-xorg-legacy due to other reasons.  I am running i3 but previously ran fvwm and think both have similar requirements.20:52
spike1rwp, yes, I do have xserver-xorg-legacy installed. Interestingly, as I was typing this on another machine I issued 'startx' again and it actually did start after a minute or  so. Normally, FVWM should start almost instantaneously. So now I am investigating what is causing the delay.20:58
rwpspike1, That does sound like an exact timeout of some sort.21:04
spike1rwp, yes, I was able to inspect the log now that it was actually saved. The delay is 30 seconds, according to the logfile.21:05
rwpMost of my Devuan systems are headless servers.  Three of the rest are running XFCE.  My fvwm system is, ahem, not yet running Devuan so don't know.  Sorry.21:07
rwpnemo, Isn't that just a stable kernel patch?  In which case all of those should flow through without problem.21:07
spike1I am suspecting that it *might* have something to do with domain name resolution. The machine does not have access to a network and I might be trying to resolve some names before timing out. I am not sure how to disable that.21:10
rwpTraditionally distros have used localhost.localdomain as a completely offline but consistent naming strategy.21:11
rwpBut you could put an override for whatever names you are using in /etc/hosts21:11
nemorwp: yeah. I was just a bit unclear as to whether it was just going to be in ubuntu or not21:14
nemorwp: looks like it was an OpenSuSE patch that got pushed last year after ubuntu declared stable LTS - I just didn't know how that worked with chimæra21:14
nemowhen the cutoff was21:14
nemorwp: and then, since it wasn't tagged (according to ubuntu kernel team) as fixes/cc:stable it got overlooked until the launchpad bug report last year21:15
nemoer21:15
nemolast *month*21:15
nemohm... but since I'm on 5.10 in chimæra already, I guess that probably means this got picked up just fine21:15
rwpThere is no cutoff time for security patches.  Those flow through the security suite.  But if it is a feature patch then I don't know.  But it is pretty late in the release cycle for features to be added.21:15
nemorwp: well... basically, if the remote windows machine reboots, the cifs module crashes21:16
nemoand only fix we'd found so far was rebooting linux21:16
nemocouldn't unload the cifs module and reload it21:16
nemoit was pretty annoying since there was one windows machine used in dev that got rebooted a lot21:17
rwpThat does seem to be a good candidate then.21:17
nemoso it killed linux pretty easily without that patch21:17
nemorwp: yeah, I was more just wondering if it was already in there or not21:17
nemomaybe I need to talk to the debian team21:17
nemobut figured I'd ask in channel I was more comfortable in first21:17
nemolike where in kernel history is chimæra right now.21:17
nemowould it have a standard patch from last august21:17
rwpWell...  I am not the right person to talk to about kernel patches.  I am just another kernel user.  I suggest looking a little deeper.21:19
rwpFor one you could test the chimaera kernel out and see if it suffers from the problem or not.  That's probably the best way to really know.21:20
nemoew21:20
nemofar preferable to check the revisions and RTFS 😃21:20
nemohm hm21:20
nemolessee who here would know where the chimæra kernel comes from21:21
* nemo looks at fsmithred hopefully21:21
fsmithred?21:22
fsmithrednemo,  can you summarize?21:23
nemohttps://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/fs/cifs/connect.c?id=a52930353eaf443489a350a135c5525a4acbbf5621:23
nemo^^^ is this commit in chimæra21:23
fsmithredno clue21:23
fsmithredwe use debian kernels21:23
fsmithredunchanged21:23
fsmithredis it a security patch?21:23
nemohm. ok. so I need to find... debian buster?21:23
nemofsmithred: it fixes a crasher if remote windows machine reboots a cifs mount.  we hit it about once a day right now forcing linux reboot21:24
nemobut. not on the devuan machines yet, since they don't have long-term cifs mounts yet21:24
nemoI was just trying to be proactive ☺21:24
nemobut. I don't think it was tagged as security21:24
fsmithredgo to salsa.debian.org, find the official linux-image archive and start reading commit messages or changelog21:25
fsmithredI guess21:25
nemowheee 😃21:25
nemook21:25
nemokernel-team I suppose21:26
nemohm.21:26
nemofsmithred: so... buster right?21:26
fsmithredbuster=beowulf21:27
fsmithredwell...21:27
nemooh. doh21:27
fsmithredbuster > beowulf21:27
fsmithredno!21:27
fsmithreddamn dyslexia21:27
fsmithredbeowulf > buster!21:27
debdoghrrhrr21:27
fsmithredkernel team sounds good21:28
nemooh. actually. duh. none of our servers are on chimæra yet - they are all beowulf.  sooo odds are probably pretty good that by the time chimæra is released, this will have made it into upstream debian21:28
nemofsmithred: so... sid?21:29
nemobut maybe I should just not worry about it21:30
nemoeh. bullseye I guess21:30
fsmithredsid/ceres and bullseye/chimaera all have the same kernel now, I think21:30
fsmithred5.1021:31
nemo5.10 was released last december, so this patch prooobably made it in21:31
fsmithredit seems like something that they would port to older kernels21:31
nemoI'll just keep an eye out for it once chimæra is released21:32
nemofsmithred: oh. yeah. definitely. ubuntu just didn't notice, and I guess they don't use the debian kernel.21:32
fsmithredat this point, we're just getting the bugs out of installer and live isos and desktop theme21:32
fsmithredanyone who is running chimaera is very happy with it21:33
nemoyep. I have it on all the machines at home21:33
nemojust haven't moved the servers at work21:33
fsmithred:)21:33
brocashelmcorrect, both chimaera and ceres use 5.10. will be interesting once bullseye is released with more recent packages right this moment21:40
brocashelmas buster/beowulf were 4.1921:40
onefangKernel 5.10 is in beowulf backports.  I use it on my desktop for recent AMD GPU support.23:19
brocashelmnice23:21

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