Date: Fri, 7 Dec 2012 00:36:38 +0400 From: Vagner <vagner@bsdway.ru> To: Charles Swiger <cswiger@mac.com> Cc: FreeBSD questions Mail List <freebsd-questions@freebsd.org> Subject: Re: Login class and limit Message-ID: <20121206203638.GA4540@vagner-wrk.bsdway.ru> In-Reply-To: <37A52274-D877-4AED-82F3-CF058DEC9DBE@mac.com> References: <20121206143201.GB42583@vagner-wrk.bsdway.ru> <37A52274-D877-4AED-82F3-CF058DEC9DBE@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 06:53 Thu 06 Dec , Charles Swiger wrote: > Hi-- > > On Dec 6, 2012, at 6:32 AM, Vagner <vagner@bsdway.ru> wrote: > > Hi all! > > I need help configuring limits for users at FreeBSD 8.3. > > I set next options and parametrs at login.conf(5): > [ ? ] > > > >> # sudo -u daemon limits > >> Resource limits (current): > >> cputime infinity secs > > > > but: > > > >> # su - daemon -c 'limits' > >> Resource limits (current): > >> cputime 5 secs > > > > Why? And how can i running process without su(1) to apply limits for > > my user class? > > "su -", "su -l", and "sudo -i" provide a login shell, which gets the > limits setup by login.conf. Normally daemons are started at boot > via rc mechanism (or perhaps get spawned from inetd) and do not > have a login shell associated with them to setup the limits. > > Either use one of the su/sudo flavors I mention above, or "/bin/sh -l" > to provide a login env to the process? > > Regards, > -- > -Chuck > > ie means to implement restrictions limits(1) and login.conf(5) for daemons is not possible? -- Respectfully, Stanislav Putrya System administrator FotoStrana.Ru Ltd. ICQ IM: 328585847 Jabber-GoogleTalk: root.vagner mob.phone SPB: +79215788755 mob.phone RND: +79525600664 email: vagner@bsdway.ru email: putrya@playform.ru email: root.vagner@gmail.com site: bsdway.ru site: fotostrana.ru ---------------------------------------- ( ) ASCII ribbon campaign X - against HTML, vCards and / \ - proprietary attachments in e-mail
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121206203638.GA4540>