this post was submitted on 10 Sep 2026
245 points (92.1% liked)

linuxmemes

32772 readers
194 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 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 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 3 years ago
    MODERATORS
     

    (page 2) 24 comments
    sorted by: hot top controversial new old
    [–] undefinedTruth@lemmy.zip 6 points 2 days ago

    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 16 points 2 days ago (1 children)
    [–] Dirk@lemmy.ml 8 points 2 days ago (2 children)

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

    [–] renegadespork@lemmy.jelliefrontier.net 5 points 2 days ago (2 children)

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

    [–] wheezy@lemmy.ml 12 points 2 days ago (3 children)

    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.

    load more comments (3 replies)
    [–] Dirk@lemmy.ml 2 points 2 days ago (1 children)

    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 1 points 2 days ago (1 children)

    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.

    [–] Dirk@lemmy.ml 2 points 2 days ago

    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 2 points 2 days ago (2 children)

    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-

    load more comments (2 replies)
    [–] PerogiBoi@lemmy.ca 4 points 2 days ago

    Chmod 777 I live erratically without consequence.

    [–] Unpigged@lemmy.dbzer0.com 5 points 2 days ago

    I like to chmod it chmod it

    [–] red_bull_of_juarez@lemmy.dbzer0.com 5 points 2 days ago (2 children)

    u=rwX,g=rX,o=rX because this won't make every file executable, only folders.

    [–] quarrel4you@piefed.social 2 points 1 day ago (1 children)

    Careful: chmod -X also looks for any existing exec bits:

    $ umask 0
    $ >foo >bar
    $ ls -al foo bar
    -rw-rw-rw- 1 user group 0 Sep 10 00:00 bar
    -rw-rw-rw- 1 user group 0 Sep 10 00:00 foo
    $ chmod o+x foo
    $ ls -al foo bar
    -rw-rw-rw- 1 user group 0 Sep 10 00:00 bar
    -rw-rw-rwx 1 user group 0 Sep 10 00:00 foo
    $ chmod u=rwX,g=rX,o=rX foo bar
    $ ls -al foo bar
    -rw-r--r-- 1 user group 0 Sep 10 00:00 bar
    -rwxr-xr-x 1 user group 0 Sep 10 00:00 foo
    
    load more comments (1 replies)
    [–] eyesaremosaics@lemmy.zip 1 points 2 days ago

    Looks like a handy flag

    [–] vala@lemmy.dbzer0.com 1 points 1 day ago

    chmod -R -x *

    [–] Matty_r@programming.dev 2 points 2 days ago

    Dont forgot setfacl

    load more comments
    view more: ‹ prev next ›