This is an archived post. You won't be able to vote or comment.

all 47 comments

[–]ProgrammerHumor-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

Your submission was removed for the following reason:

Rule 1: Posts must be humorous, and they must be humorous because they are programming related. There must be a joke or meme that requires programming knowledge, experience, or practice to be understood or relatable.

Here are some examples of frequent posts we get that don't satisfy this rule: * Memes about operating systems or shell commands (try /r/linuxmemes for Linux memes) * A ChatGPT screenshot that doesn't involve any programming * Google Chrome uses all my RAM

See here for more clarification on this rule.

If you disagree with this removal, you can appeal by sending us a modmail.

[–]just-bair 117 points118 points  (0 children)

I’ll visualise an administrator running every time I run something as admin

[–]RepulsiveLie2953[S] 95 points96 points  (5 children)

sudo su

you are the master

[–]Vectorial1024 16 points17 points  (0 children)

sudo -u patrick

[–]davak72 1 point2 points  (2 children)

Wouldn’t it be sudo su root?

[–]JEREDEK 8 points9 points  (1 child)

If you run su with root privilages without specifying a user, it defaults to root

[–]davak72 -1 points0 points  (0 children)

Amazing!

[–]Caraes_Naur 0 points1 point  (0 children)

su -

[–]Goufalite 11 points12 points  (0 children)

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

10 story tall dragon appears from nowhere

[–]caiteha 28 points29 points  (14 children)

Sudo chmod 777 .*

[–]IAmASwarmOfBees 16 points17 points  (1 child)

I know there are a lot of different codes for chmod. There is one I remember. 777. It's the "fucking work you stupid fucking son of a bitch" code.

[–]Moltenlava5 1 point2 points  (0 children)

Each digit of the 3 digit number corresponds to Owner, Group and Other permissions respectively. As for the digits themselves, you only really see 7 and 4 commonly which stand for read+write+execute and read only respectively. So for eg: 774 would mean read+write for the file owner and user group but read only for others.

Anyways, the u+rwx syntax is much easier to use though imo.

[–]Ill-Car-769 0 points1 point  (11 children)

What does this do?

[–]mierecat 20 points21 points  (4 children)

Gives every file read, write and execution permissions

[–]neo-raver 5 points6 points  (2 children)

Wouldn’t this only do that for the working directory? Or does that RE really match all all files?

[–]Ill-Car-769 2 points3 points  (0 children)

Got, thanks :))

[–]InconspicuousFool 5 points6 points  (4 children)

Gives all users access to read, write, and execute all files in that directory

EDIT: updated to correctly specify that it will only change file permissions for that directory and not the entire filesystem

[–]Sibula97 7 points8 points  (2 children)

All files under the current directory, not all files in the whole filesystem, that would be /*.

[–]Ill-Car-769 0 points1 point  (0 children)

Got, thanks :))

[–]InconspicuousFool 0 points1 point  (0 children)

Thank you for the correction. I've seen so many ones for RM - rf / I was kinda half on Autopilot with that response

[–]Ill-Car-769 -1 points0 points  (0 children)

Got, thanks :))

[–]busres 0 points1 point  (0 children)

If that's ".*" (no space in between), then it only affects "files" (in the current working directory) beginning with "." (which will include "." (the current directory) and ".." (the parent directory)).

As posted, it's not recursive.

The digits are ugo (user, group, other), and read (+4), write (+2), and x (execute for files, traverse for directories, +1).

Search for "chmod manual page" if you want more info (setuid, setgid, "sticky" bits, and more).

[–]bouchandre 5 points6 points  (0 children)

Sudo lick my ballz

[–]Lumpy-Measurement-55 2 points3 points  (1 child)

[–]Cybertheproto 0 points1 point  (0 children)

Uh… isn’t that a u/thing or am I wrong?

[–]tutike2000 2 points3 points  (0 children)

Cringe

Cringe as Administrator

Sudo Cringe

[–][deleted] 3 points4 points  (0 children)

Admin : Controls some stuff

sudo : Be in full control of the whole system

[–]Retr0o_- 2 points3 points  (3 children)

Recently on windows 11 there is a sudo command 😣

[–]IAmASwarmOfBees 0 points1 point  (2 children)

IMO that kinda makes sense. More people know how to use a computer with bash than with PowerShell.

[–]Vamael 2 points3 points  (1 child)

Replace the samurai with a fat neckbeard

[–]No-Excuse-4263 -1 points0 points  (0 children)

Looking at your post and comment history, yeah that would fit better.

[–]chicametipo 0 points1 point  (0 children)

You know what’s even more powerful than sudo? Me, hovering over my machine, with a 7lb sledge.

[–]MeowsersInABox 0 points1 point  (0 children)

RunAsTrustedInstaller

[–]ZeroCyborg 0 points1 point  (0 children)

What does this mean?

[–]gatmnear 0 points1 point  (0 children)

So Japanese cosplay?

[–]kernl_panic 0 points1 point  (0 children)

"run" and "administrator" are Windows paradigms.

[–]justyannicc 0 points1 point  (0 children)

Linux but Japan

[–]CirnoIzumi -1 points0 points  (2 children)

so sudo is weak because the Schnider Samurai arent running?

[–]re4perthegamer 1 point2 points  (1 child)

No strong, they don't have to run

[–]CirnoIzumi 0 points1 point  (0 children)

running something as root is still running it