Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Never include your root password' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Never include your root password
Authored by: ReznorB5 on Oct 29, '03 05:14:02AM

NEVER, ever, ever, ever, EVER include your root password (or any password for that matter) in a script file. Even if you save it as an AppleScript application, someone can simply open it with Script Editor and view the whole contents of the script, password and all. There is one caveat in that it is possible to save a script application as Run-only, meaning that it will not allow Script Editor to open and view the application's code. However, I wouldn't trust that with my root password; would you?

At any rate, use the loginwindow scripting facility included in the OS as described at www.bombich.com and you don't need to have a password in there. The loginwindow program executes login/logout scripts as root anyway.



[ Reply to This | # ]