Skip to content

This is not in the sudoers file. This incident will be reported

I installed arch and forgot to include wheel group in sudoers file. And it displayed this message saying this is not in the sudoers file. This incident will be reported. Who does it report to? Am I being tracked?

Sorry if the answer of this question is obvious, but I don't know the answer

EDIT - For those looking for a short answer, here it is. For those looking for a deeper explanation, read the comments

EDIT2 - Thanks for the awards

Edited 26 Aug 2021. We only hold this version.

281 points54 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
281 · 90% up
Kind
Text
ID
pbead8

Author

43
posts
56
comments
2
media
View profile

59 comments

301 points

Every time I see this message, I imagine some poor sob somewhere who gets called into the boss's office, and then gets interrogated for two hours about why they tried to run a command as root.

71 points

The alt text is great too (as always)

He sees you when you're sleeping, he knows when you're awake, he's copied on /var/spool/mail/root, so be good for goodness' sake.

33 points

Who does it report to?

This guy.

Actual answer:

Who does it report to?

It sends an email to the root user on your system.

If you have some package that provides the sendmail program (i.e. a MTA like postfix, exim, or msmtp-mta), it'll be used to send the email. How and where it gets delivered depends on the MTA's config (e.g. it might deliver locally to /var/mail, or forward via SMTP to your personal Gmail, or whatever). The same feature is used by Cron to deliver cronjob outputs.

If you don't have any sendmail program (by default on Arch you don't), then I think sudo just directly writes the email to the traditional /var/mail/root spool file, but it could also be that it goes nowhere at all.

(Debian for example includes exim4 by default, so mail for local users actually goes to /var/mail by default. If you've ever seen bash print a "You have mail" at the prompt, it's checking that file.)

All of this goes back to the days of large multi-user Unix systems, when email was kinda part of the system and not an "app" like now – your Unix account was your email account, etc.

250 points

So I actually just received and reviewed the report. I'm not sure if I can allow you to keep using this operating system. If you write a letter of apology I may be lenient in my judgement.

85 points

it goes directly to the cyber police. straight to jail.

68 points

Do not pass Golang do not collect response code 200?

18 points

Someone else who did have root access added alias cd="sudo cd" to /etc/profile? Straight to jail

5 points

yes 'usermod -g 2Jail user'.

If a user doesn't alias ls='ls -la' in .bashrc believe it or not... straight to jail

4 points

Well no, no one is tracking you, now you can breath I guess

Ok now we speak what happened. When you run sudo as a non privileged user. The attempt to run 'sudo' command will be reported to the administrator of the specific pc which in this case I guess you're both the administrator (often mentioned as root), also the non privileged user. The message will be in /var/log/messages

27 points

Log into root and edit the sudoers file, there's an arch page for this

But beware, this angers the sudoer's file, I'd watch your back after this.

16 points

Not related to your questions but if you like things minimal and simple, you may consider using opendoas instead of sudo. However, some programs still need sudo so you need to sym link sudo to doas.

6 points
unknown author

Deleted before we saved it.

6 points

I don't understand 'forgot to include wheel group'

When I install sudo it creates a sudoers file that always contains these references to wheel

## Uncomment to allow members of group wheel to execute any command
# %wheel ALL=(ALL) ALL
## Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL

Does your sudoers file not contain these?

5 points

I ran "useraddd -mg wheel user" and made a password for it

when I typed forgot to include wheel group I mean that I forgot to include the wheel group in sudo privileges. I forgot to uncomment the line in short.

10 points
unknown author

Deleted before we saved it.

1 points

So did you make a root account? If so login to root and add the wheel group to the sudoers file.
If not chroot form the install media and add the wheel group to the sudoers file.

1 points
unknown author

Deleted before we saved it.

1 points

It just makes note of it so a sys admin can check to see whos trying to use sudo.

1 points

So THAT’S why Microsoft actually started sending Linux kernel patches!

1 points
unknown author

Deleted before we saved it.

-1 points

Is this a shitpost

-29 points

Seems more like a beginner asking for help.

I don't really see the issue with that, we all start somewhere.

20 points

Proof right here that Arch's primary audience is non-technical.

-32 points

It's not a competition lol... Besides it's not a need to know thing for the vast majority of users.

20 points

I know it's not a competition. For somebody installing Arch I would expect some understanding of the Linux permissions model.

-16 points

We all need to start somewhere. It's called going outside your comfort zone and learn new things.

8 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.