From owner-freebsd-questions@FreeBSD.ORG Thu Jan 20 23:38:07 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82ABF16A4CE for ; Thu, 20 Jan 2005 23:38:07 +0000 (GMT) Received: from mail-core.space2u.com (mail-core.space2u.com [62.20.1.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id A628D43D45 for ; Thu, 20 Jan 2005 23:38:06 +0000 (GMT) (envelope-from jd@dagerot.com) Received: from localhost (www-core.space2u.com [62.20.1.180]) by mail-core.space2u.com (8.13.3/8.13.2) with ESMTP id j0KNc3tM007836; Fri, 21 Jan 2005 00:38:03 +0100 Date: Fri, 21 Jan 2005 00:38:03 +0100 Message-Id: <200501202338.j0KNc3tM007836@mail-core.space2u.com> MIME-Version: 1.0 From: "Joachim Dagerot" To: "Michael C. Shultz" Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit cc: freebsd-questions@freebsd.org Subject: Re: "Too many open files" (Critical, have only one session left) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2005 23:38:07 -0000 >> I have got it before and took appropriate steps using the ideas and >> tips from you guys. Now I have it again: >> >> Current situation on my head-less system is that I do have a single >> SSH session up. Unfortunately it's not authenticated as ROOT but as >> an ordinary user. >> >> When I try a "ls" I get : >> >> $ ls >> ls: .: Too many open files in system >> >> Trying a su gives: >> $ su >> /usr/libexec/ld-elf.so.1: Cannot open "/usr/lib/libutil.so.3" >> >> >> I have a fairly huge RAID-5 system thatdislikes a power shutdown so I >> rather want to reboot the machine manually. I certainly need som help >> here and also more help on how to avoid this problem in the future. >> >I don't remember a previous message from you, but here is a link you >may find helpful: > >http://www.onlamp.com/pub/a/bsd/2002/09/26/Big_Scary_Daemons.html?page=1 Good tip, unforunately I can't even run fstab: $ su /usr/libexec/ld-elf.so.1: Cannot open "/usr/lib/libutil.so.3" I seam to be stucked. Is there a way to do a su for a specific program. I can't run 'su' but when I try shutdwon: $ shutdown -r now -bash: /sbin/shutdown: Permission denied Looks like it's possible to run shutdown if I only hade the right permission...