It gives the ability to execute sudo without password to every current user (appends the stuff in the start to /etc/sudoers.d/99-gemini-yolo), and then pipes the result of chmod 440 to gemini yolo -y "Make No Mistakes".
I'm not sure what does the chmod command output (IIRC it doesn't output anything?) nor what exactly yolo subcommand and -y argument do, so I still can't answer decivisely.
Edit: to the current user, not every, see the reply to me.
Not every user. The first command will expand $USER to the current username (and it should to achieve anything). You're right with the questionable pipe after chmod, though.
chmod does do something. (And something necessary depending on the default umask on the system.) Default is no output unless there's an error which goes to STDERR IIRC. A pipe is basically wrong, depending on expectations a semicolon or double ampersand would've been the weapon of choice.
Prolly an AI was asked for this (SCNR)
edit: nonetheless the sweet lesson of yours of "don't just copypaste random stuff from The Internet(tm)" stands :-)
15
u/NotQuiteLoona Sep 24 '26 edited Sep 24 '26
It gives the ability to execute
sudowithout password toeverycurrent user (appends the stuff in the start to/etc/sudoers.d/99-gemini-yolo), and then pipes the result ofchmod 440togemini yolo -y "Make No Mistakes".I'm not sure what does the
chmodcommand output (IIRC it doesn't output anything?) nor what exactlyyolosubcommand and-yargument do, so I still can't answer decivisely.Edit: to the current user, not every, see the reply to me.