Date: Fri, 17 Sep 1999 23:53:03 -0400 (EDT) From: Spidey <beaupran@jsp.umontreal.ca> To: Freebsd Questions Mailing list <freebsd-questions@freebsd.org> Subject: Limiting core dumps for users Message-ID: <14307.3231.325388.238041@freed.dyn.ez-ip.net>
next in thread | raw e-mail | index | archive | help
Hi!
By the login.conf manpage, if I do this:
default:\
[...]
:coredumpsize=0:\
[...]
It will forbid users from doing core dumps. Am I right?
If I am, why does this 'classless' user can do this:
bash-2.03$ cat > core.c
/* do a coredump */
int main( int argc, char** argv) {
int *i = 0;
i[0] = 1;
}
bash-2.03$ gcc core.c -o core
bash-2.03$ ./core
Segmentation fault (core dumped)
bash-2.03$ ls -l core*
-rwxr-xr-x 1 marc guest 3084 Sep 17 23:18 core
-rw-r--r-- 1 marc guest 82 Sep 17 23:18 core.c
-rw------- 1 marc guest 266240 Sep 17 23:19 core.core
bash-2.03$
Why isn't it working?
If I'm wrong, how can I forbid users from making coredumps???
My searches on the mailing lists where unfortunatly vain.
Thanks, and by the way that 3.3 release is really a charm. (well at
least 3.3-stable.. :))
With XFree86 3.3.5, I'm in a dream... :)) I'm running:
FreeBSD freed.dyn.ez-ip.net 3.3-RC FreeBSD 3.3-RC #16: Fri Sep 10
21:09:10 EDT 1999
spidey@freed.dyn.ez-ip.net:/usr/src/sys/compile/HALL i386
which.... hum... is supposed to be -stable, but I think is the
'pre-release' am I right? What is -RC?
thanks again for this incredible OS.
Ants.
--
Si l'image donne l'illusion de savoir
C'est que l'adage pretend que pour croire,
L'important ne serait que de voir
Lofofora
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14307.3231.325388.238041>
