See this article about
Creating a login hook. Basically, if that's what's set up, you'll need to reverse the steps.
Open Terminal (/Applications/Utilities) and type:
sudo defaults read com.apple.loginwindow
You will be asked for your password. Nothing will appear as you type it. You may receive a short lecture if you've never used sudo before.
You need to make a note of the paths for the LoginHook and the LogoutHook.
Now type:
sudo defaults delete com.apple.loginwindow LoginHook
sudo defaults delete com.apple.loginwindow LogoutHook
sudo -k
If that doesn't reveal the login hook, you need to edit the ttys file as explained in the instructions given by Apple instead but you will want to reverse the edit, of course.
That is, find this line:
#console "/System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow -LoginHook /path/to/script" vt100 on secure window=/System/Library/CoreServices/WindowServer onoption="/usr/libexec/getty std.9600"
and edit it to look like this:
#console "/System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow" vt100 on secure window=/System/Library/CoreServices/WindowServer onoption="/usr/libexec/getty std.9600"
(See the link for details.)
Again, make a note of the path to the login hook script.
Finally, find the scripts at the paths you noted and delete them if you wish. You could skip this step if you wanted to - they won't be run now you've made these changes.
- cfr