This forum is for the individual discussion thread that goes with each new comic.
Moderators: Moderators General, Magistrates, Prelates
by EradicateIV » Mon Jun 04, 2007 4:40 am UTC
It feels good fully understanding this comic now.
Yay bash!
1010011010
Our truth is only as good as our assumptions.
-

EradicateIV
-
- Posts: 361
- Joined: Mon Mar 19, 2007 7:33 pm UTC
- Location: Brownsville, PA
by DestinedCruz » Sat Jun 09, 2007 7:14 pm UTC
And I need that shirt, so very very very badly.[/img]
-
DestinedCruz
-
- Posts: 2
- Joined: Sat Jun 09, 2007 7:10 pm UTC
by dragonarcher8812 » Fri Jun 29, 2007 10:33 pm UTC
(05:48:28 PM) DragonArcher: error dropping privileges: Operation not permitted
(05:49:31 PM) Vicks: put sudo in front of it.
(05:49:56 PM) DragonArcher: sudo make me a sandwich
(05:50:02 PM) DragonArcher: sorry, hahaha had to say it
(05:50:13 PM) Vicks: That was so fucking dead on.
Vicks = my brother. He was helping me fix Amarok, and we had this conversation over Gaim. I love him.
-

dragonarcher8812
-
- Posts: 28
- Joined: Fri Jun 22, 2007 4:56 am UTC
by blockmar » Thu Nov 15, 2007 9:44 pm UTC
There is an alternative ending to this comic, if you are a bit lazy.
A: Make me a sandwich
B: No
A: sudo Make me a sandwich
B: You are not in sudoers. This incident will be reported.
xkcd is my favorite comic - just love it when Google Reader indicates a new comic in the feed. Thanks!
-
blockmar
-
- Posts: 2
- Joined: Thu Nov 15, 2007 9:37 pm UTC
by lachatte » Sat Dec 08, 2007 11:14 pm UTC
I feel all cool now that I got this joke, seeing as how many people didn't (and considering how many of the comics I don't quite get). I laughed way too long at this one. I was going to try using sudo on my husband to make him do something, but the opportunity didn't present itself quickly enough, so I broke down and just showed him the comic (which he also laughed at a lot).
-

lachatte
-
- Posts: 25
- Joined: Sat Dec 08, 2007 12:34 pm UTC
by enk » Sun Dec 09, 2007 1:29 am UTC
Could make for a fun bash history is you aliased 'please' to sudo.
Also, this comic is the epitome of win.
phlip wrote:Ha HA! Recycled emacs jokes.
-

enk
-
- Posts: 754
- Joined: Mon Sep 10, 2007 12:20 am UTC
- Location: Aalborg, Denmark
by tom333 » Fri Dec 14, 2007 6:42 am UTC
i had to find a definiton of sudo to get this one... im a windows-er and not all that great with computers, apart from being a user.... their still moderately black-box to me.... someone who also reads this told me to "pseudo make them a sandwich" ... and i was thinking "does that mean make you a fake sandwich? or a sandwich that is a demonstration of how sandwiches work or something??" it didnt make any sense... but he still seemed to find humour in it without understanding what the comic was about. i later explained the Super User do... thing to him... and he found it much funnier
This is my first ever sig.
also, i love you.
-

tom333
-
- Posts: 23
- Joined: Sat Dec 08, 2007 10:49 am UTC
by '; DROP DATABASE;-- » Sat Dec 15, 2007 5:14 am UTC
Hah, I never even noticed sudo <--> pseudo. Nice.
Also, the correct answer, according to GCC:
make: *** No rule to make target `me'. Stop.
poxic wrote:You suck. And simultaneously rock. I think you've invented a new state of being.
-

'; DROP DATABASE;--
-
- Posts: 3284
- Joined: Thu Nov 22, 2007 9:38 am UTC
- Location: Midwest Alberta, where it's STILL snowy
-
by e946 » Tue Jan 01, 2008 10:53 am UTC
I found this comic pasted up outside of one of the testbed doors in the CIS building at Argonne National Laboratory, along with a few others. I'd take a picture of it, but i'm pretty sure that's illegal.
Last edited by
e946 on Wed Jan 02, 2008 4:55 am UTC, edited 1 time in total.
-

e946
-
- Posts: 621
- Joined: Wed Jul 11, 2007 6:32 am UTC
by J Spade » Wed Jan 02, 2008 2:00 am UTC
Sitnaltax wrote:For the uninitiated: "sudo" is the Unix-style command for "execute this command as the superuser."
hence, SuperUser DO.
-

J Spade
- Luppoewagan
-
- Posts: 523
- Joined: Wed Apr 18, 2007 7:56 pm UTC
- Location: Up a creek without a paddle
-
by Graham » Tue Jan 22, 2008 10:54 pm UTC
Yay I finally "get" this comic after my first encounter with Damn Small Linux - which promptly blank screened me after the boot process (no, not blank with a command prompt). I feel so much more enlightened now (I also now understand the killer toaster comic), and I'm sure I'll get it working sometime probably with the use of sudo

Disclaimer: I cannot be held responsible for any harm you may come to as a result of reading my posts. You do so at your own risk.
-
Graham
-
- Posts: 9
- Joined: Sun Jan 06, 2008 2:16 am UTC
by ObsidianX » Thu Mar 20, 2008 3:25 am UTC
I got bored... decided to code this in a few languages:
C:
makemeasandwich.c- Code: Select all
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void){
char *my_user = getenv("USER");
if(strcmp(my_user, "root") == 0)
printf("Okay!\n");
else
printf("Make your own damn sandwich!\n");
return 0;
}
Java:
makemeasandwich.java- Code: Select all
class makemeasandwich {
public static void main(String[] args){
if(System.getProperty("user.name").compareTo("root") == 0)
System.out.println("Okay!");
else
System.out.println("Make your own damn sandwich!");
}
}
PHP:
makemeasandwich.php- Code: Select all
#!/usr/bin/env php
<?php
if(getenv("USER") == "root")
echo "Okay!\n";
else
echo "Make your own damn sandwich!\n";
?>
Python:
makemeasandwich.py- Code: Select all
#!/usr/bin/env python
import os
if os.geteuid() == 0:
print "Okay!"
else:
print "Make your own damn sandwich!"
Bash:
makemeasandwich.sh- Code: Select all
#!/bin/bash
if [ `id -u` == 0 ] ; then
echo "Okay!"
else
echo "Make your own damn sandwich!"
fi
You can run all of these as a sudoer as such:
- Code: Select all
$ ./makemeasandwich
Make your own damn sandwich!
$ sudo ./makemeasandwich
Okay!
Enjoy!
ObsidianX
-
ObsidianX
-
- Posts: 3
- Joined: Thu Mar 20, 2008 12:59 am UTC
by Editer » Tue May 20, 2008 3:38 pm UTC
From Xeni Jardin:

These days, if you don't have ADD, you not paying close enough attention. -- J.P. Barlow
-

Editer
-
- Posts: 62
- Joined: Mon Mar 31, 2008 4:17 am UTC
by Appity » Wed May 21, 2008 4:44 am UTC
DestinedCruz wrote:
And I need that shirt, so very very very badly.[/img]
How do I make the interaction of the console resemble the quoted image (make me a sandwich) rather than a few posts up where I actually execute a program (./makemeasandwich, or at best, make_me_a_sandwich) to get the desired result?
-
Appity
-
- Posts: 6
- Joined: Wed May 21, 2008 4:33 am UTC
by bridge » Wed May 21, 2008 8:24 pm UTC
Appity wrote:How do I make the interaction of the console resemble the quoted image (make me a sandwich) rather than a few posts up where I actually execute a program (./makemeasandwich, or at best, make_me_a_sandwich) to get the desired result?
- Code: Select all
me:
@if [ $(USER) == "root" ]; then echo ok; \
else echo "make it yourself"; fi;
a:
@echo >/dev/null
sandwich:
@echo >/dev/null
Copy this in a file named "Makefile"
then from the same directory try
- Code: Select all
$make me a sandwich
make it yourself
Excuse my Super Mario accent
-

bridge
-
- Posts: 195
- Joined: Sun Feb 03, 2008 2:24 pm UTC
- Location: Zurich < x < Rome
by Appity » Wed May 21, 2008 8:56 pm UTC
Thanks!
-
Appity
-
- Posts: 6
- Joined: Wed May 21, 2008 4:33 am UTC
by lowbart » Thu May 22, 2008 12:49 pm UTC
enk wrote:Could make for a fun bash history is you aliased 'please' to sudo.
Or "Would you kindly".
...a fish called the Henamo grunter, named because it makes grunting noises from its swim bladder.
v1nsai wrote:Yes, I'm Linux, how can I help you ma'am?
-

lowbart
-
- Posts: 668
- Joined: Sun Dec 09, 2007 10:00 pm UTC
- Location: northeastern USA
-
by Magilla » Thu Oct 23, 2008 2:11 pm UTC
They perceive my perambulations upon my gyroscopically-balanced personal transportation device, and have thus concluded that I am of Caucasian decent, and, while intelligent, I am also somewhat socially inept. - Peculiar Alfred
-

Magilla
-
- Posts: 478
- Joined: Wed Mar 19, 2008 11:28 pm UTC
- Location: Esperance, Western Australia
-
by sepharoth213 » Sat Jan 10, 2009 3:35 am UTC
did this for french class,

thought you might be interested to see it.
=]
-
sepharoth213
-
- Posts: 1
- Joined: Sat Jan 10, 2009 3:28 am UTC
by Shikuro22 » Sun Jan 11, 2009 12:17 am UTC
It makes WAY more sense now, specially to someone like me who's computing skill is -40.
Only two days after finding this site i saw a girl at my local station wearing the sandwich shirt!!!!!!
-
Shikuro22
-
- Posts: 2
- Joined: Sun Jan 11, 2009 12:04 am UTC
- Location: Chicken
by IHOPancake » Sun Mar 01, 2009 6:49 am UTC
82.7% of statistics are made up on the spot.
-
IHOPancake
-
- Posts: 35
- Joined: Fri Jan 23, 2009 2:29 am UTC
- Location: Case Western Reserve University
by scarletmanuka » Tue Mar 03, 2009 3:39 am UTC
Ctrl-Alt-Delete has
a different response to the sandwich request. Not as funny as xkcd's in my opinion.

-
scarletmanuka
-
- Posts: 508
- Joined: Wed Oct 17, 2007 4:29 am UTC
- Location: Perth, Western Australia
by nellim » Mon May 04, 2009 8:35 pm UTC
I've got in idea for one along the same lines. Its highly controversial. First you have the devil and a save person. The devil goes, "Your soul shall be mine!" and the save person goes, "No, I have been saved!" The devil grins. "sudo chmod 777," says the Devil. The saved person turns green. The devil laughs, "Your soul is now mine!!!" "No Microsoft, why have your forsaken me!!!", says the person, "sudo shred || rm " says the Devil. "NO!!!!!" says the person as he poofs into nothing.
What do you think?
-
nellim
-
- Posts: 1
- Joined: Mon May 04, 2009 8:28 pm UTC
by gerevtw » Wed Dec 09, 2009 4:58 pm UTC
This works in Jaunty.
- Attachments
-

- 149a.png (33.75 KiB) Viewed 7856 times
-
gerevtw
-
- Posts: 1
- Joined: Wed Dec 09, 2009 4:44 pm UTC
by Exüberance » Tue Jan 12, 2010 8:25 pm UTC
Alternatively, you can make the aliases
- Code: Select all
alias sudo='sudo ' # (note the space) this is required for your shell to parse aliases after the sudo command
alias make="/xkcd" # or replace "/xkcd" with some other location where you put your shell script
and add them to your .bashrc
then make a shell script containing:
- Code: Select all
#!/bin/bash
if [ "$*" == "me a sandwich" ]; then
if [ "`whoami`" == "root" ]; then
echo "Okay."
else
echo "What? Make it yourself."
fi
else
make $*
fi
and save it wherever. I just put it at /xkcd
Now whenever you type "make me a sandwich" (you don't need a makefile) it will respond as expected. Otherwise, it will behave as "make" normally would.

-

Exüberance
-
- Posts: 22
- Joined: Mon Oct 06, 2008 5:33 pm UTC
by raf_kig » Sun Feb 07, 2010 5:47 pm UTC
you shouldn't be checking env to authenticate the user

- Code: Select all
user@hostname /tmp % cat << MMAS > mmas.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void){
char *my_user = getenv("USER");
if(strcmp(my_user, "root") == 0)
printf("Okay!\n");
else
printf("Make your own damn sandwich!\n");
return 0;
}
`heredoc> MMAS
user@hostname /tmp % gcc mmas.c && USER=root ./a.out
Okay!
-
raf_kig
-
- Posts: 1
- Joined: Sun Feb 07, 2010 5:42 pm UTC
by Pragma1700 » Mon Oct 17, 2011 8:34 pm UTC
Someone at Apple likes xkcd?
http://www.reddit.com/r/funny/comments/ldlhe/siri_listens_to_authority/
-
Pragma1700
-
- Posts: 1
- Joined: Mon Oct 17, 2011 8:32 pm UTC
by Paulmichael » Thu Nov 10, 2011 6:49 pm UTC
I saw that after Googling to see if anyone else had thought to ask Siri that! Hilarious.
-
Paulmichael
-
- Posts: 31
- Joined: Wed Jul 29, 2009 7:06 am UTC
by Isaac » Fri Nov 11, 2011 11:23 am UTC
Andy wrote:(*) Yes, I can't spell this word. Typically I google for the word to fix it up. But now that that has happened easily over 5 times, I don't think I will ever learn how. So, now I'm trying to change the spelling of the word, to something I can manage... and now google won't think less of me for misspelling a word lots of times.
My spelling improved vastly when I realized that if you google my former spellings' of certain words, it will turn up nothing but things that I've written.
-
Isaac
-
- Posts: 27
- Joined: Sat Jan 17, 2009 12:49 pm UTC
by ruleeet » Tue Nov 15, 2011 12:40 pm UTC
Pragma1700 wrote:Someone at Apple likes xkcd?
http://www.reddit.com/r/funny/comments/ldlhe/siri_listens_to_authority/
Why not?

-
ruleeet
-
- Posts: 8
- Joined: Mon Nov 14, 2011 11:06 am UTC
Return to Individual XKCD Comic Threads
Who is online
Users browsing this forum: azule, charlie_grumbles, ergman, Eternal Density, fatness, GuetraGma, htom, jetpac, kenmelken, MobTeeseboose, mscha, Ylbbin72 and 24 guests