|
|
An AppleScript to modify user permissions
I haven't tested the script but just in reading it over I'm at a loss for how it actually works, or maybe I'm just confused about what it's actually trying to do. Needless to say, the script uses "sudo" in all of the shell scripts it runs but it never gets the password for an admin account so how could "sudo" actually work. Also, last I remember, "sudo" doesn't work at all using AppleScript and "do shell script". Instead you use something like:
You could of course have a dialog pop up asking for the admin password instead of hard coding it in, but either way, it's needed at some point. Is this only for working on files that you already own? And if so, why use "sudo" at all? I'm definitely confused.
An AppleScript to modify user permissions
I am guessing that using sudo only works for those that have used it before (in Terminal).
and have different results for me like in the Terminal so I guess it works.
On my computer I am of course an administrator, this script is not useful
An AppleScript to modify user permissions
Sorry, I cut myself off there.
On my computer I am of course an administrator, this script is probably not useful to those who have a standard user account, since they can only change the permissions of their own files. Here is another script that changes the permissions of all items in your users folder.
Note the first 'do shell script' has:
instead of:
which is used in the original hint.
|
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.09 seconds |
|