-
1
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
1
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Archived Topics
- Printers Archive
- Scan to SMB: permissions of written file

Create an account on the HP Community to personalize your profile and ask a question

02-02-2017 03:05 AM
I've successfully set up scanning to a network (Samba) folder. I've created a separate "Sharing" account for the printer to use because I'm not comfortable with having my actual user account's password stored in the Samba password file and / or the printer.
When I scan to the network folder, the resulting scans have the following permissions:
-rw------- 1 sharing staff 218154 Feb 2 10:57 scan0001.pdf
That is, only the "sharing" account can read or write these files. My actual user account cannot. It's messy having to change ownership or permissions everytime I want to scan something.
How do I tell the LaserJet to write files with, e.g. read and write permissions for group and world as well?
Thanks in advance!
— Leif
02-02-2017 04:59 PM
The file permission is set by samba. You might need to change the create mask on that account. This samba doc may be helpful: https://www.cyberciti.biz/tips/how-do-i-set-permissions-to-samba-shares.html
02-06-2017 02:50 AM
Thanks Charles.
Apparently it's near to impossible to configure Samba on current versions of macOS. There's no /etc/samba* anymore.
However I found this StackExchange post that solves the problem using extended permissions:
http://apple.stackexchange.com/a/7255
In effect, I had to execute the following (in Terminal.app) to enable my actual user to read and write the files created by the Scanner user:
sudo chmod -R +a "staff allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextattr,writeextattr,readsecurity,file_inherit,directory_inherit" /path/to/shared/directory
