News for hackers. Stuff that matters.
Re:They're deleting my channel, but they don't know why? [vi... by hahajk on Wednesday September 23, 2020 @09:04PM (#24574253)
and if you start implementing these sanity checks, they better be everywhere. Operators will start to rely on them and might become careless - they believe the system will catch any egregious typo. The one spot where the sanity check isn’t implemented will become more vulnerable.
Re:They're deleting my channel, but they don't know why? [vi... by Ensorceled on Wednesday September 23, 2020 @09:18PM (#24574324)
How could some sanity checks be worse than NO sanity checks at all? In the YouTube case, I mean. This is happening ALL the time.
Re:They're deleting my channel, but they don't know why? [vi... by lmm on Wednesday September 23, 2020 @09:47PM (#24574503)
An inconsistently applied sanity check creates a false sense of security. Like how a safety barrier that isn't strong enough to take someone's weight might be worse than no barrier.
Re:They're deleting my channel, but they don't know why? [vi... by fiddlerwoaroof on Wednesday September 23, 2020 @10:09PM (#24574623)
Yeah, some people recommend something like

    alias rm=‘rm -i’
Unfortunately, as soon as you’re on another computer or at someone else’s shell, you’ll be more comfortable thinking less about rm-ing things and the sanity check won’t be there.
Re:They're deleting my channel, but they don't know why? [vi... by pwg on Wednesday September 23, 2020 @10:53PM (#24574801)
The better recommendation is to alias rm -i to del:

    alias del='rm -i'
And then get in the habit of using 'del' unless you really want a no-confirmation delete.

Then when you are on another computer or at someone else's shell you get:

    del: command not found
Instead of having a bunch of files silently deleted.
Re:They're deleting my channel, but they don't know why? [vi... by fiddlerwoaroof on Wednesday September 23, 2020 @11:11PM (#24574886)
Another trick is to run

    touch —- -i 
In important directories. Then rm -rf * expands to rm -rf .... -i ... and you get the “are you sure” prompt.
Re:They're deleting my channel, but they don't know why? [vi... by thaumasiotes on Wednesday September 23, 2020 @11:44PM (#24575026)
This strategy will fail pretty badly if you're on someone else's computer using Windows or DOS, where 'del' is the delete command.
Re:They're deleting my channel, but they don't know why? [vi... by happymellon on Thursday September 24, 2020 @02:02AM (#24575713)
Does `del -rf /` do a lot on Windows?
Re:They're deleting my channel, but they don't know why? [vi... by thaumasiotes on Thursday September 24, 2020 @08:27AM (#24577915)
I doubt it, but `del *` should do the same thing on both systems.
Re:They're deleting my channel, but they don't know why? [vi... by pwg on Tuesday September 29, 2020 @11:26AM (#24628958)
Except that on windows, "del" defaults to prompting "are you sure" when one types "del *".
Re:They're deleting my channel, but they don't know why? [vi... by Ensorceled on Thursday September 24, 2020 @06:55AM (#24577313)
Right, I understand the concept. What I'm saying is that a safety barrier that sometimes doesn't work is better than rails that always guide you off a cliff; which is currently the YouTube model.
Re:They're deleting my channel, but they don't know why? [vi... by lopmotr on Wednesday September 23, 2020 @11:17PM (#24574910)
Many of the cases we hear about don't seem to be mistakes, including this one. Sometimes nobody can figure out any possible reason for a ban and sometimes it gets reinstated (that's the undo feature in action). But often there are obvious copyright issues or offensive material and the channel owner only goes clutching at fair use or freedom of speech after the ship has sailed.
Re:They're deleting my channel, but they don't know why? [vi... by hamandcheese on Wednesday September 23, 2020 @09:45PM (#24574490)
For the same reason human babysitters of autonomous vehicles don't succeed in preventing pedestrians from getting run over.
Re:They're deleting my channel, but they don't know why? [vi... by Ensorceled on Thursday September 24, 2020 @06:56AM (#24577316)
Right, but a human babysitter is better than NO babysitter.
Re:They're deleting my channel, but they don't know why? [vi... by dylan604 on Wednesday September 23, 2020 @11:16PM (#24574908)
That's the same mentality of people stating because one form of pollution reduction or green energy generation isn't solving the problem that it's not worth attempting to do what you can when you can where you can. Those small moves are what gets the thing moving.