

This is drake erasure and I’m LOVING EVERY MINUTE OF IT, JERRY
Yo dawg, heard you like memes
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…
Or am I???
x='dumb.txt' && echo "ls | grep $x && cat $x && rm -v $x" > $x && cat $x | bash
If your cat isn’t the first entry in /etc/sudoers I’m not sure I want to know you
If your cat isn’t the first entry in /etc/sudoers I’m not sure I want to know you
Had to be done for the joke. :)
chmod 666 so only the devil can execute it
this but in reverse 🤷♀️
not giving a fuck about proper file perms is fine as long as its not a server
Nope, +x for life
deleted by creator
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
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.
Ah, I see. I thought that you had forgotten what the tilde does, not that you ran the command without it!
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.)
chmod -R 777 /galaxy brainI 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)
4 read, 2 write, 1 execute.
That’s it. Add them up for whatever you want.
and digits are sticky, owner, group, all
chmod -R ug+rwX,o=r *
Such a beautiful language.
Why? I mean not Drake because Drake sucks
My specify every permission every time? That’s just going to create arrows.
chmod 755for when setting permissions to directories.chmod +xfor making something executable right when I am about to run it.real question is how do you pronounce chmod
c h mod
“chemod”
shmod. and then cho-wn (ch’own? cho-un?)
and of course, hweel (jk on this one)
Shmaude
“change mod”
hmod
The CH from channel and then mod
“c h m o d”
Just like “l s” and “p a c m a n”
I pronounce it chmod, you?
i say c h then mod
I pronounce it the way it’s written.
u=rwX,g=rX,o=rX because this won’t make every file executable, only folders.
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 fooThis is exactly what I expect, so I never got tripped up by this. But yes, it’s worth pointing out that this will expand the executable flag on files that are already executable and set it on folders too. But not set it on files that aren’t executable at all.
Looks like a handy flag
I like to chmod it chmod it















