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

Uninstalling a file that modified the apps folder Install
[Editor's note: See the comments for a discussion on how to resolve this issue]

I installed an application that came as a .pkg file. By installing the application it altered something in the application folder where the new application was placed. It locked the folder. And now i'm unable to edit in it. I'm not even able to create new folders in it.
Now i'd like to get trash the installed application but it's locked as everything in that folder. I can open everything in the folder but that's about. For some reason the administrator only gets the "read only" privileges. The application was jCalendar by the way.

I hope someone can help me out.
Thanx Med
    •    
  • Currently 3.00 / 5
  You rated: 1 / 5 (2 votes cast)
 
[3,414 views]  

Uninstalling a file that modified the apps folder | 6 comments | Create New Account
Click here to return to the 'Uninstalling a file that modified the apps folder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
override permissions
Authored by: Anonymous on Mar 27, '01 11:58:15PM

you need to enable the root password through netinfo, under security.

Then open up the terminal, and su into root.

With root, you can remove anything...so be careful and don't delete any important files.

You can also use chmod to change directory permissions
If you don't know about unix commands, the easiest way to learn is to look at the man files. type man and the command that you are interested in.



[ Reply to This | # ]
override permissions
Authored by: Galt_drakkor on Apr 14, '01 02:08:52AM

Once you have enabled root login.

find Launcher.app //the command line tool
open launcher. enter the following commands:
$su admin
//enter passwd
$su root
//enter passwd
cd /
chmod 775 Applications //that should give write permission to root and admin
cd Applications
rm -rf FolderToRemove //remove recursive quiet offending folder
exit
exit//be polite exit out of shells



[ Reply to This | # ]
Reinstalled the system
Authored by: Anonymous on Mar 28, '01 05:14:41AM

Ok well my knowledge of UNIX is very small. But i tried anyway. Nothing really happened. The easiest way to trash the application was to reboot in OS 9.1 and just drag it over to the trash. But then i had the other problem of making the folder Applications "read & write" again. Not only for the admins but also for the root account. Logging in with root resulted in the same problem. Read only for that folder.

So the easiest way was to reinstall the system. But first backup the "user" folder. This made it really quick to start again where i left.
Well i learned not to install a .pkg file just like that. And luckily i got to learn that in these early stages.

Thanx for replying.
Med

p.s. What is the UNIX command to delete an item?



[ Reply to This | # ]
Reinstalled the system
Authored by: robg on Mar 28, '01 08:30:54AM
Med - I don't think you had to reinstall the system, but the good thing is that the OS X installer seems quite smart. It will leave your Users folder alone (or it should have, assuming you didn't simply wipe the drive) when you reinstall. It also seems to leave your installed Apps alone, and just fixes what it needs to. For the permissions issue on the Applications folder, you can usually fix those things via the terminal in UNIX, but you'll need to understand a bit more about UNIX's 'chmod' (change permissions) and 'chown' (change owners) commands first. I wrote a tutorial on 'chmod' permissions, designed with new UNIX users in mind (since I am one!). For 'chown', try typing "man chown" in the terminal window to read about how it works. Sorry you had to reinstall, but glad you're up and working again!

[ Reply to This | # ]
Reinstalled the Sytem
Authored by: Anonymous on Mar 28, '01 11:41:23AM

Well the way i did it at first was to boot from the cd. And the ony thing i could do was install again. So i did. It wasn't very clear if it would fix the problems or if it would do a total reinstall of the system. Gladly enough it only fixed the problems. BUT NOT my problem with the folder that was set to read only. It was still there. And it was also still there in the root account.

A small side step here: I'm not sure if users are aware ( i asume they are) but when you login you have your usual login name you can also login with root. For instance i login with "med" and then the password. You can also login with "root" and then the password. However you need to know the password. How to change the password is described elsewere under the UNIX hints. Easiest way is to boot from the cd and check under the file menu when the installer appears. You can set the password there.

Anyway i did that and the folder was still locked. So my best guess is that installing jCalendar changed something in the "core" that i could't change anymore. After coming to that conclusion i decided to boot back in 9.1 and completely remove all OS X associated files from my partition. Also the invisible files (using Sherlock). First made a backup of my users folder on another partition.
Rebooted on the cd again. Did the complete instalation again. Took about half an hour. When that was finished, i copied back my users folder and i could go on where i left. I never did reinstall an entire system so quickly. All prefs. are stored in the users folder. Usually in OS 9.1 i had to set all the prefs again... I'm really starting to love OS X. Might be complicated at first but backing up your system has never been so easy.
And ofcourse my folder problem was solved now.

I think the best advice i can give after this experience is: NEVER install jCalendar, if you don't need it. For that matter be really carefull with any .pkg installation you do.
Know what you are doing. And that's the tricky part in X.



[ Reply to This | # ]
Apple installer bug and jCalendar
Authored by: alancook on Apr 09, '01 12:30:48AM

There is a bug in the Apple Installer that if you have asked
the installer to bypass a permission restricted directory, it change
the permissions on the installing directory. I have since change
jCalendar to a dmg image that does not use the installer,
unfortunately not all sites have updated the download link.

In the mean time here is the work around to gain root access to
MacOSX and either delete jCalendar or gain access to change to
permission settings on the Applications directory. Several other
distributed programs our reporting the same problem, I hope this
information helps.

The Apple installer is not a finished or well
documents application, that developers can rely on 100%, hence the
problems above most people are distributing Applications in DMG
images,jCalendar is now available in this format.

jCalendar was install with root permission, you need to log in as root

Enabling the root account

If you want to do anything advanced, such as compiling new software,
then the chance are that you will need to enable the "root" account.

Open the "NetInfo Manager" (located in the Applications/Utilities folder).

2. Select "Authenticate" from the "Security" submenu (under the
"File" menu item).

3. Select "Enable root account" from the same submenu.


Then Login as root and drag jCalendar to the trash

jCalenadar is avialble in a dmg image at http://www.avcore-systems.com



[ Reply to This | # ]