CBSTech

Q: You do not have permissions to open this document

Quick History:

 

We installed a new Konica Minolta copier today. In the process of setting it up to scan using SMB, I created new usernames on each workstation called 'scanner' and gave that user a password. I then created a folder on each desktop called scans. I shared this folder, and set it so both users (main user & scanner) have Read & Write access.

 

The issue I am having is, anything written into that folder by the scanner is read & write for 'scanner' and no other users have any access.

 

Is there a way I can set that folder so any new items written into the folder have Read and Write for all users set?

MacBook Pro with Retina display, OS X Yosemite (10.10.5)

Posted on Jan 29, 2016 8:13 AM

Close

Q: You do not have permissions to open this document

  • All replies
  • Helpful answers

  • by Eric Root,

    Eric Root Eric Root Jan 29, 2016 10:30 AM in response to CBSTech
    Level 9 (70,049 points)
    iTunes
    Jan 29, 2016 10:30 AM in response to CBSTech

    Have you tired doing a Get Info (command - I) on the folder, unlocking the padlock, and adding the user with read/write permissions?

  • by CBSTech,

    CBSTech CBSTech Jan 29, 2016 10:34 AM in response to Eric Root
    Level 1 (0 points)
    Jan 29, 2016 10:34 AM in response to Eric Root

    I have indeed done this.

     

    This fixes any documents that are currently in the folder. However, any new scans write with the primary user unable to open the file.

  • by To_Mi,

    To_Mi To_Mi Jan 29, 2016 12:26 PM in response to CBSTech
    Level 2 (351 points)
    iLife
    Jan 29, 2016 12:26 PM in response to CBSTech

    Is there a way I can set that folder so any new items written into the folder have Read and Write for all users set?

    Use of ACL ( access control list ) may be the answer.

    Automatically make shared files writable for others

    http://apple.stackexchange.com/questions/5689/permissions-for-new-files-in-share d-directory

  • by CBSTech,

    CBSTech CBSTech Feb 1, 2016 9:05 AM in response to To_Mi
    Level 1 (0 points)
    Feb 1, 2016 9:05 AM in response to To_Mi

    I tried the scripts on the page you linked to, and they modified the permissions to the files in the folder that did not have specific permissions. It did not modify new documents that are entering the folder.

  • by CBSTech,

    CBSTech CBSTech Feb 3, 2016 3:08 PM in response to CBSTech
    Level 1 (0 points)
    Feb 3, 2016 3:08 PM in response to CBSTech

    Any additional advice?

  • by To_Mi,Solvedanswer

    To_Mi To_Mi Feb 26, 2016 11:20 AM in response to CBSTech
    Level 2 (351 points)
    iLife
    Feb 26, 2016 11:20 AM in response to CBSTech

    Actually the ACL does not set usual permissions but give additional access control, which will be shown as custom on Finder's Get Info view.

    Did you check it by actually trying to modify the file?

     

    Below shows how I verified - give access for other members of group:staff for files created in shared folder.

    * Both user account, user1 ( myself ) and user2, belong to group staff.

    * "$ " in below is command prompt in Terminal

    1. Create a folder to share

    $ mkdir NotShared Shared

    2. Give suggested ACL to the folder.

    $ sudo chmod +a "staff allow delete,chown,list,search,add_file,add_subdirectory,delete_child,file_inherit,di rectory_inherit" ~/Shared

    3. Check ACL is added

    $ ls -lde NotShared Shared

    drwxr-xr-x+ 2 user1  staff  204  2  4 08:53 Shared/

    0: group:staff allow list,add_file,search,delete,add_subdirectory,delete_child,chown,file_inherit,di rectory_inherit

    4. Create empty files for test

    $ touch NotShared/test1 Shared/test2

    5. Make usual permissions as read/write for user1 only

    $ chmod 600 NotShared/test1 Shared/test2

    6. Check permissions of files

    $ ls -le NotShared/test1 Shared/test2

    -rw-------  1 user1  staff  0  2  4 09:23 NotShared/test1

    -rw-------+ 1 user1  staff  0  2  4 09:23 Shared/test2

    0: group:staff inherited allow read,write,execute,delete,append,chown

    7. switch to user2 with admin password

    $ sudo -l user2 -s

    $ whoami

    user2

    8. Test to overwrite on the normal file - should be denied.

    $ echo > NotShared/test1

    bash: NotShared/test1: Permission denied

    9. Test to overwrite on the file with ACL - should be permitted

    $ echo test2 > Shared/test2

    $ cat Shared/test2

    test2

    10. finish user2 operation

    $ exit

  • by CBSTech,

    CBSTech CBSTech Feb 26, 2016 9:39 AM in response to To_Mi
    Level 1 (0 points)
    Feb 26, 2016 9:39 AM in response to To_Mi

    This got me much farther along. I can now see the window preview of the document, however when I attempt to open it, I still get the error. Any guesses?

  • by CBSTech,

    CBSTech CBSTech Feb 26, 2016 11:20 AM in response to CBSTech
    Level 1 (0 points)
    Feb 26, 2016 11:20 AM in response to CBSTech

    Scratch this, I got that figured out. I had to go back into Sharing Settings and adjust the permissions to Read & Write after the script. Thanks for your help. Also, it won't let me select To_Mi's answer as the solution.