Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lionsatdoor

macrumors newbie
Original poster
Jun 10, 2022
5
1
I'm looking for a way to stop a specific command from being ran on MacOS's terminal, or if that's not possible lock it (either with a different password than the admin/user password, or time lock it) before running - is that possible?

Basically looking to block social media from my life, but these days I can easily disable those block using the Terminal, so was wondering if there's a scorch-earth way to do that. I understand nothing can stop me if I really want to, but looking to create as many barriers as I can.
 

Malus120

macrumors 6502a
Jun 28, 2002
697
1,457
Are you actually trying to stop yourself or another tech savvy user?
Depending on what the command is you could create a user level account that can't access it without an admin password (although a better solution is probably blocking this stuff at the router level) but... If you're actually trying to stop yourself I don't know what to tell you other than this isn't the right way to go about it/isn't going to work.
 

bogdanw

macrumors 603
Mar 10, 2009
6,144
3,042
Basically looking to block social media from my life, but these days I can easily disable those block using the Terminal, so was wondering if there's a scorch-earth way to do that. I understand nothing can stop me if I really want to, but looking to create as many barriers as I can.
Tech can’t solve your problem, see a psychologist.
 
  • Like
Reactions: Malus120

chown33

Moderator
Staff member
Aug 9, 2009
11,003
8,899
A sea of green
Which Terminal command do you want to block, and what effect do you think it will have on using social media?

Or are you asking if there is a Terminal command you can block that will only affect use of social media? If that's your question, the answer is, "No, not really."

I'm familiar with many Terminal commands, and not one I can think of would have an effect solely on use of social media. Some might well affect broader areas, such as overall internet use, etc. but it would be impossible to limit them to just social media.

I suppose you could do something drastic, like remove all the available shells, thus preventing Terminal from working at all, but again, that affects a much larger scope than just social media. It would also be reversible by reinstalling the OS, so it's more of a speed-bump than a significant block.
 
Last edited:

lionsatdoor

macrumors newbie
Original poster
Jun 10, 2022
5
1
Which Terminal command do you want to block, and what effect do you think it will have on using social media?

Or are you asking if there is a Terminal command you can block that will only affect use of social media? If that's your question, the answer is, "No, not really."

I'm familiar with many Terminal commands, and not one I can think of would have an effect solely on use of social media. Some might well affect broader areas, such as overall internet use, etc. but it would be impossible to limit them to just social media.

I suppose you could do something drastic, like remove all the available shells, thus preventing Terminal from working at all, but again, that affects a much larger scope than just social media. It would also be reversible by reinstalling the OS, so it's more of a speed-bump than a significant block.

So I have a tool that blocks social media (getcoldturkey.com), and the only way to uninstall that is via terminal.

When you mentioned "remove all available shells", what does that mean? Is there a way to block access to the terminal completely? I won't reinstall the OS (simply takes way too much time).
 

bogdanw

macrumors 603
Mar 10, 2009
6,144
3,042
So I have a tool that blocks social media (getcoldturkey.com), and the only way to uninstall that is via terminal.
That’s not true. You can delete from Finder ~/Library/LaunchAgents/launchkeep.cold-turkey.plist, as well as the other files/folders associated with the app, and reboot.
 
  • Angry
Reactions: maxoakland

Isamilis

macrumors 68020
Apr 3, 2012
2,195
1,079
Blocking the access is not really solution. In fact, you can easily block using hosts file. The hardest part is self discipline and commitment.
 

bogdanw

macrumors 603
Mar 10, 2009
6,144
3,042
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.