this post was submitted on 27 Jun 2025
391 points (96.9% liked)

linuxmemes

25877 readers
1340 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
    391
    Dirty Talk (lemmy.zip)
    submitted 23 hours ago* (last edited 22 hours ago) by [email protected] to c/[email protected]
     

    Disclaimer: Do not run this command.

    all 50 comments
    sorted by: hot top controversial new old
    [–] [email protected] 8 points 5 hours ago

    definitely nsfw

    [–] [email protected] 2 points 13 hours ago

    Missing setuid. You have just bricked your system good job

    [–] [email protected] 18 points 13 hours ago* (last edited 13 hours ago)

    I did chmod -R 666 / when I started playing with Linux in 1999. It did not end well.

    Sudo didn't really exist back then, you ran things as root like real men. /s

    [–] [email protected] 12 points 14 hours ago (1 children)

    Sorry, that's a huge turn off. Filesystem perms exist for a reason and should be respected

    [–] [email protected] 8 points 5 hours ago

    Yeah, this is modern day slutshaming

    [–] [email protected] 10 points 15 hours ago

    Back in my early days of Linux I ran this exact command, I forget why, but for some reason my WiFi stopped working immediately after and then SELinux started yelling at me for some reason. I tried to fix SELinux and most certainly commited an innumerable amount of cardinal sins.

    I had to reinstall whatever distro I was running at the time

    [–] [email protected] 6 points 17 hours ago (3 children)

    Does anyone else pronounce it "schmod"?

    [–] [email protected] 3 points 15 hours ago

    Never have.

    [–] [email protected] 4 points 15 hours ago

    Nope. Sorry lol.

    [–] [email protected] 4 points 16 hours ago (1 children)

    I pronounce it spelling out only C H, but spelling them in my native language, so it sounds like "chee akka mod" and of course the same goes for "chee akka own"

    [–] [email protected] 2 points 13 hours ago

    Yup same, β€œsΓ© ash mod” here o/

    [–] [email protected] 27 points 18 hours ago (4 children)

    Most Linux filesystems, being case sensitive, won't find the SUDO command.

    [–] [email protected] 25 points 15 hours ago* (last edited 15 hours ago)

    With alias all things are possible.

    alias SUDO='sudo rm -fr / --no-preserve-root'
    
    [–] [email protected] 15 points 16 hours ago

    If you shout at your shell, it refuses to listen

    [–] [email protected] 5 points 16 hours ago

    Glad I'm not the only one that thinks like this.

    [–] [email protected] 14 points 18 hours ago

    CHMOD command does not exist either. It's just the meme's font that is in all caps.

    [–] [email protected] 21 points 19 hours ago (1 children)

    Taking the term open sourced to a whole new level!

    Everybody has permissions!

    [–] [email protected] 6 points 16 hours ago* (last edited 16 hours ago)

    It's still not really open-source until you open up all the ports now don't you think?

    [–] [email protected] 33 points 21 hours ago (1 children)

    If I wanted Windows perms I would have installed Windows

    [–] [email protected] 19 points 20 hours ago (1 children)

    Windows perms are pretty locked down though. Sometimes I can't delete my own files because I need permission from "Administrator" :/

    You can actually use Windows-style permissions (ACLs) on Linux via setfacl.

    [–] [email protected] 6 points 16 hours ago (1 children)

    If only...

    Those are POSIX acls, and they suck

    We could have had NFSv4 ACL, of which windows ACLs are a subset. In fact, every other unix os did... Except for Linux, they decided it didn't fit well to Linux. And so we are stuck with UGO permissions, and posix ACLs.

    [–] [email protected] 4 points 14 hours ago

    Good catch - I should have said that it's closer to Windows-style ACLs rather than implying that it's actually the same.

    [–] [email protected] 120 points 22 hours ago (5 children)

    Obligatory DO NOT RUN THIS ON YOUR COMPUTER (or anyone else's).

    You'd think with fully open permissions, everything would work better, but many programs, including important low level things, interpret it as a sign of system damage and will refuse to operate instead.

    If you do run it, you'd better have a backup or something like Timeshift to bail you out, and even if you do have that, it's not worth trying it just to see what will happen.

    It's not quite as bad as deleting everything because you can boot from external media and back up non-system files after the fact, but the system will almost certainly not work properly and need to be repaired.

    You have been warned.

    [–] [email protected] 2 points 5 hours ago

    One time I introduced someone to Linux then left them to their own devices.

    I returned to them hours later to find out they had gotten annoyed with permissions errors and run chown -R ${THEIRUSER}: /.

    The results were not what they wanted.

    [–] [email protected] 6 points 15 hours ago* (last edited 15 hours ago)

    Someone actually ran it on a server at my workplace, trying to fix file permissions on a samba share. Broke SSH and the samba daemon. Thankfully I was able to fix by removing the permissions from the config files the error logs pointed to.

    Just saying, I think it was a ChatGPT idea, other people use it every day. I only use it if I'm completely stumped, and only take it as suggestions.

    [–] [email protected] 54 points 21 hours ago (2 children)

    New guy at work ran this to try to fix permissions on his home folder, accidentally ran it on root (both would have been bad)

    Several highly paid and experienced Linux admins finally just gave up and deleted the server and built a new one from the backups.

    [–] [email protected] 4 points 8 hours ago

    Why does he have rights to use sudo in the first place?

    [–] [email protected] 24 points 20 hours ago (2 children)

    Which, honestly, is the better way to go. Treat your compute resources like cattle, not pets.

    [–] [email protected] 13 points 14 hours ago* (last edited 14 hours ago) (2 children)

    One of our servers is a rotting carcass being kept alive by our collective prayers. It runs Windows 7 and custom software whose developer is dead and the source is missing, nothing has been updated for over a decade, and it has its own independent UPS because once it goes down, it has an extremely slim chance of recovering, and we're afraid to test it. It controls the card entry system into the building, including the server room. Boss doesn't want to replace it because we'd have to replace all of the terminals and controllers too, and it hasn't catastrophically failed yet.

    You're right. It's not a pet. It's like one of the Saw movies: if it dies, we're all fucked.

    [–] [email protected] 2 points 1 hour ago

    The question I often ask clients who think this way is "How much would it cost if it did fail? Let's say this happened today. What would be the cost to replace it NOW and not only that but make sure people who are working can still do so with the interruption?

    Now how much would it cost to schedule the interruption and manage the fall out in a way that is controllable?

    For some, the catastrophic failure points to "hey I fixed the thing!" And the incentives for that kind of person are different from the person whose job is to mitigate risk.

    It sounds like your boss is the former. In which case it's going to be fun when it fails.

    [–] [email protected] 4 points 6 hours ago

    So... the dead server controls who is even able to enter the building? Wow. That is one big juggernaut of a problem heading for you.

    [–] [email protected] 4 points 18 hours ago* (last edited 18 hours ago)

    I learned this relatively quickly running my own server with the intention of my family also using it. Data on a separate drive, backed up regularly and automatically. System on it's own drive, dd'd when it's in it's final state and backed up before I screw around any deeper than trying out a new container. I can bring my server back up in however long it takes to transfer data.

    [–] [email protected] 5 points 22 hours ago

    But how else will I make everything work without issues

    [–] [email protected] 20 points 22 hours ago* (last edited 22 hours ago)

    I will make a disclaimer. Thanks.

    [–] [email protected] 45 points 22 hours ago (2 children)

    asexuals and demisexuals be like sudo chmod -R 700 /

    [–] [email protected] 4 points 22 hours ago* (last edited 22 hours ago)

    You and @[email protected] really out did yourselves

    [–] [email protected] 52 points 22 hours ago* (last edited 22 hours ago) (3 children)

    Doms with cuck and denial fetishes have partners like

    sudo chmod -R 077 /
    
    [–] [email protected] 3 points 15 hours ago
    sudo chown -R nobody:nobody /
    
    [–] [email protected] 11 points 21 hours ago (3 children)

    What do the funny words mean? (i understand neither 700 & 077)

    [–] [email protected] 5 points 17 hours ago* (last edited 17 hours ago)

    File permissions...

    allowed to execute=1, allowed to write=2, allowed to read=4

    grouped by owner/group/everyone.

    So one of your own files you have full access to while users in your usergroup are only allowed to read it and nobody else has any permissions would have: 740 (read+write+execute / read / none).

    [–] [email protected] 39 points 21 hours ago* (last edited 19 hours ago) (2 children)
    • sudo is telling the computer to do this with root privileges.
    • chmod sets permissions.
    • Each digit of that three-digit number corresponds to the owner, the group, and other users, respectively. It's 0–7, where 0 means no access and 7 means access to read, write, and execute. So 077 is the exact inverse of 700, where 077 means "the owner cannot access their own files, but everyone else can read, write, and execute them". Corresponding 700 to asexuals is joking that nobody but the owner can even so much as touch the files.
    • / is the root directory, i.e. the very top of the filesystem.
    • The -R flag says to do this recursively downward; in this case, that's starting from /.

    So here, we're modifying every single file on the entire system to be readable, writable, and executable by everyone but their owner. And yes, this is supposed to be extremely stupid.

    [–] [email protected] 5 points 18 hours ago

    Thank you a lot.
    The funny words have a useful meaning :D

    [–] [email protected] 9 points 20 hours ago (1 children)

    This is the best comment I’ve come across in a while. Thank you so much for breaking it down so well.

    [–] [email protected] 4 points 17 hours ago

    Just wait until you need to figure out what you want when you want something other than all or none for those permissions. 4 is read, 2 is write, 1 is execute. Add them up to get what you want for each owner/group/other portion.

    [–] [email protected] 9 points 21 hours ago (1 children)

    7 is read, write, and execute permissions. 700 is owner, but not group or others. 077 means the owner has no permissions, but group and others all have full permissions.

    [–] [email protected] 4 points 18 hours ago* (last edited 18 hours ago)

    Thank you for the explaination ^^

    [–] [email protected] 30 points 22 hours ago

    Jesus Christ

    [–] [email protected] 15 points 22 hours ago

    Dear god. We’re exposed.

    [–] [email protected] 13 points 22 hours ago

    all your base are belong to us