Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: keychain



Following is a shell script that I run when creating the user template.
This script is used in our labs but also has been easily adapted for faculty
and staff systems. Note that some lines may be split because of word-wrap.

###Start of shell
#!/bin/tcsh -f

## Properties
set defHome = /Users/macadmin

/usr/bin/sudo rm -R $defHome/Library/Caches/*
echo "Caches deleted"

/usr/bin/sudo rm -R $defHome/Library/Recent\ Servers/*
echo "Recent Servers deleted"

/usr/bin/sudo rm -R $defHome/Library/Logs/*
echo "Logs deleted"

#/usr/bin/sudo rm -R $defHome/Library/Mozilla
#echo "Mozilla profile deleted"

/usr/bin/sudo rm -R $defHome/Library/Preferences/com.apple.recentitems.plist
echo "Recent Items deleted"

/usr/bin/sudo rm -R $defHome/Library/Keychains/*
echo "Keychains deleted"

/usr/bin/sudo rm -R
$defHome/Library/Preferences/com.apple.sidebarlists.plist
echo "Sidebar deleted"

/usr/bin/sudo rm -R /System/Library/User\ Template/English.lproj
echo "Removed old Default Template"

/usr/bin/sudo ditto -rsrcFork $defHome /System/Library/User\
Template/English.lproj
echo "Created new Default Template"

/usr/bin/sudo chown -R root:wheel /System/Library/User\
Template/English.lproj
echo "Set Owner of Default Template"
echo "Done"
exit 0
###End of shell
--
Brett DeCarion
Office of Information Technology
SunGard Collegis/Delta College
1961 Delta Rd.
University Center, MI 48710
(989)686-9536

> From: Dan Sloan <email@hidden>
> Date: Mon, 12 Jul 2004 12:18:40 -0400
> To: email@hidden
> Subject: keychain
>
> Hi All,
> I am having trouble with Safari and the keychain. I am not a keychain
> wizard, so bare with me.
> I am configuring a user, let's call it Cabbage. I configure all the apps,
> including Safari. I then copy the contents of Cabbage to HardDrive>System>
> Library> User Template> English.lproj. I then delete user Cabbage (thanks
> to Barry Albright). Most things work perfectly. Safari wants to use the
> login keychain for the deleted Cabbage.
> I can run keychain repair, but only using the password for Cabbage
> Any ideas how to make not user the original user password?
> Do I delete the keychain.plist from the user template?
>
> Thanks,
> -Dan
>
>
>
> Dan Sloan
> Desktop Integration Services
> Information Technology Services
> Hamilton College
> 198 College Hill Road
> Clinton, NY 13323
> 315-859-4722
> email@hidden
> _______________________________________________
> maclabmanager mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/maclabmanager
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
maclabmanager mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/maclabmanager
Do not post admin requests to the list. They will be ignored.


References: 
 >keychain (From: Dan Sloan <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.