I want to run below command
networksetup -setMTU en0 1280
but this requires admin credentials
networksetup -setMTU en0 1280 ** Error: Command requires admin privileges.
I want to create a script that run this command with sudo (the credentials keeps changing so can't have them will me ) and then run it with my user which has no admin/sudo rights.
So is it possible to create a script that run as admin (no password inside it ) and non admin user can run it and perform the specific task.
Most probable scenario is that they won't provide me sudo rights so need one time activity on admin team end and then use that solution .
Note- this command need to be run in specific condition and upon wifi restart it need to be run again .