Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #212741

Re: revise the /etc/security/limits.conf doesn't take effect for normal user.

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups linux.debian.user
Subject Re: revise the /etc/security/limits.conf doesn't take effect for normal user.
Date 2019-08-13 15:20 +0200
Message-ID <yuESu-2nn-7@gated-at.bofh.it> (permalink)
References <ytMS5-qm-1@gated-at.bofh.it> <ytSb7-4Wn-1@gated-at.bofh.it> <yuiIj-4R4-35@gated-at.bofh.it> <yuqFP-1CL-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Aug 12, 2019 at 09:58:14PM +0000, Hongyi Zhao wrote:
> On Mon, 12 Aug 2019 15:40:03 +0200, Greg Wooledge wrote:
> 
> >  You
> > could start by telling us which DM it is (lightdm, gdm3, sddm, etc.).
> 
> gdm3
> 
> And I don't know to let the limits take effect within this environment.

I don't either.

First thing you can do is look for a file like /etc/pam.d/gdm3 (or possibly
/etc/pam.d/gdm), and see if it contains the pam_limits.so line.  If
it doesn't, then you know it isn't reading /etc/security/limits.conf
file, and your first step would be to add the pam_limits.so line.
VERY carefully, after reading all of the PAM documentation.

If it does contain this line, then perhaps you can try running a standard
Debian X session instead of a GNOME session.  Pick your favorite regular
window manager that is NOT part of a desktop environment, put that in
your ~/.xsession file, login with a Debian session, open a terminal, and
see if the limits are correct.  Then remove the ~/.xsession file (or
restore it to whatever it was before) to go back to the way things were
before, if you still want to.

If the limits are correct in a terminal executed by a regular window
manager inside a Debian session, then you know the PAM stuff is working
correctly.  If they're NOT correct inside a terminal executed by dbus
inside a GNOME session, then you have some more digging to do.  It's
possible that they're working just fine in other pieces of your GNOME
session, just not in terminals.  It's possible that you may or may not
care about terminals, or that you may or may not care ONLY about terminals.
You're not exactly giving us much detail here.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

revise the /etc/security/limits.conf doesn't take effect for normal  user. Hongyi Zhao <hongyi.zhao@gmail.com> - 2019-08-11 05:40 +0200
  Re: revise the /etc/security/limits.conf doesn't take effect for  normal user. Emmanuel Gelati <emi2fast@gmail.com> - 2019-08-11 11:20 +0200
    Re: revise the /etc/security/limits.conf doesn't take effect for  normal user. Greg Wooledge <wooledg@eeg.ccf.org> - 2019-08-12 15:40 +0200
      Re: revise the /etc/security/limits.conf doesn't take effect for   normal user. Hongyi Zhao <hongyi.zhao@gmail.com> - 2019-08-13 00:10 +0200
      Re: revise the /etc/security/limits.conf doesn't take effect for   normal user. Hongyi Zhao <hongyi.zhao@gmail.com> - 2019-08-13 00:10 +0200
        Re: revise the /etc/security/limits.conf doesn't take effect for  normal user. Greg Wooledge <wooledg@eeg.ccf.org> - 2019-08-13 15:20 +0200
      Re: revise the /etc/security/limits.conf doesn't take effect for   normal user. Hongyi Zhao <hongyi.zhao@gmail.com> - 2019-08-13 00:10 +0200

csiph-web