![]() |
Dont trust the internet.
Was working on my server today, trying to see if I could get something that would restart my server every now and then to reduce lag. I found something that looked perfect! It was a .sh file that you run though terminal (Mac command prompt). Anyways, I ran it with "sudo sh mac_install.sh" aaand. :( It changed every single one of my permissions on my entire computer (except the admin account) to no read/write/or execute. (000?)
Tl;dr DON'T TRUST THE INTERNET |
View .sh files before you execute them.
|
Quote:
It apparently is supposed to change one permission, but it changed them all>.> |
But... Mac's are impervious!
|
Poorly written that it had chmod all over the place and you didn't notice? What the hell?
Also, learn cronjob. You could have added something quickly to restart your computer every set period of time (e.g. every saturday at 4:00am or whatever). I'm guessing OSX has cronjob (or something similar). If not? Lame. |
Quote:
Not quite sure how this code changed all my permissions... HTML Code:
#!/bin/bash |
Never have and never will.
|
Quote:
|
Quote:
|
I fail to see how chmod 777 changes it to 000..
|
Quote:
|
Quote:
|
| All times are GMT. The time now is 02:16 AM. |
Powered by vBulletin/Copyright ©2000 - 2026, vBulletin Solutions Inc.