Login and logout scripts, are scripts that are run at each login and logout - as the root user. These scripts can help you manage your machine(s), by running, unattended at each user login and logout. Below are a couple of scripts that I have created - based on some of the requests that I have received. Please feel free to use any of them, as needed. Please read the README files associated with each one.
Keep in mind that I created these as package installers for easy deployment (using Apple Remote Desktop). By leveraging the package install option in ARD, you can deploy these scripts very quickly. As an added benefit, if you have an ARD task server, you can run these installers through your task server, and the targeted machines will get the package installed as soon as they join the network, turn on, wake from sleep, etc. Also, each of these installers takes care of all aspects of login hooks (it sets the login/logout hook for you, installs the scripts, run the scripts at each login/logout, etc.). Each installer has an uninstaller that you can run, to remove the script from running at login/logout. Finally, any of these scripts can be installed, without affecting any of the other scripts - so feel free to install as many as you would like (they will simply be added to the list of login scripts and will all run at each login). Enjoy - and let me know if you have any questions, issues, etc. Also, if you have suggestions on other scripts that might be beneficial, please let me know.
The purpose of this package installer is to provide you with an easy way to make the currently logging in user a local admin on the computer.
The purpose of this package installer is to provide you with an easy way to install a package that will make the currently logging in user a member of the local _lpadmin group (so that they can add/remove printers without being a local admin).
The purpose of this package installer is to provide you with an easy way to distribute a script(s) that will redirect several files and folders from a network home user's home on the server to the local machine. These files and folders can include Microsoft User Data, AppleWorks User Data, Caches, Fonts, Movies, Music and Pictures folders. By redirecting these folders to the local machine, it can help with server performance, since these files and folders will "live" on the local machine and not on the server.