Some questions about limits.conf and suid.
From: Sukbum Hong (antihong@tt.co.kr)Date: 08/20/01
- Previous message: Dave Vehrs: "RE: Firewalling"
- Next in thread: Rajeev Kumar: "Re: Some questions about limits.conf and suid."
- Reply: Rajeev Kumar: "Re: Some questions about limits.conf and suid."
- Reply: Seth Arnold: "Re: Some questions about limits.conf and suid."
- Reply: Wayne Walker: "Re: Some questions about limits.conf and suid."
- Reply: José Luis Domingo López: "Re: Some questions about limits.conf and suid."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Message-ID: <002301c12972$fee95680$2e402fd3@tt.co.kr> From: "Sukbum Hong" <antihong@tt.co.kr> To: <focus-linux@lists.securityfocus.com> Subject: Some questions about limits.conf and suid. Date: Mon, 20 Aug 2001 21:24:01 +0900
Hello, all.
I have two questions about linux security.
(1) Anyone who knows the difference between two permissions?
First is 4411 and second is 4511.
and they have no difference using as I know.
-r-S--x--x 1 root root 13536 /usr/bin/passwd
-r-s--x--x 1 root root 13536 /usr/bin/passwd
(2) According to the lots of manuals, when one would like to limit user's
available resources (memory, process etc...) , he should edit the
/etc/pam.d/login file and add the following line to the bottom of the file:
session required /lib/security/pam_limits.so
and setup like this in /etc/security/limits.conf file.
* hard rss 5000
as you know, this means "restrict memory usage just to 5M for the non-root user.
But it doesn't work well as I test. I coded some script which use all available memory.
When I execute that script in non-root user, the script use all memory(over 200M) though
I restricted just 5M like above.
But "ulimit" command is works well.
What's the problem?
Thanks in advance.
Regards.
- Previous message: Dave Vehrs: "RE: Firewalling"
- Next in thread: Rajeev Kumar: "Re: Some questions about limits.conf and suid."
- Reply: Rajeev Kumar: "Re: Some questions about limits.conf and suid."
- Reply: Seth Arnold: "Re: Some questions about limits.conf and suid."
- Reply: Wayne Walker: "Re: Some questions about limits.conf and suid."
- Reply: José Luis Domingo López: "Re: Some questions about limits.conf and suid."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|