SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alecsargent@lemmy.zip to linuxmemes@lemmy.world · 2 天前

It's all about those little file mode bits

lemmy.zip

external-link
message-square
71
link
fedilink
242
external-link

It's all about those little file mode bits

lemmy.zip

alecsargent@lemmy.zip to linuxmemes@lemmy.world · 2 天前
message-square
71
link
fedilink

alert-triangle
You must log in or register to comment.
  • a_non_monotonic_function@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    10 小时前

    Why? I mean not Drake because Drake sucks

    My specify every permission every time? That’s just going to create arrows.

  • W98BSoD@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    105
    ·
    2 天前

    • Funkt4st1c@lemmy.world
      link
      fedilink
      English
      arrow-up
      25
      ·
      2 天前

      This is drake erasure and I’m LOVING EVERY MINUTE OF IT, JERRY

    • trashman@feddit.org
      link
      fedilink
      English
      arrow-up
      12
      ·
      2 天前

      Yo dawg, heard you like memes

  • gigaqps@lemmy.world
    link
    fedilink
    arrow-up
    69
    arrow-down
    1
    ·
    2 天前

    But those are different

    • Ephera@lemmy.ml
      link
      fedilink
      arrow-up
      58
      ·
      2 天前

      Yeah, not only does +x leave read/write permissions untouched, it also only makes it executable for the user, not for everyone and their cat.

      • dimmuborgnine@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        11 小时前

        If your cat isn’t the first entry in /etc/sudoers I’m not sure I want to know you

      • dimmuborgnine@lemmy.world
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        11 小时前

        If your cat isn’t the first entry in /etc/sudoers I’m not sure I want to know you

      • Mr.Chewy@lemmy.world
        link
        fedilink
        arrow-up
        24
        ·
        2 天前

        Cat doesn’t execute anything tho, it just reads and gives output

        • fartographer@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          10 小时前

          Or am I???

          x='dumb.txt' && echo "ls | grep $x && cat $x && rm -v $x" > $x && cat $x | bash

        • SaharaMaleikuhm@feddit.org
          link
          fedilink
          arrow-up
          9
          ·
          2 天前

          The cat command executes the cat program.

          • quantumvoid0@programming.dev
            link
            fedilink
            English
            arrow-up
            5
            ·
            2 天前

            What happens when u try to cat the cat program, is that considered reading or executing

            • NominatedNemesis@reddthat.com
              link
              fedilink
              arrow-up
              5
              ·
              2 天前

              Both, they are not mutually exclusive.

        • NominatedNemesis@reddthat.com
          link
          fedilink
          arrow-up
          5
          ·
          2 天前

          Except if you use kitty terminal emulator with unsecure remote access. Issue

          Then with cat, you could execute arbitrary commands…

    • alecsargent@lemmy.zipOP
      link
      fedilink
      arrow-up
      3
      ·
      2 天前

      Had to be done for the joke. :)

  • morto@piefed.social
    link
    fedilink
    English
    arrow-up
    62
    ·
    2 天前

    chmod 666 so only the devil can execute it

  • Drunk & Root@sh.itjust.works
    link
    fedilink
    arrow-up
    5
    ·
    2 天前

    real question is how do you pronounce chmod

    • fleebleneeble@reddthat.com
      link
      fedilink
      arrow-up
      1
      ·
      11 小时前

      Shmaude

    • flandish@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      22 小时前

      “change mod”

    • daniskarma@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      4
      ·
      1 天前

      “chemod”

    • Bakkoda@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      2 天前

      c h mod

    • recursivethinking@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      1 天前

      shmod. and then cho-wn (ch’own? cho-un?)

      and of course, hweel (jk on this one)

    • Magnum, P.I.@infosec.pub
      link
      fedilink
      arrow-up
      2
      ·
      1 天前

      The CH from channel and then mod

    • AstroLightz@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 天前

      “c h m o d”

      Just like “l s” and “p a c m a n”

    • alecsargent@lemmy.zipOP
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      2 天前

      I pronounce it chmod, you?

      • Drunk & Root@sh.itjust.works
        link
        fedilink
        arrow-up
        3
        ·
        22 小时前

        i say c h then mod

      • Ann Archy@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        1 天前

        I pronounce it the way it’s written.

  • SaharaMaleikuhm@feddit.org
    link
    fedilink
    arrow-up
    15
    ·
    2 天前

    Nope, +x for life

    • nibbler@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 天前

      deleted by creator

  • BigBrownBeaver@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    2 天前

    chmod -R ug+rwX,o=r *

    • Ann Archy@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 天前

      Such a beautiful language.

  • Nyadia@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    11
    ·
    2 天前

    I don’t use chmod nearly often enough to remember these numbers. I know there’s a mathematical way to figure it out, but I cba to do that when u+wrx more or less tells me exactly what it does (grant the User Write, Read, and eXecute permissions)

    • timbuck2themoon@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 天前

      4 read, 2 write, 1 execute.

      That’s it. Add them up for whatever you want.

      • naevaTheRat@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        2
        ·
        14 小时前

        and digits are sticky, owner, group, all

  • Maxxie@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    31
    ·
    2 天前

    this but in reverse 🤷‍♀️

  • katy ✨@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    12
    ·
    2 天前

    chmod -R 777 / galaxy brain

  • rumschlumpel@feddit.org
    link
    fedilink
    arrow-up
    39
    arrow-down
    2
    ·
    2 天前

    When I start fucking with chmod, it happens way too often that what I want to do only works after I executed chmod 777…

    • renegadespork@lemmy.jelliefrontier.net
      link
      fedilink
      English
      arrow-up
      56
      ·
      2 天前

      May I interest you in a nice “chown”?

    • rImITywR@lemmy.world
      link
      fedilink
      English
      arrow-up
      38
      ·
      2 天前

      chmod -R 777 /

      Why the fuck am I still getting permission errors

      • renegadespork@lemmy.jelliefrontier.net
        link
        fedilink
        English
        arrow-up
        30
        ·
        2 天前

        sudo

      • Voytrekk@sopuli.xyz
        link
        fedilink
        arrow-up
        6
        ·
        2 天前

        Selinux

    • quarrel4you@piefed.social
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 天前

      You can actually do chmod +777,u+rwx,go-w foo to make the logic easier if you want to force a starting assumption.

  • WFH@lemmy.zip
    link
    fedilink
    arrow-up
    14
    ·
    2 天前

    chmod -R 600 ~/, because I dont trust anyone, not even myself.

    • palordrolap@fedia.io
      link
      fedilink
      arrow-up
      12
      ·
      2 天前

      I forgor the tilde and its taking a long time. wat do

      • the_strange@feddit.org
        link
        fedilink
        arrow-up
        12
        ·
        2 天前

        sudo rm -rf / --no-preserve-root

        Start from scratch

      • Clay_pidgin@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 天前

        Tilde is a shortcut to /home/palordrolap

        • palordrolap@fedia.io
          link
          fedilink
          arrow-up
          3
          ·
          1 天前

          False. It’s a shell synonym for /home/ah-ha-ha-nice-try-you-are-not-getting-my-real-homedir-name

          … it’s a PITA to type out longhand, let me tell you.

          • Clay_pidgin@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            2
            ·
            14 小时前

            Ah, I see. I thought that you had forgotten what the tilde does, not that you ran the command without it!

            • palordrolap@fedia.io
              link
              fedilink
              arrow-up
              2
              ·
              14 小时前

              I was being a silly goose and pretending I was more clueless than I actually am.

              (Probably not by as much as I’d like to think.)

  • neopenguin@lemmy.world
    link
    fedilink
    English
    arrow-up
    18
    ·
    2 天前

    If you don’t add the leading digit (out of respect) for the sticky/setgid/setuid bits, do you even Linux?

  • undefinedTruth@lemmy.zip
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    2 天前

    chmod 755 for when setting permissions to directories. chmod +x for making something executable right when I am about to run it.

  • renegadespork@lemmy.jelliefrontier.net
    link
    fedilink
    English
    arrow-up
    16
    ·
    2 天前

    700 cause I’m selfish.

    • 𝘋𝘪𝘳𝘬@lemmy.ml
      link
      fedilink
      arrow-up
      8
      ·
      2 天前

      700 is the only sane answer for directories inside $HOME.

      • renegadespork@lemmy.jelliefrontier.net
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 天前

        Nah, there’s a lot of config files in there that other programs need to read.

        • wheezy@lemmy.ml
          link
          fedilink
          English
          arrow-up
          12
          ·
          2 天前

          Unfortunately. I really wish $HOME was reserved for files I create myself. I know. I can create my own shit for that. But, I really wish every single random project I download to fuck around with didn’t drop a config directory or file in there. ITS MY HOME.

          • meekah@discuss.tchncs.de
            link
            fedilink
            arrow-up
            12
            ·
            2 天前

            I mean, having config files in there makes a lot of sense. It allows you to move your home to some other machine/install and immediately feel at home, because everything is configured to your liking.

            Now, the fact that many apps create their own directory instead of putting their stuff in ~/.config is pretty annoying.

            • wheezy@lemmy.ml
              link
              fedilink
              English
              arrow-up
              4
              ·
              2 天前

              Yeah. That’s more my frustration. That it’s implented poorly by most people. I don’t think that trying to change the standard by “adding another standard” would be helpful. Just minor frustration. Which usually leads me to putting all my organized directories and shit in a dedicated location. And I just let /home be the clutter that it is.

            • vaionko@sopuli.xyz
              link
              fedilink
              arrow-up
              5
              ·
              2 天前

              Also for multi user systems it’s handy that each user gets their own configs

        • 𝘋𝘪𝘳𝘬@lemmy.ml
          link
          fedilink
          arrow-up
          2
          ·
          2 天前

          The programs usually run in user context and have access to the files.

          Even if thinking very hard I cannot come up with a scenario where a program that does not run in user context needs access to user files.

          • renegadespork@lemmy.jelliefrontier.net
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            1
            ·
            2 天前

            Usually, but there might be services running as other users that reference those configs. It really just depends on what’s on your system. Obviously you can make 700 work, but it might require tweaking some stuff.

            • 𝘋𝘪𝘳𝘬@lemmy.ml
              link
              fedilink
              arrow-up
              2
              ·
              2 天前

              It really just depends on what’s on your system.

              Yes, this is what I wonder.

              I use Linux since ca. 2005 and never ever had a program not working because it could not read a user’s $HOME contents.

      • libewa@feddit.org
        link
        fedilink
        arrow-up
        2
        ·
        2 天前

        macOS by default makes /Users/* only readable by the owner, except for $HOME/Public, which is drwxr-xr-x, and $HOME/Public/Postbox, which is drwx-w--w-

        • ddh
          link
          fedilink
          English
          arrow-up
          2
          ·
          22 小时前

          I gotta ask why they put Public in home

          • libewa@feddit.org
            link
            fedilink
            arrow-up
            2
            ·
            19 小时前

            Because it’s a user-specific folder that says “This is mine, but you can see it.”

linuxmemes@lemmy.world

linuxmemes@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linuxmemes@lemmy.world

Hint: :q!


Sister communities:
  • !tech_memes@lemmy.world
  • !memes@lemmy.world
  • !lemmyshitpost@lemmy.world
  • !risa@startrek.website

Community rules (click to expand)

1. Follow the site-wide rules
  • Instance-wide TOS: https://legal.lemmy.world/tos/
  • Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
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 of any kind will not be tolerated. This is an LGBTQ+-friendly community – if that is a problem for you, you should leave.
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.
  • Don’t come looking for advice, this is not the right community.
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 figures

We 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.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 122 users / day
  • 2.58K users / week
  • 7.57K users / month
  • 12.5K users / 6 months
  • 290 local subscribers
  • 32.8K subscribers
  • 2.02K Posts
  • 115K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.worlddeleted by creator
  • zephyr@lemmy.world
  • Err(()).unwrap()@lemmy.world
  • BE: 0.19.20
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org