• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
Seize the moment! nominate yourself or a tech enthusiast you admire & join the HP Community Experts!
Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
HP Recommended
LaserJet MFP M277dw
macOS 10.12 Sierra

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

 

2 REPLIES 2
HP Recommended

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

**Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **
HP Recommended

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

 

Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.