
But those are different
Yeah, not only does
+xleave read/write permissions untouched, it also only makes it executable for the user, not for everyone and their cat.Cat doesn’t execute anything tho, it just reads and gives output
The cat command executes the cat program.
What happens when u try to cat the cat program, is that considered reading or executing
Both, they are not mutually exclusive.
Except if you use kitty terminal emulator with unsecure remote access. Issue
Then with cat, you could execute arbitrary commands…
Had to be done for the joke. :)

This is drake erasure and I’m LOVING EVERY MINUTE OF IT, JERRY
Yo dawg, heard you like memes
chmod 666 so only the devil can execute it
When I start fucking with chmod, it happens way too often that what I want to do only works after I executed
chmod 777…May I interest you in a nice “chown”?
chmod -R 777 /Why the fuck am I still getting permission errors
sudo
Selinux
You can actually do
chmod +777,u+rwx,go-w footo make the logic easier if you want to force a starting assumption.
this but in reverse 🤷♀️
If you don’t add the leading digit (out of respect) for the sticky/setgid/setuid bits, do you even Linux?
700 cause I’m selfish.
700 is the only sane answer for directories inside
$HOME.Nah, there’s a lot of config files in there that other programs need to read.
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.
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.
Also for multi user systems it’s handy that each user gets their own configs
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.
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.
macOS by default makes
/Users/*only readable by the owner, except for$HOME/Public, which isdrwxr-xr-x, and$HOME/Public/Postbox, which isdrwx-w--w-
chmod -R 600 ~/, because I dont trust anyone, not even myself.I forgor the tilde and its taking a long time. wat do
sudo rm -rf / --no-preserve-rootStart from scratch
Tilde is a shortcut to /home/palordrolap
Nope, +x for life
u=rwX,g=rX,o=rX because this won’t make every file executable, only folders.
Looks like a handy flag
Careful:
chmod -Xalso 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
chmod -R ug+rwX,o=r *
chmod -R 777 /galaxy brainchmod 755for when setting permissions to directories.chmod +xfor making something executable right when I am about to run it.Chmod 777 I live erratically without consequence.
real question is how do you pronounce chmod
c h mod
I pronounce it chmod, you?
The CH from channel and then mod
shmod. and then cho-wn (ch’own? cho-un?)
and of course, hweel (jk on this one)














