Can't write to smb share, can only read

    • OMV 2.x
    • Can't write to smb share, can only read

      I am having difficulty setting up my samba shares. I can see all the files on my drives, but I can't write to them. I tried reset permissions, and that didn't work.

      Here's how I setup the reset permissions:


      Here are the groups my user are in:


      SMB/CIFS settings:



      SMB/CIFS Shares:



      Settings of one of the Shares:


      Shared Folders:




      Reset Permission Settings I Used:
      '
      All the shares show up, but I can only write to homes. I can read from the others.
    • It is a bad idea to have your regular user in most of those groups (root, shadow, operator, staff, avahi, crontab, openmediavault).

      Also, don't use the root folder (/) in your shared folder setup. It is always going to be owned by root and will just cause problems like this.

      Watch the full install video for help as well.
      omv 5.2.3 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.2.1
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      It is a bad idea to have your regular user in most of those groups (root, shadow, operator, staff, avahi, crontab, openmediavault).

      Also, don't use the root folder (/) in your shared folder setup. It is always going to be owned by root and will just cause problems like this.

      Watch the full install video for help as well.
      Why is it a bad idea to have them in those groups?

      What is the best way to share an entire drive over smb then? Can I change the ownership of the root folder?
    • hotsauce wrote:

      Why is it a bad idea to have them in those groups?
      Because it is bad to give a regular user every privilege on the box. This is why the root user and sudo package exist. One of the first mistakes people new to Linux make is giving more open permissions when they can't get something to work right.

      hotsauce wrote:

      What is the best way to share an entire drive over smb then? Can I change the ownership of the root folder?
      Put everything in a subfolder and share that folder. There is no reason to share the root directory of the drive. You can create additional shared folders that subfolders two levels deep.
      omv 5.2.3 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.2.1
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Hey everybode,

      I've exactly the same problem, however I'm not sharing the root folder at all. I'm sharint /home.

      Everybody has read and write access. However if I login to samba share in Windows 7 I only have read access and can't create new files and folders.

      Also a new user was created with permissions to read and write the /home folder.
    • Hey, sorry for the double post.

      I'm using a Raspberry Pi 1 with the correct OMV Image working as a NAS system. I have the obove mentionend problems with an WLAN stick connected per USB to the Pi, without WLAN and using the LAN adapter, everything works fine so far. So I found a workaround for me by the way.
    • Users Online 1

      1 Guest