From owner-freebsd-questions Tue Jun 2 03:22:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA26150 for freebsd-questions-outgoing; Tue, 2 Jun 1998 03:22:42 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mrelay.jrc.it (mrelay.jrc.it [139.191.1.65]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA26145 for ; Tue, 2 Jun 1998 03:22:37 -0700 (PDT) (envelope-from dirk.vangulik@jrc.it) Received: from elpc36.jrc.it (elpc36.jrc.it [139.191.71.36]) by mrelay.jrc.it (LMC5688) with ESMTP id MAA11054 for ; Tue, 2 Jun 1998 12:22:32 +0200 (MET DST) Received: (from dirkx@localhost) by elpc36.jrc.it (8.8.7/8.8.7) id MAA11103; Tue, 2 Jun 1998 12:23:23 +0200 (CEST) (envelope-from dirkx) Date: Tue, 2 Jun 1998 12:23:23 +0200 (CEST) From: Dirk-Willem van Gulik X-Sender: dirkx@elpc36.jrc.it Reply-To: Dirk-Willem van Gulik To: freebsd-questions@FreeBSD.ORG Subject: FreeBSD-Questions: Crontab seems to give shell different limits than the normal user Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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