|
|
Create a 'one-time-use' root-enabled GUI Finder
It's quite dangerous to be running two copies of the Finder (or any program) simultaneously.
Both copies could modify Preferences or other files, resulting in corruption of those files. Newly created files could have the wrong owner (in this case root), which would cause other complications. Suppose, for example, the Finder were to delete and re-create its plist file in normal operation. You could end up with the plist owned by root. (This probably isn't the way a program would update a file, but it is possible.) Be extremely careful with duplicate copies of programs running simultaneously! ---
Create a 'one-time-use' root-enabled GUI Finder
Though I agree it is a bad idea, in this case that would not be true. The Finder running as root would use /var/root/ as it's home folder and therefore would not interfere.
The real deal on sudo and preferences
As it happens, you're both wrong. Sudo passes all environment variables, including $HOME, to the process it launches. This means that the new Finder process will use the home folder of the user who typed the sudo command. However, the preferences file is accessed through a system library (using NSUserDefaults or CFPreferences), which ensures preferences file is not corrupted (it will contain the preferences as understood to the last application that wrote to it) and that its owner is not changed. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.14 seconds |
|