Lemmy | Lama Corp.
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alecsargent@lemmy.zip to linuxmemes@lemmy.world · 14 hours ago

It's all about those little file mode bits

lemmy.zip

external-link
message-square
35
link
fedilink
129
external-link

It's all about those little file mode bits

lemmy.zip

alecsargent@lemmy.zip to linuxmemes@lemmy.world · 14 hours ago
message-square
35
link
fedilink

alert-triangle
You must log in or register to comment.
  • Nyadia@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 hour ago

    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)

  • SaharaMaleikuhm@feddit.org
    link
    fedilink
    arrow-up
    5
    ·
    2 hours ago

    Nope, +x for life

  • katy ✨@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 hours ago

    chmod -R 777 / galaxy brain

  • W98BSoD@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    31
    ·
    4 hours ago

    • trashman@feddit.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 hours ago

      Yo dawg, heard you like memes

    • Funkt4st1c@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 hours ago

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

  • PerogiBoi@lemmy.ca
    link
    fedilink
    arrow-up
    2
    ·
    2 hours ago

    Chmod 777 I live erratically without consequence.

  • undefinedTruth@lemmy.zip
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    2 hours ago

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

  • WFH@lemmy.zip
    link
    fedilink
    arrow-up
    7
    ·
    6 hours ago

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

    • palordrolap@fedia.io
      link
      fedilink
      arrow-up
      7
      ·
      3 hours ago

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

      • the_strange@feddit.org
        link
        fedilink
        arrow-up
        7
        ·
        2 hours ago

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

        Start from scratch

  • gigaqps@lemmy.world
    link
    fedilink
    arrow-up
    41
    ·
    10 hours ago

    But those are different

    • alecsargent@lemmy.zipOP
      link
      fedilink
      arrow-up
      2
      ·
      3 hours ago

      Had to be done for the joke. :)

    • Ephera@lemmy.ml
      link
      fedilink
      arrow-up
      35
      ·
      10 hours ago

      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.

      • Mr.Chewy@lemmy.world
        link
        fedilink
        arrow-up
        11
        ·
        7 hours ago

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

        • SaharaMaleikuhm@feddit.org
          link
          fedilink
          arrow-up
          4
          ·
          2 hours ago

          The cat command executes the cat program.

  • Maxxie@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    26
    ·
    11 hours ago

    this but in reverse 🤷‍♀️

  • morto@piefed.social
    link
    fedilink
    English
    arrow-up
    48
    ·
    12 hours ago

    chmod 666 so only the devil can execute it

  • Unpigged@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    5
    ·
    9 hours ago

    I like to chmod it chmod it

  • rumschlumpel@feddit.org
    link
    fedilink
    arrow-up
    35
    arrow-down
    2
    ·
    14 hours ago

    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
      45
      ·
      13 hours ago

      May I interest you in a nice “chown”?

    • rImITywR@lemmy.world
      link
      fedilink
      English
      arrow-up
      30
      ·
      13 hours ago

      chmod -R 777 /

      Why the fuck am I still getting permission errors

      • Voytrekk@sopuli.xyz
        link
        fedilink
        arrow-up
        5
        ·
        4 hours ago

        Selinux

      • renegadespork@lemmy.jelliefrontier.net
        link
        fedilink
        English
        arrow-up
        26
        ·
        13 hours ago

        sudo

  • neopenguin@lemmy.world
    link
    fedilink
    English
    arrow-up
    18
    ·
    13 hours ago

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

  • renegadespork@lemmy.jelliefrontier.net
    link
    fedilink
    English
    arrow-up
    13
    ·
    13 hours ago

    700 cause I’m selfish.

    • 𝘋𝘪𝘳𝘬@lemmy.ml
      link
      fedilink
      arrow-up
      7
      ·
      12 hours ago

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

      • libewa@feddit.org
        link
        fedilink
        arrow-up
        2
        ·
        5 hours ago

        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-

      • renegadespork@lemmy.jelliefrontier.net
        link
        fedilink
        English
        arrow-up
        4
        ·
        11 hours ago

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

        • wheezy@lemmy.ml
          link
          fedilink
          English
          arrow-up
          11
          ·
          10 hours ago

          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
            10
            ·
            8 hours ago

            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.

            • vaionko@sopuli.xyz
              link
              fedilink
              arrow-up
              4
              ·
              2 hours ago

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

  • Matty_r@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    8 hours ago

    Dont forgot setfacl

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.

  • 1.02K users / day
  • 3K users / week
  • 7.68K users / month
  • 16K users / 6 months
  • 1 local subscriber
  • 32.7K subscribers
  • 1.81K Posts
  • 67.3K Comments
  • Modlog
  • mods:
  • zephyr@lemmy.world
  • Err(()).unwrap()@lemmy.world
  • BE: 0.19.20
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org