|
|
#41 |
|
League Commissioner
Join Date: Mar 2003
Location: Bay Area, CA
Posts: 11,352
|
you forgot having kids
sudo rm -rf /bank_account
__________________
sudo make me a sammich |
|
|
|
|
|
#42 |
|
Registered User
Join Date: Nov 2008
Posts: 5
|
Its a security issue
OS X (correctly) won't let you trigger things to be run as root when a user logs in (think about it and you'll see why this is in general a bad idea).
That said, there is a workaround. You can add the script to the sudoers file and mark it to be runnable via sudo by everyone without a password. Then in the launchdaemon plist call "/usr/bin/sudo /path/to/script". This will work, but will allow anyone to run the script whenever they feel like it which is a security hole (but probably a manageable one since it sounds like you control this network). I don't like this plan, but if you need to run things with root privs on login it will work. I can't recall the sudoers synatx off hand but googleing should find it. |
|
|
|
![]() |
|
|