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

ffx2999

macrumors newbie
Original poster
May 13, 2017
3
0
Germany
Hi,

I have 2 terminal scripts which use "sudo". I would like to run these 2 after desktop login automatically, without entering my password.

How is that possible?
 
Hi,

I have 2 terminal scripts which use "sudo". I would like to run these 2 after desktop login automatically, without entering my password.

How is that possible?
what do the scripts do? Is it important that they don't run until after the user logs in?
 
chrfr: yes, it is required to run it after login, it is an old kext which crashes if it is loaded /Lib/ext or Sys/Lib/Ext, but works fine if it is loaded later (for an audio interface).
 
chrfr: yes, it is required to run it after login, it is an old kext which crashes if it is loaded /Lib/ext or Sys/Lib/Ext, but works fine if it is loaded later (for an audio interface).
I use the tool called Outset https://github.com/chilcote/outset to handle scripts and other things at login/boot time for systems that I manage. This might be useful to you if you put the script you need to run in the login-privileged section, it'll run as root at login without any required intervention from the user.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.