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
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
Posted on Feb 26, 2016 11:20 AM