Permission on mountpoint for samba share

Is this step necessary?

~
❯ sudo chmod -R ugo+rw /mnt/storage
[sudo] password for user:

~ 2h 23m 4s
❯

Maybe this helps:

https://www.cyberciti.biz/tips/how-do-i-set-permissions-to-samba-shares.html

Or this:

https://askubuntu.com/questions/1020281/best-practice-for-shared-directory-on-server-samba-windows-10-clients

It is generally a bad idea to use /mnt as base for permanent mountpoints.

In the context of a mountpoint for a samba share

  • yes - you need to assign rw access to everyone - otherwise only root can write to share.
  • you do it before you mount the share
  • because the permissions on the content of share is controlled by server - not the client.

Use a separate structure - e.g. /data/storage - this is the only way to ensure correct permissions.

Read up on Linux ACL Access Control Lists - ArchWiki

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.