Eric
Eric

Reputation: 135

Is it possible for a mac app to edit the hosts file without asking the the super user's password?

I am planning a OS X app that involves editing the hosts file regularly. I would think this would be very annoying for the user if it asks for the super user's password. Is it technically possible to input the password thru code or maybe modify the property of the hosts file to allow the app to modify it while its installed?

Upvotes: 2

Views: 3964

Answers (1)

WrightsCS
WrightsCS

Reputation: 50697

Simply put, No, the hosts file requires root access.

Upvotes: 4

Related Questions