Einschränkungen mit Limits.conf
-
- Posts: 125
- Joined: 2003-09-28 13:34
Einschränkungen mit Limits.conf
Hallo,
ich würde gerne einem Benutzer den RAM einschränken. Ich habe zu testzwecken einen Eintrag in die /etc/security/limits.conf gemacht:
hans - memlock 0
damit sollte es doch nicht möglich sein überhaupt irgend eine Anwendung des Nutzers zu starten. Es funktioniert aber dennoch.
Was ist hier falsch?
Danke!
André
ich würde gerne einem Benutzer den RAM einschränken. Ich habe zu testzwecken einen Eintrag in die /etc/security/limits.conf gemacht:
hans - memlock 0
damit sollte es doch nicht möglich sein überhaupt irgend eine Anwendung des Nutzers zu starten. Es funktioniert aber dennoch.
Was ist hier falsch?
Danke!
André
-
- Userprojekt
- Posts: 7066
- Joined: 2002-10-09 14:30
- Location: Dorsten
Re: Einschränkungen mit Limits.conf
Ist das zuständige PAM-Modul denn überhaupt aktiv?
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
-
- Posts: 125
- Joined: 2003-09-28 13:34
Re: Einschränkungen mit Limits.conf
gute Frage,
wie kann ich das aktivieren?
wie kann ich das aktivieren?
-
- Userprojekt
- Posts: 7066
- Joined: 2002-10-09 14:30
- Location: Dorsten
Re: Einschränkungen mit Limits.conf
Code: Select all
grep pam_limits /etc/pam.d/*
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
-
- Posts: 125
- Joined: 2003-09-28 13:34
Re: Einschränkungen mit Limits.conf
Code: Select all
/etc/pam.d/cron:# session required pam_limits.so
/etc/pam.d/login:session required pam_limits.so
/etc/pam.d/ssh:session required pam_limits.so
/etc/pam.d/su:session required pam_limits.so
-
- Project Manager
- Posts: 11164
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: Einschränkungen mit Limits.conf
Code: Select all
grep -i UsePAM /etc/ssh/sshd_config
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
- Project Manager
- Posts: 11164
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: Einschränkungen mit Limits.conf
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
- Posts: 125
- Joined: 2003-09-28 13:34
Re: Einschränkungen mit Limits.conf
denke das dies alles bei mir passen sollte, woran könnte es noch liegen? Idee?
-
- Project Manager
- Posts: 11164
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: Einschränkungen mit Limits.conf
Code: Select all
hans hard memlock 0
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
- Posts: 125
- Joined: 2003-09-28 13:34
Re: Einschränkungen mit Limits.conf
hab ich auch schon versucht :( aber trotzdem kein Limit.
-
- Posts: 561
- Joined: 2003-02-01 13:14
- Location: Fuldatal
Re: Einschränkungen mit Limits.conf
Kommt derjenige über ssh rein? Dann sollte "UsePAM yes" in deiner sshd_config stehen und der daemon nach einer Änderung neu gestartet werden.
hth
hth
-
- Posts: 125
- Joined: 2003-09-28 13:34
Re: Einschränkungen mit Limits.conf
steht drin :( läuft trotzdem nicht.