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


Click here to return to the 'Script needed to make the address hint work....' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Script needed to make the address hint work....
Authored by: sundown on Mar 05, '03 07:32:17PM

Follow this hint's instructions http://www.macosxhints.com/article.php?story=20021210051526829&query=eudora modified for the address book files. it's an easy fix.



[ Reply to This | # ]
Script needed to make the address hint work....
Authored by: gdelfino on May 29, '03 11:59:50PM
This is how I modified the script on that hint:
#!/bin/sh
echo "Changing addressbook Folder owner to `whoami` ..."
chown -R `whoami` /Users/Shared/addressbook/
chmod -R a+rw     /Users/Shared/addressbook/
echo "Done!"
then I did a
sudo chown root scriptname.sh
and a
sudo chmod 4755 scriptname.sh
It now works fine, but I think that something is wrong because the files become owned by root at login instead of being owned by the respective user:
drwxrwxrwx   8 root  wheel     272 May 29 23:52 .
drwxrwxrwt  10 root  wheel     340 May 29 23:35 ..
-rwxrwxrwx   1 root  wheel    6148 May 29 07:40 .DS_Store
-rw-rw-rw-   1 root  wheel  458752 May 29 23:51 ABPerson.index
-rw-rw-rw-   1 root  wheel  316625 May 29 23:51 AddressBook.data
-rw-rw-rw-   1 root  wheel  819880 May 29 23:51 AddressBook.data.beforesave
-rw-rw-rw-   1 root  wheel  979497 May 29 23:51 AddressBook.data.previous
drwxrw-rw-   9 root  wheel     306 Apr 29 20:15 Images
The problem is that a third user (my daugther maybe) could log in and erase my address book. Does anyone know how to modify this script for better security?

[ Reply to This | # ]