Skip navigation

How do I allow my admin account to have unlimited permission and allow Automator to move Finder Files?

567 Views 10 Replies Latest reply: Feb 2, 2013 5:17 PM by Frank Caggiano RSS
jauche1 Calculating status...
Currently Being Moderated
Jan 26, 2013 2:09 PM

I have just discovered Automator (fairly new Mac user, got a new 2012 15.4" Macbook Pro 500GB i7 in October) and have been trying and trying to allow it to move files from one folder to another. I get stopped everytime, whether it's a new folder I just created or one that was created by a third party application, it never works; I always get a "'X' couldn't be moved because you don't have permission to access 'Y'" (X being the folder FROM which I'm moving and Y the folder TO which I'm moving the files). I've checked the permissions with Terminal after changing every conceivable associated folder's access (Read and Write) all to no avail. These are what I received from a Terminal line I found on another forum user's posts:

Last login: Sat Dec  1 12:57:14 on ttys000

Jacks-MacBook-Pro:~ owner$

Last login: Sat Jan 26 15:42:31 on console

Jacks-MacBook-Pro:~ owner$

1. Jacks-MacBook-Pro:~ owner$ /usr/bin/who am i; /bin/ls -leO@d

owner    ttys000  Jan 26 15:52

drwxrwxrwx+ 28 owner  staff  - 952 Jan 25 11:11 .

0: group:everyone deny delete

2. Jacks-MacBook-Pro:~ owner$ /usr/bin/who am i; /bin/ls -leO@d /Users/owner/Documents/Digital\ Editions

owner    ttys000  Jan 26 15:52

drwxrwxrwx  16 root  staff  - 544 Jan 26 00:00 /Users/owner/Documents/Digital Editions

3. Jacks-MacBook-Pro:~ owner$ /usr/bin/who am i; /bin/ls -leO@d /Users/owner/Documents/epub\ Books

owner    ttys000  Jan 26 15:52

drwxr-xr-x  2 owner  staff  - 68 Jan 25 23:07 /Users/owner/Documents/epub Books

 

1. is run without anything, 2. is the folder from a third party application and 3. is from a folder I created myself.

 

Any help would be appreciated, thank you!

MacBook Pro, Mac OS X (10.7.5)
  • baltwo Level 9 Level 9 (59,145 points)

    You need to add with administrative privileges to your workflow scripts. See http://developer.apple.com/library/mac/#technotes/tn2065/_index.html for details.

    27" i7 iMac SL, Lion, OS X Mountain Lion (10.8.2), G4 450 MP w/Leopard, 9.2.2
  • MrHoffman Level 6 Level 6 (11,695 points)

    I'd tend to change the permissions on the target folders to allow access directly or via access control list, rather than overriding system security with root.  The latter approach does certainly work, but those protections are also excellent "blade guards" against accidents and errors; if your script goes weird or the tool does something unexpected or somebody specifies the "wrong" target, you can end up (for instance) clobbering something in the operating system.  The former often solves the same problems, and it means you still have some protections (no pun intended) against the unexpected.

  • baltwo Level 9 Level 9 (59,145 points)

    MrHoffman wrote:

     

    I'd tend to change the permissions on the target folders to allow access directly or via access control list, rather than overriding system security with root.  The latter approach does certainly work, but those protections are also excellent "blade guards" against accidents and errors; if your script goes weird or the tool does something unexpected or somebody specifies the "wrong" target, you can end up (for instance) clobbering something in the operating system.  The former often solves the same problems, and it means you still have some protections (no pun intended) against the unexpected.

    The OP said that wasn't working.

    27" i7 iMac SL, Lion, OS X Mountain Lion (10.8.2), G4 450 MP w/Leopard, 9.2.2
  • MrHoffman Level 6 Level 6 (11,695 points)

    With no disrespect toward anyone in this thread, I doubt permissions (or ACLs) are not working as expected on OS X.  There's likely something (else) going on, whether it's another directory that's involved, or some other access that's occurring.  Try a small script that just does a copy, and see if that works.  Post a script that reproduces the error, and we can have a look at what that's doing.

  • Frank Caggiano Level 7 Level 7 (22,760 points)

    This printout

    1. Jacks-MacBook-Pro:~ owner$ /usr/bin/who am i; /bin/ls -leO@d

    owner    ttys000  Jan 26 15:52

    drwxrwxrwx+ 28 owner  staff  - 952 Jan 25 11:11 .

    0: group:everyone deny delete

    is troubling. It appears as though you have chnage the permissions on your home folder. If so you could be causing major system problems.

     

    Also this:

    I've checked the permissions with Terminal after changing every conceivable associated folder's access (Read and Write) all to no avail.

    (emphasis added) is scary. OS X expects permissions on certain folders, the ones it creates especially, to have certain values. If you go about randomly changing things you will cause the system to malfunction.

  • rccharles Level 5 Level 5 (5,140 points)

    I do not think it is a permisssions problem wit the folders shown. 

     

    Could be individula file permission problem. 

     

    Please post script.

     

    Why?

    2. Jacks-MacBook-Pro:~ owner$ /usr/bin/who am i; /bin/ls -leO@d /Users/owner/Documents/Digital\ Editions

    owner    ttys000  Jan 26 15:52

    drwxrwxrwx  16 root  staff  - 544 Jan 26 00:00 /Users/owner/Documents/Digital Editions

    Everyone has access!

     

    fyi: I do not know why the owner is set to root. odd.

     

    Normally, I'd say everything in /Users/owner should be owned by you.

     

    -----------------------------

    /bin/ls -leO@d

     

    why the /bin?

    ls -leO@d

    should work fine.  If not, something is odd.

  • Frank Caggiano Level 7 Level 7 (22,760 points)

    On a stock OS X machine a user can move files between folders in their home folder without any issues as long as nothing has been done to the standard permissions.

     

    You need to show the scripts or automator workflows that you are using. You also need to describe what has been done to the permissions, what you show in your first post makes no sense especially the settings on your home folder.

     

    I'm not sure what baltwo was aiming at in his post and that link but again you should be able to move files around without setting any special admin permissions.

     

    regards

Actions

More Like This

  • Retrieving data ...

Bookmarked By (1)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.