I don't cringe. Just instinctively Ctrl+W
Linux
A community for everything relating to the GNU/Linux operating system
Also check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
And don't forget to sudo
!
If you're worried, download it into a file first and read it.
What's stopping the downloaded script from wiping my home directory?
What's stopping any Makefile, build script, or executable from running rm -rf ~
? The correct answer is "nothing". PPAs are similarly open, things are a little safer if you only use your distro's default package sources, but it's always possible that a program will want to be able to delete something in your home directory, so it always has permission.
Containerized apps are the only way around this, where they get their own home directory.
Back up your data folks. You're probably more likely to accidentally rm -rf
yourself than download a script that will do it.
So basically the install instructions for Lemmy? No Lemmy data is safe.
I dont just cringe, I open a bug report. You can be the change to fix this.
The security concerns are often overblown. The bigger problem for me is I don't know what kind of mess it's going to make or whether I can undo it. If it's a .deb or even a tarball to extract in /usr/local then I know how to uninstall.
I will still use them sometimes but for things I know and understand - e.g. rustup will put things in ~/.rustup and update the PATH in my shell profile and because I know that's what it does I'm happy to use the automation on a new system.
Damn that's bad misinformation. Its a security nightmare
No it isn't. What could a Bash script do that the executable it downloads couldn't do?
So tell me: if I download and run a bash script over https, or a .deb file over https and then install it, why is the former a "security nightmare" and the latter not?
For example: A compromised host could detect whether you are downloading the script or piping it.
What does curl even do? Unstraighten? Seems like any other command I’d blindly paste from an internet thread into a terminal window to try to get something on Linux to work.
curl sends requests,
curl lemmy.world
would return the html of lemmy.worlds homepage.
piping it into bash means that you are fetching a shell script, and running it.
cURL (pronounced curl) stands for client for URL. It transfers data from a url, which you can then do things with.
When I modded some subreddits I had an automod rule that would target curl-bash pipes in comments and posts, and remove them. I took a fair bit of heat over that, but I wasn't backing down.
I had a lot of respect for Tteck and had a couple discussions with him about that and why I was doing that. I saw that eventually he put a notice up that pretty much said what I did about understanding what a script does, and how the URL you use can be pointed to something else entirely long after the commandline is posted.