this post was submitted on 27 Jun 2025
469 points (97.2% liked)

linuxmemes

25924 readers
262 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
    469
    Dirty Talk (lemmy.zip)
    submitted 3 days ago* (last edited 3 days ago) by sanderium@lemmy.zip to c/linuxmemes@lemmy.world
     

    Disclaimer: Do not run this command.

    top 50 comments
    sorted by: hot top controversial new old
    [–] stupidcasey@lemmy.world 2 points 1 day ago (1 children)

    Is a woman telling you:

    "you can do whatever you like, but so can my Ex your mama and the Dallas cowboys."

    Really that much of a male fantasy?

    [–] phorq@lemmy.ml 2 points 1 day ago

    Yeah, would've been better if she adds you to her sudoers file.

    [–] MTK@lemmy.world 5 points 1 day ago

    Made me puke in my mouth

    [–] grrgyle@slrpnk.net 3 points 1 day ago

    I accidentally did this on a work computer, just going with tab completion. Things started to break very quickly. I don't think I could even run sudo or rm lol. Total wash. Had to reinstall (this was on my first week in office - so embarrassing!).

    [–] palordrolap@fedia.io 147 points 3 days ago (6 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.

    [–] joel_feila@lemmy.world 2 points 1 day ago (2 children)

    What exactly does that command do

    [–] palordrolap@fedia.io 6 points 1 day ago (1 children)

    It sets permissions (ch ange modification rights) on all files (-R = recursive, stepping down through directories) in the file system (hence starting at /) so that they can be read, (re)written and executed as programs by all users (the 777 part). 000 would be no permissions for anyone (except for the root user), which would be just as bad.

    [–] grrgyle@slrpnk.net 2 points 1 day ago

    Excellent summary. Just as a bit of trivia I'll add that Linux file permissions go like r w x (read write execute) = 4 2 1, so taken all together a 7 means the indicated user can do all those operations.

    And yeah, it breaks your system in surprising ways. Most people would just have to start over.

    gives all users on the system read and write access to any and all files and resources

    [–] LastYearsIrritant@sopuli.xyz 70 points 3 days 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.

    [–] CosmicTurtle0@lemmy.dbzer0.com 36 points 3 days ago (2 children)

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

    [–] rtxn@lemmy.world 26 points 3 days ago* (last edited 3 days ago) (4 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.

    [–] cows_are_underrated@feddit.org 4 points 1 day ago (1 children)

    I gΓΆnne be honest, it sounds kinda stupid to be reliant on a server to open the door to the same server.

    [–] rtxn@lemmy.world 2 points 1 day ago

    It's surprisingly easy to get from the main hall to the server room. There are two doors between the entry hall and the server room, one can be bypassed by yanking it real hard, and that gives access to the breaker box for the electromagnets among others. The building is not particularly well-designed.

    [–] davidagain@lemmy.world 11 points 2 days ago (1 children)

    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.

    Typically a brick can control who can enter the building. Security man the doors for a few days until the new system is in.

    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.

    [–] BeardedGingerWonder@feddit.uk 3 points 2 days ago (1 children)

    I'm sure there's a good reason (or at least a believable reason) but I'm curious now, why can't copies be made of the binary/data and start trying to get it running on a VM or another box?

    [–] rtxn@lemmy.world 2 points 1 day ago

    The reason is that we want it to fail. My original comment was more emotive than descriptive. The system is horribly designed and a fucking menace on the best day, so short of direct sabotage, we're doing what we can to force the bossmang to replace it.

    load more comments (1 replies)

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

    [–] toynbee@lemmy.world 8 points 2 days ago (2 children)

    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.

    [–] grrgyle@slrpnk.net 2 points 1 day ago

    A valuable lesson

    [–] purplemonkeymad@programming.dev 2 points 1 day ago (1 children)

    I did this once by accident (bad scripting, managed to abort it,) it wasn't too bad until sudo told me that the sudoers file had the wrong owner. I then learnt that there are other ways to become root.

    OS ran for another ~6months after I re chowned etc to root.

    [–] palordrolap@fedia.io 2 points 1 day ago

    Wow. You were lucky. That abort might have been what saved you there.

    [–] sanderium@lemmy.zip 20 points 3 days ago* (last edited 3 days ago)

    I will make a disclaimer. Thanks.

    [–] gil2455526@lemmy.eco.br 8 points 3 days ago* (last edited 3 days 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.

    load more comments (1 replies)
    [–] menas@lemmy.wtf 20 points 2 days ago

    definitely nsfw

    [–] cupcakezealot@piefed.blahaj.zone 52 points 3 days ago (2 children)

    asexuals and demisexuals be like sudo chmod -R 700 /

    [–] ArchAengelus@lemmy.dbzer0.com 60 points 3 days ago* (last edited 3 days ago) (3 children)

    Doms with cuck and denial fetishes have partners like

    sudo chmod -R 077 /
    
    [–] sanderium@lemmy.zip 34 points 3 days ago

    Jesus Christ

    [–] Little8Lost@lemmy.world 13 points 3 days ago (3 children)

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

    [–] TheTechnician27@lemmy.world 42 points 3 days ago* (last edited 3 days 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.

    [–] NutinButNet@hilariouschaos.com 9 points 3 days 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.

    load more comments (1 replies)
    load more comments (1 replies)
    [–] KickMeElmo@sopuli.xyz 10 points 3 days 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.

    load more comments (1 replies)
    load more comments (1 replies)
    load more comments (1 replies)
    load more comments (1 replies)
    [–] Hotzilla@sopuli.xyz 22 points 3 days ago* (last edited 3 days ago) (1 children)

    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

    [–] stoicmaverick@lemmy.world 3 points 1 day ago (1 children)

    (sitting cross-legged on the floor drinking a juice box) "How DID it end, grampa?"

    [–] Hotzilla@sopuli.xyz 3 points 1 day ago

    6 permission mean read+write, but no execution rights. So you cannot execute any commands and system bricks itself.

    [–] qjkxbmwvz@startrek.website 28 points 3 days ago (4 children)

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

    [–] stupidcasey@lemmy.world 30 points 3 days ago* (last edited 3 days ago)

    With alias all things are possible.

    alias SUDO='sudo rm -fr / --no-preserve-root'
    
    [–] surewhynotlem@lemmy.world 17 points 3 days ago

    If you shout at your shell, it refuses to listen

    [–] sanderium@lemmy.zip 15 points 3 days ago

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

    load more comments (1 replies)
    [–] QuantumTickle@lemmy.zip 34 points 3 days ago (1 children)

    If I wanted Windows perms I would have installed Windows

    [–] dan@upvote.au 21 points 3 days ago (2 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.

    load more comments (2 replies)
    [–] synae@lemmy.sdf.org 18 points 3 days ago (1 children)

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

    [–] Gonzako@lemmy.world 14 points 2 days ago

    Yeah, this is modern day slutshaming

    [–] Steamymoomilk@sh.itjust.works 22 points 3 days ago (1 children)

    Taking the term open sourced to a whole new level!

    Everybody has permissions!

    [–] Jankatarch@lemmy.world 7 points 3 days ago* (last edited 3 days ago)

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

    [–] neomachino@lemmy.dbzer0.com 12 points 3 days 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

    Dear god. We’re exposed.

    [–] WiredBrain@lemmy.ca 13 points 3 days ago

    all your base are belong to us

    load more comments
    view more: next β€Ί