Re: crashtar



Mikolaj Golub schrieb am 2009-10-10:

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.

alright then. :)

again: great script. would be great to have this in the ports dir in the near
future.

cheers.
alex
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: crashtar
    ... this is a cool script and very useful indeed. ... want to do is check for root privileges at the beginning to avoid nasty error ...
    (freebsd-hackers)
  • Re: root privileges from cgi script?
    ... >I am trying to find a way to run certain commands from a cgi script, ... >normally require root privileges. ... I require for a staff member to be able to initiate a backup script ... >I would welcome any suggestions on how to do two things from a CGI script; ...
    (comp.unix.shell)
  • Re: crontab & gnome-schedule do not run bash script
    ... The executable you are invoking is OpenOffice Writer, ... cron jobs are normally executed with root ... so even if cron starts a script ... with root privileges. ...
    (comp.unix.shell)
  • Re: crashtar
    ... Mikolaj Golub wrote: ... In some cases you might not need root privileges. ... script had a check for root privileges I would not be able to use it. ... Although the awk error message is sufficient some people might find this ...
    (freebsd-hackers)
  • Re: crashtar
    ... In some cases you might not need root privileges. ... script had a check for root privileges I would not be able to use it. ... some problems with accessing crash dump files, so permissions should be ...
    (freebsd-hackers)