all 56 comments

sorted by: hot top controversial new old
[–] 66 points 1 month ago (6 children)
  • [–] 52 points 1 month ago (4 children)

    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.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 24 points 1 month ago (2 children)

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

  • source
  • parent
  • hideshow 2 child comments
  • [–] 60 points 1 month ago

    chmod 666 so only the devil can execute it

  • source
  • [–] 29 points 1 month ago

    this but in reverse πŸ€·β€β™€οΈ

  • source
  • [–] 16 points 1 month ago

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

  • source
  • [–] 15 points 1 month ago (9 children)

    700 cause I’m selfish.

  • source
  • hideshow 9 child comments
  • [–] 7 points 1 month ago (8 children)

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

  • source
  • parent
  • hideshow 8 child comments
  • [–] 5 points 1 month ago (7 children)

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

  • source
  • parent
  • hideshow 7 child comments
  • [–] 11 points 1 month 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.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 13 points 1 month ago* (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 5 points 1 month ago

    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.

  • source
  • parent
  • [–] 2 points 1 month ago (2 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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 1 month ago (1 child)

    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.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 1 month 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.

  • source
  • parent
  • [–] 15 points 1 month ago (5 children)

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

  • source
  • hideshow 5 child comments
  • [–] 11 points 1 month ago (4 children)

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

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 1 month ago (3 children)

    Tilde is a shortcut to /home/palordrolap

  • source
  • parent
  • hideshow 3 child comments
  • [–] 3 points 1 month ago (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • chmod -R 777 / galaxy brain

  • source
  • [–] 11 points 1 month ago (2 children)

    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)

  • source
  • hideshow 2 child comments
  • [–] 6 points 1 month ago (1 child)
  • [–] 5 points 1 month ago

    I like to chmod it chmod it

  • source
  • [–] 4 points 1 month ago

    Chmod 777 I live erratically without consequence.

  • source
  • [–] 7 points 1 month ago

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

  • source
  • [–] 5 points 1 month ago (3 children)

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

  • source
  • hideshow 3 child comments
  • [–] 2 points 1 month ago (1 child)

    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
    
  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 1 month ago

    not giving a fuck about proper file perms is fine as long as its not a server

  • source
  • [–] 4 points 1 month ago* (11 children)

    real question is how do you pronounce chmod

  • source
  • hideshow 11 child comments
  • [–] 2 points 1 month ago

    Dont forgot setfacl

  • source
  • Why? I mean not Drake because Drake sucks

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

  • source
  • [–] 2 points 1 month ago

    Right click -> Properties -> Permissions -> Allow executing file as program 😎

  • source
  • [–] 1 point 1 month ago

    chmod -R -x *

  • source