Results 1 to 8 of 8

Thread: sudo: ... This incident will be reported.

  1. #1
    Join Date
    Jan 2005
    Location
    South Africa
    Beans
    2,098
    Distro
    Ubuntu 12.04 Precise Pangolin

    sudo: ... This incident will be reported.

    Code:
    fortyfourgalena@desktop1:~$ sudo fdisk -l
    [sudo] password for fortyfourgalena: 
    fortyfourgalena is not in the sudoers file.  This incident will be reported.
    fortyfourgalena@desktop1:~$
    Where? In Slackware a mail is send to the root user. However I don't know where to look for it in Ubuntu. As the mail package is not installed by default, it does not make sense that it's mailed.

    PS OS is 8.04, in case it matters
    If you don't make backups of your important data, your data is obviously not important to you.

  2. #2
    Join Date
    May 2007
    Beans
    302

    Re: sudo: ... This incident will be reported.

    Try this thread.

    http://ubuntuforums.org/showthread.php?t=65815



    Opps! I posted this to the wrong thread. Sorry!
    Last edited by ghostborg; February 3rd, 2011 at 02:03 AM. Reason: Opps

  3. #3
    Join Date
    Apr 2009
    Location
    Midwest, U.S.A.
    Beans
    1,209
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: sudo: ... This incident will be reported.

    I agree with the OP's logic, but what you're looking for might be:

    Code:
    sudo apt-get install mail
    or in the folder /var/mail/
    Laptop: Dell Inspiron 8200 - Fedora 13 - Goddard
    Desktop: Self-Built - [Ku, Lu, Xu, U]buntu - Lucid 10.04.3 (LTS)
    Linux User: 498249 / Ubuntu User: 29241

  4. #4
    Join Date
    Sep 2007
    Location
    over there
    Beans
    2,521
    Distro
    Ubuntu

    Re: sudo: ... This incident will be reported.

    Quote Originally Posted by ghostborg View Post
    ghostborg: did you read the opening post? That link has got nothing to do with the OP's question.

    OP: I'd also like to know the answer to your question. I just carried out an experiment: I logged in as a non-sudoer, tried to run the sudo command, and got the same dire warning: "This incodent will be reported". Then I logged in as root and checked the system mail (mailx is installed on this machine). But there was no mail reporting the incident to me.

    I'm gonna have a poke around as root, see if the report is somewhere else. I'll report back any findings.

    EDIT: I found it!!! I logged into my usual user account (the one that I created when I installed Hardy on this machine) and checked my mail - and there it was!

    Code:
    t0p@phobos:~$ mail
    Mail version 8.1.2 01/15/2001.  Type ? for help.
    "/var/mail/t0p": 3 messages 3 new
    >N  1 newsletter@blogcr  Fri Nov 06 11:00  553/27689 BC/Technorati Newsletter #2
     N  2 ubuntu-uk-request  Fri Nov 06 11:00  511/17165 ubuntu-uk Digest, Vol 55, I
     N  3 piratex@phobos     Fri Nov 06 12:26   18/644   *** SECURITY information fo
    & 3
    Message 3:
    From piratex@phobos Fri Nov 06 12:26:31 2009
    Envelope-to: root@phobos
    Delivery-date: Fri, 06 Nov 2009 12:26:31 +0000
    To: root@phobos
    Auto-Submitted: auto-generated
    Subject: *** SECURITY information for phobos ***
    From: Long John Silver <piratex@phobos>
    Date: Fri, 06 Nov 2009 12:26:30 +0000
    
    phobos : Nov  6 12:26:29 : piratex : user NOT in sudoers ; TTY=tty1 ; PWD=/home/piratex ; USER=root ; COMMAND=/bin/bash
    So there you go. Install a system mail program (mailx is the one I installed) and the report is sent to your main user's mailbox.
    Last edited by t0p; November 6th, 2009 at 01:36 PM.
    "All people are scum. No matter what they look like." ~ Spider Jerusalem, Transmetropolitan #4



  5. #5
    Join Date
    Nov 2006
    Location
    Germany
    Beans
    852
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Re: sudo: ... This incident will be reported.

    I guess such things will be logged to /var/log/messages or to one of the other logfiles in /var/log
    watch out where the huskies go
    and don't you eat that yellow snow (Zappa)

    http://www.youtube.com/watch?v=YGZ5isu23ow
    http://www.youtube.com/watch?v=xPsnLUaXyxE

  6. #6
    Join Date
    Jan 2005
    Location
    South Africa
    Beans
    2,098
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: sudo: ... This incident will be reported.

    Thanks for the replies and sorry for the late feedback.

    Nothing to be found unless I'm blind. I ran a grep -R on my (admin's) home directory, on root's home directory and on /var/log .

    I understand that I can install the mail package but that's beside the point. If it says that it will be reported, it should be reported or it should keep its mouth shut.

    If somebody else has a clever idea or a different experience, please let me know.
    If you don't make backups of your important data, your data is obviously not important to you.

  7. #7
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: sudo: ... This incident will be reported.

    it's logged to /var/log/auth.log:
    Code:
    grep "user NOT in sudoers" /var/log/auth.log

  8. #8
    Join Date
    Jan 2005
    Location
    South Africa
    Beans
    2,098
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: sudo: ... This incident will be reported.

    Thanks, I should have used better search criteria with grep
    If you don't make backups of your important data, your data is obviously not important to you.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •