Setting resource limits works for SSH logins but not local logins
Hi there,
I followed the instruction of the link below to set up the resource limits for myself only (in sudo list): https://mapr.com/docs/52/AdvancedInstallation/SettingResourceLimitsOnUbuntu.html
Basically, add resource limits for the user in /etc/security/limits.conf, and
Additionally, I edited three files - /etc/pam.d/common-session* and /etc/pam.d/su, and add the following line to the end: session required pam_limits.so
However, this works for all SSH logins, but not for local logins (console) after log back or reboot. I use ulimit commands to check the changes.
Need your suggestions for this.
Thanks.
• 690 views
•
link
0 answers
No answers yet.
Log in to answer this question.
This is not a bioinformatics question, you may have better luck getting an answer on serverfault.
The manpage for limits.conf states that the limits are per login only. Not sure about it but you may also need to make sure that the pam_limits.so module is used (you may need to add it to /etc/pam.d/common-session).
I do added pam_limits.so module to /etc/pam.d/common-session, but still not working from local login, I do see the changes in /etc/security/limits.conf from local login, but just not sure which is missing to load pam_limits.so module for local login session.
On my machine, I also have common-session-noninteractive which may be also relevant.
Hello qinglong!
We believe that this post does not fit the main topic of this site.
This is not a bioinformatic topic. Please use other platforms like stackexchange.
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!
Thanks for your notes. I was running MaxQuant analysis for more than 500 metaproteome samples in Linux server, since this is functional genomics, I think people might meet this issue previously.