libera/#devuan/ Sunday, 2018-06-03

KatolaZagl: you should be fine then00:13
aglKatolaZ: It works ... slim does also work ... Thank you!00:24
aitorhi00:32
NewGnuGuyhello aitor00:36
KatolaZagl: good00:37
aitorKatolaz: late for you00:39
aitorrunit + vdev =  40 seconds boot time00:45
g4570nhi aitor00:46
aitorhi00:46
g4570naitor #devuan-mx00:47
aglgood bye ... I'am going to bed01:31
agrishello10:49
agrisi've got a fresh Devuan ASCII install here10:50
agriscan't user the useradd utility10:50
agrisuseradd: cannot lock /etc/passwd; try again later10:50
muep_how are you trying to use it?10:50
agristhing is, nothing is using /etc/passwd right now according to lsof10:51
agrisand the root filesystems is writable10:51
jaromilmmmm, haven't tried to use useradd... strange10:51
agrisuseradd -b /var/mc -c "Minecraft Daemon" -r -R /var/mc -s /bin/rbash -U minecraftd10:51
jaromilshould work10:52
agris__Should__10:52
agrisi i ran the command with strace10:53
agrisopen("/etc/.pwd.lock", O_WRONLY|O_CREAT|O_CLOEXEC, 0600) = -1 ENOENT (No such file or directory)10:53
agrishowever even though the kernel appears to be reporting /etc/.pwd.lock does not exist10:54
agrisit does10:54
muep_is it doing a chroot?10:54
agris-rw------- 1 root root 0 Jun  3 00:17 /etc/.pwd.lock10:54
agrisno, i'm running useradd as uid010:54
muep_but you are using -R /var/mc10:55
agrisand lsof does not report any process has the lockfile opened10:55
muep_it sounds like it something that would first chroot into /var/mc and then try to change things10:55
agristhat's the user's chroot10:55
agrisnot root's chroot10:55
agrisright?10:56
muep_I have never heard of useradd being able fully set up a chroot for a user10:56
jaromilthe -R flag applies all changes in files present inside that directory, so will look for /var/mc/etc/passwd10:56
muep_to me it sounds like -R is there just for being able to manipulate users in a chroot without having to install useradd into the chroot10:57
agrisoh, i didn't know chroot could automagiclly setup a chroot for it's operation. i thought you had to do that manually first10:57
jaromilman says "use the conf files from the CHROOT_DIR (-R)"10:57
muep_this does not really automagically set up anything10:57
agristhanks10:58
jaromilyes, presumes you have already a chroot setup there10:58
jaromilwell, thanks anyway for reporting if there would be such a bug at this point (RC close to final) I guess we'd know it, but there are never enough eyes on these things :^)10:59
agriswhile i'm here might as well talk about another potential bug with RC11:00
agrisi've been using it on a work desktop and personal laptop11:00
agrisi've noticed on the laptop, i set it to lock when resuming from suspend or screensavor11:00
agrishowever when i open my laptop back up it does not lock for 2 seconds.11:01
agrisduring those 2 seconds anyone is free to click or type things into my session11:01
muep_sounds a bit as if it does not wait for the locking to complete before going to suspend state11:02
agrisafter 2 seconds are up the screen goes to the Xscreensaver login11:02
jaromilI use suspend a lot too with xscreensaver lock and simply do the lock *before* suspend11:02
jaromilso it comes back locked11:02
agrisi would assume so11:02
agrisi usually just close my lid11:03
agrisrun off to the next meeting and open it back up11:03
agrisis this fixable via a config tweak?11:03
jaromiloh, I cannot debug this since i use my own script rather than the lid's trigger11:03
agriseg, wait 3 seconds before entering suspend11:04
agrisstate11:04
jaromil... not sure where those lid triggered scripts are myself11:04
muep_waiting three seconds is quite unreliable because it assumes that the suspend will actually complete during that time11:05
agrismuep_, no, that's just to wait for the locking script to run11:05
muep_e.g. if the system has a workload competing for disk access, the locking could take more than three seconds11:05
agriswait for the lock script to give a return code before swithing states?11:06
agrisoh and another thing, the rc-config utility is missing from ASCII and jessie OpenRC11:07
muep_yes if completion of the locking script indicates that the screen is really locked11:07
agriswhile other utilties could be used to supplement the missing rc-config utility's functionality it really is not ideal11:08
muep_I do not know how it really works in devuan's default setup or with xscreensaver in general, but I would not be surprised if the script just exists right after sending some message through some IPC channel to the xscreensaver daemon11:08
muep_s/exists/exits11:08
agrisWhat's the best way to implement no shell for a user?11:28
agrisshould i just write a small helloworld-like C program that printf shell access is not permitted, and add it to /etc/shells or is there a specific way of doing that for devuan?11:29
agrisi noticed /bin/false was not in /etc/shells11:29
muep_you could just not set a password for the account11:32
agrisyeah, but that wouldn't do much for daemon accounts11:32
agriswhere init can just su - daemonaccount11:33
agrisi want to be able to launch an executable as a certain user and not have the executable be able to access anything11:33
muep_even if you set its shell configuration to some non-sense shell, it could run su - daemonaccount -c bash11:34
agrisso even if it gets hacked, it can't spawn a native bash shell or access the rest of the system11:34
agrisnot in a chroot11:34
muep_if it is in a chroot that does not have shells available, it does not matter much what you have for it in /etc/passwd outside the chroot11:35
muep_but normally if someone has an "execute arbitrary code over network" exploit for your service, it can use that to copy in a bash executable (or some smaller shell, or any other program) and then fork+exec that11:37
agrisyeah, but that is pretty unlikely unless it's a targeted attack11:38
agrisand they would have to compile it for a certain executable11:38
agrisand pretty detectable11:38
agrisif bash was a child process of httpd i'd be pretty worried11:38
muep_AFAIK it can do a few forks and become a child process of init11:39
agrisor if bash showed up anywhere under the httpd user11:39
muep_but of course it would then usually be running as www-data11:40
muep_I'm getting lost with if you are running a httpd or some minecraft service11:40
agrisRight now i'm just isolated a minecraft server, but used httpd for simple example purposes11:41
muep_httpd is not a very simple example because it has some security mechanisms of its own11:42
muep_like, you normally start the main process as root but then the daemon itself manages a transition to a safer user that processes data from network11:43
agrisinit forks a daemon proccess as a different user11:44
muep_typically a program like a game server daemon would not have that built-in. there the usual thing would be to directly start them as non-privileged11:44
agristhe daemon transitions form root to non-root is only needed for low port numbers11:44
agrisminecraft uses port 25565 so it does not need a root process to bind any ports for it11:45
muep_it would also be needed for many other things, like if the daemon has its own mechanism for setting up a chroot or other confined environment for parts of the service11:46
muep_but indeed your minecraft service likely does not need anything like that11:47
jonadab\/w 5612:25
ibanjaWhat Version Control System do Devuan developers use? I am asking because I want to use one for my personal scripting needs, and was curious to see what Devuan chose.17:15
gnarfacethey're using git17:24
gnarfaceeveryone's using git these days17:24
gnarfacehttps://git.devuan.org/17:25
muep_even if devuan did choose something else, indeed "everyone" is using git17:27
fbtWell it's not the most popular for completely no reason17:33
fbtBut I'd look into the existing ones and figure out which one fits your use-case better17:33
fbtMigrating isn't that much of a pain for personal shit17:34
fbtTry things17:34
muep_I'd mostly suggest using something non-git if you already are comfortable with it but still want something else17:35
muep_especially if the motivation for asking is to be able to participate more in the community that writes free software17:36
ibanjahad to step away... I was thinking of using git too.17:51
ibanjaanybody tried bazaar?17:51
muep_yes. it is slow and unmaintained and has fewer features than git17:52
ibanjamuep_ you mention non-git... anything specific in mind?17:53
muep_mercurial is quite reasonable17:53
ibanjasubversion?17:53
muep_I don't like subversion much also otherwise, but then you additionally need to run a server for it if you intend to use your version control on multiple computers17:54
ibanjamercurial is the one I haven't looked into... I'll have to check it out.17:54
muep_I'd think subversion is one of those options where you would be worse off than with bzr17:54
ibanjaMy use case is one user on multiple computers17:54
ibanjaas in I might be on my laptop or desktop17:55
muep_with either multiple users or multiple computers, it makes sense to pick a distributed VCS17:55
muep_because otherwise you'd tend to need a server. and if you had a subversion server, you would be unable to commit when you are offline on your laptop17:56
ibanjaok... good point. I've seen that stated while googling.17:57
muep_I sometimes use RCS for single-file things because it is so cute and simple17:58
muep_but it's not really made for multiple files that belong to the same logical whole, and it is sometimes difficult to predict if I end needing to split a single-file program into multiple files17:59
ibanjalooks like I should just go with git.18:00
muep_going with git is often the easy way forward, just because there are so many people using it18:01
ibanjaI have been using rsync with hard links, but it's a bit tedious18:01
muep_you can use a simple ssh server for synchronising the repos on your laptop and desktop, and there are services that you can use for it18:02
ibanjayes.18:02
ibanjathanks for the input18:03
ibanjanow to google for a good git tutorial... :) I've only use it minimally18:04
mubarakibanja: Lynda.com - Git Essential Training18:14
xrogaanerr23:08
xrogaanSo, there is no snapd for devuan?23:08
xrogaan> https://packages.debian.org/stretch/snapd23:08
xrogaan'cause some software in the repository are buggy and I need a newer version.23:08
* xrogaan slowly remembers why he preferred archlinux some years back.23:09
xrogaanaaah, snapd requires systemd. Damn it all! Damn it all to hell!23:09
fsmithredok, this is weird - I see snapd in ascii with auto.mirror, but not with pkgmaster23:11
xrogaanoh. Right, that is weird. I am on pkgmaster.23:12
xrogaanfsmithred: any idea why that would happen?23:20
fsmithredxrogaan, I don't know the inner workings of amprolla to understand it, but the two repos use different versions.23:22
fsmithredauto.mirror/packages uses the original amprolla, pkgmaster uses amprolla323:23
fsmithredI guess v3 has a better filter23:23
xrogaanshould I switch to auto.mirror?23:24
xrogaanyou know, it would be helpful to have the list of mirrors easily accessible from the website.23:25
golinux<fsmithred> I guess v3 has a better filter23:26
golinuxThis ^^^23:26
golinuxxrogaan: https://beta.devuan.org/get-devuan23:27
xrogaanthanks <323:27
golinuxMaybe not the mirrors you're talking about23:27
xrogaanindeed23:30
xrogaanheh: http://dpaste.com/11D6YCG23:32
fsmithredpkgmaster is better. switching to auto.mirror would not enable you to install snapd.23:33
fsmithredoh, I see you got the same message23:34
xrogaanno, on pkgmaster snapd wouldn't be present.23:38
xrogaansnapd can't work without systemd I presume.23:38
xrogaanauto.mirror.devuan.org (2001:41d0:8:2c55::a2) < takes forever to answer :/23:45
xrogaanis it even online?23:46
fsmithredI'm getting hits on auto.mirror when I update23:49
xrogaanthe ipv6 address do not seem to be configured.23:51
xrogaanipv4 works just fine.23:52

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