 |
 |
stopping commands
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Feb 2007
Status:
Offline
|
|
I'm trying to limit users from copying applications out of the /Applications folder, and my idea was to create a script that would stop whatever command is running under the GUI when a user drags an item out of /Applications (presumably cp). Is this feasible? If so, how would I start writing a script that would stop it?
Thanks!
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
This is not feasible, at least not that simply. The Finder does not use cp for its copying — it uses the same underlying system calls that cp uses. You could probably patch the file copying routines, but that isn't nearly as easy.
|
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
| |
|
|
|
 |
|
 |
|
Posting Junkie
Join Date: Oct 2005
Location: Houston, TX
Status:
Offline
|
|
Set the permissions to execute only?
It's an amusing idea, but I don't even know if that would work.
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
That doesn't work. If the executable isn't readable, Finder won't even try to open it.
|
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status:
Offline
|
|
The solution is to put a folder into the .app bundle that the users in question can't read. The finder will get to that folder and stop. They might get something, but if you name the folder with an 'A' then they won't get anything meaningful.
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
Originally Posted by larkost
The solution is to put a folder into the .app bundle that the users in question can't read. The finder will get to that folder and stop. They might get something, but if you name the folder with an 'A' then they won't get anything meaningful.
Oh, very clever. That would work.
|
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|