Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the '10.5: Start screen sharing remotely in Terminal' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
10.5: Start screen sharing remotely in Terminal
Authored by: Pedro Estarque on Tue, Mar 25 2008 at 8:27AM PDT
Wouldn't you need do sudo since you are in root /Library ?

[ Reply to This | # ]
10.5: Start screen sharing remotely in Terminal
Authored by: leamanc on Tue, Mar 25 2008 at 9:17AM PDT
Not if you are an admin user. You would need root power to write /System/Library.

[ Reply to This | # ]
10.5: Start screen sharing remotely in Terminal
Authored by: leamanc on Tue, Mar 25 2008 at 11:46AM PDT
Correcting myself somewhat.

As is implied in the hint, you can write to /Library/Preferences as an admin user without using root.

Writing to directly to /Library, however, requires root power, as that folder is read-only for admin users (most of the subfolders are writable by the admin group, though).

[ Reply to This | # ]
10.5: Start screen sharing remotely in Terminal
Authored by: Pedro Estarque on Tue, Mar 25 2008 at 7:11PM PDT
Actually I think this is the correct situation:
If the user has created the launchd file through the System Prefs sharing panel, than you'll need sudo to rm it. But if it's disabled in System Prefs, than yes, you can run the command as admin only, as you have write access to the Preferences folder.

In short, you have write access to the folder as an admin but not to the file created by the System Pref.

Great tip by the way!

[ Reply to This | # ]
10.5: Start screen sharing remotely in Terminal
Authored by: corienti on Tue, Mar 25 2008 at 1:41PM PDT
Not if you're logged in as root :-)

[ Reply to This | # ]