Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 whoever posted them. This site is not responsible for what they say.
10.5: Start screen sharing remotely in Terminal
Authored by: Pedro Estarque on Mar 25, '08 08:27:11AM

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 Mar 25, '08 09:17:56AM

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 Mar 25, '08 11:46:49AM

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 Mar 25, '08 07:11:01PM

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 Mar 25, '08 01:41:15PM

Not if you're logged in as root :-)



[ Reply to This | # ]