From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 10 13:43:07 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D39F1065672 for ; Sat, 10 Oct 2009 13:43:07 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-ew0-f218.google.com (mail-ew0-f218.google.com [209.85.219.218]) by mx1.freebsd.org (Postfix) with ESMTP id 8F5198FC0C for ; Sat, 10 Oct 2009 13:43:06 +0000 (UTC) Received: by ewy18 with SMTP id 18so1772232ewy.43 for ; Sat, 10 Oct 2009 06:43:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:cc:subject:references :organization:from:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=PmjM5X8t0ydRx8Kg226bHUxD2lnuZKA/GezqLLyVJ+8=; b=Fb7STiVQYIvv99HedlUjx4PpgQQZiJCZm7qBVtpU/GuLdLF86lS+qidr/HT1r8F6P/ M6SsiUx7EwefalgptW2eP0g9VuLJKs28kUuIG4CCMUJ4zX+8fEpObE3dSpcTFF/w1n5t vbaiI1MuSD9VS4K8tyX5614wsLRwEOVDJYF/4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:cc:subject:references:organization:from:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=AvO+WvWg5cWS/FLqXSoM9/1z+kZ4c6UMisc5b+HPxDnJjk/bZmbadtYKaG2ixapuGR JViaPDMZ8GuKDU7yepHmHrTNChbbIBngaiC/uGgnhwPBLE6uq8mPKgKNdrI8XCkDBSXB q5qQP2Wa/z50KOovbEBkuKrxoy5a044ignjOw= Received: by 10.210.152.4 with SMTP id z4mr4713879ebd.7.1255182185706; Sat, 10 Oct 2009 06:43:05 -0700 (PDT) Received: from localhost (vpn-195-69-246-94.customer.onet.com.ua [195.69.246.94]) by mx.google.com with ESMTPS id 5sm2351048eyh.10.2009.10.10.06.43.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 10 Oct 2009 06:43:04 -0700 (PDT) To: Alexander Best References: Organization: TOA Ukraine From: Mikolaj Golub Date: Sat, 10 Oct 2009 16:43:02 +0300 In-Reply-To: (Alexander Best's message of "Sat\, 10 Oct 2009 12\:34\:05 +0200 \(CEST\)") Message-ID: <86d44vqs9l.fsf@kopusha.onet> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-hackers@FreeBSD.org Subject: Re: crashtar X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Oct 2009 13:43:07 -0000 On Sat, 10 Oct 2009 12:34:05 +0200 (CEST) Alexander Best wrote: AB> thanks. this is a cool script and very useful indeed. only thing you might AB> want to do is check for root privileges at the beginning to avoid nasty error AB> messages like. AB> awk: can't open file /var/crash/info.0 AB> source line number 12 In some cases you might not need root privileges. E.g. on some servers I don't have root but SA gives me read access to crashdumps. In this case if the script had a check for root privileges I would not be able to use it. Actually as for me the message looks informative enough, it says that we have some problems with accessing crash dump files, so permissions should be checked. -- Mikolaj Golub