Date: Tue, 2 Jun 1998 12:23:23 +0200 (CEST) From: Dirk-Willem van Gulik <dirk.vangulik@jrc.it> To: freebsd-questions@FreeBSD.ORG Subject: FreeBSD-Questions: Crontab seems to give shell different limits than the normal user Message-ID: <Pine.BSF.3.96.980602121105.3453O-100000@elpc36.jrc.it>
next in thread | raw e-mail | index | archive | help
On 2.2.6-stable it seems that when a user has a script ran by crontab, the shell in which the script runs seems to be assigned lower limits (by /etc/login.conf??) than when you run it from the command line directly. Looking at the source for cron however suggest a simple setgroups() so where am I going wrong; >From the command line: (sh ulimit -a) cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 524288 stack size (kbytes, -s) 65536 core file size (512-blocks, -c) 0 max memory size (kbytes, -m) 65536 locked memory (kbytes, -l) 65536 max user processes (-u) 8211 open files (-n) 16424 >From the crontab: cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 22528 stack size (kbytes, -s) 8192 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) 30720 locked memory (kbytes, -l) 10240 max user processes (-u) 1024 open files (-n) 1024 But I've no idea how and where to fix this; as the user is firmly in the 'right' group; and that group has the right permissions specified in login.conf; or is there some meta grouping done for cron as it is a deamon ? Any ideas ? Dw 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?Pine.BSF.3.96.980602121105.3453O-100000>