sfox | I need help. I've set custom values in /etc/security/limits.conf for nofile, but no matter which terminal I open the softlimit is 2014 and hard is 4096 | 00:05 |
---|---|---|
sfox | also weirdly, upon setting a new limit hard is capped to that new limit even if it's significantly lower than the previous hard or soft | 00:05 |
sfox | if I login via a tty the limits as reported by prlimit and ulimit -n | 00:05 |
sfox | are correct | 00:06 |
sfox | but if I use any terminal started by the display mamanger, it's soft1024hard4096 | 00:06 |
sfox | no matter what | 00:06 |
sfox | I don't see anywhere else in limits.conf or limits.d where a nofile directive is that would conflict | 00:06 |
sfox | I have this set | 00:07 |
sfox | _steam hard nofile 50000 | 00:07 |
sfox | _steam soft nofile 60000 | 00:07 |
sfox | @users soft nofile 7000 | 00:07 |
sfox | @users hard nofile 10000 | 00:07 |
sfox | also interestingly, the correct limits do show up when i do su -l tom -s /bin/bash | 00:15 |
rwp | It sounds like you have not logged out of your display manager yet and it still has the previous limits. | 00:16 |
rwp | It is expected that "su -l" would show the new limits as su, sudo, /bin/login, sshd, others all are setting up a new login and do initializations. | 00:17 |
rwp | It has been a time honored technique when adding groups for example to "exec su - $USER" to get the new groups in that terminal, as opposed to logging all of the way otu and back in again. | 00:18 |
rwp | Not sure why you would need "-s /bin/bash" there though... Does "tom" not have a login shell that allows login? | 00:18 |
rwp | That's needed when the login shell is /usr/sbin/nologin for example "www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin" | 00:19 |
sfox | it does have a shell | 00:22 |
sfox | I'll restart slim again but it didn't seem to work last time | 00:23 |
sfox | brb | 00:23 |
sfox | ok that worked but it's still not picking up the varibles when logging in as other users | 00:29 |
sfox | $ doas -u _steam /bin/bash | 00:29 |
sfox | $ prlimit still reports tom's limits instead of _steam's limits | 00:29 |
rwp | To be honest the multitude of ways things get set through all of the different paths confuses me because they keep changing how and where. | 00:30 |
rwp | Because there is also /etc/login.defs too, and there is /etc/pam.d/* which messes with things. And they keep changing from release to release. | 00:30 |
sfox | oh no :< | 00:31 |
sfox | this is like configuring vlans on mikrotik devices | 00:31 |
sfox | there's 35 ways to do it and their all kludged and differ depending on which device you have | 00:31 |
rwp | Hahaha! But in reality it is better. We do have the source and ability to debug through all source if it comes to it. | 00:31 |
rwp | I just know that limits need to be set at the earliest process that limits them. And then they are inherited from that point down the parent-child process tree. | 00:33 |
Kitty | is there any good documentation on how to automatically install devuan machines ? | 16:34 |
ted-ious | Probably about the same procedure as debian machines. | 16:36 |
ted-ious | Like vagrant. | 16:37 |
Kitty | does vagrant do the install and everything? | 16:52 |
ted-ious | I think it depends on what you're trying to install. | 17:00 |
ted-ious | Like it can't put the cd in a system and hit enter for you. :) | 17:00 |
ted-ious | But vm's are different. | 17:01 |
Kitty | looks like preseed is what I'm looking for | 17:05 |
ted-ious | That's a new one to me. | 17:15 |
ted-ious | I'm only half joking when I say that this project looks like a social engineering experiment to see if they can convince people to curl https://github.com/author/repo/thing.sh | bash. | 17:32 |
ted-ious | Because it sure does look like that's what you do to run it. | 17:32 |
ted-ious | Oops wrong channel. | 17:33 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!