file permissions problem with linux client

  • hallo everybody.

    I've a strange problem using OMV with a linux client.

    when I transfer some files using windows, no problem occours: all files permissions are "-rwxrwxr-x"

    when a linux client transfer some files (in my case is a suse), the file permissions are "-rw-------"

    to fix I need to enter OMV web GUI, go to "Access Rights Management -> Shared Folders -> Share"name -> ACL", select "Recursive: Apply permissions to files and subfolders" then click Apply button.

    there is a solution to do it automatically?

  • exactly, the smb.conf is correct.

    Code
    create mask = 0664
    force create mode = 0664
    directory mask = 0775
    force directory mode = 0775

    maybe there is exists some strange settings on suse to force other permissions?

  • I don't know about SUSE, but on Ubuntu I've had similar problems due to the mounting. When using mount, you may read about mount options uid, gid, file_mode and dir_mode (https://linux.die.net/man/8/mount.cifs) in order to get matching permission pattern. On Windows it is simply working because it doesn't know anything about unix permissions.


    Here is an example for a single user share on a multi user environment:

    Code
    sudo mount -t cifs -o credentials=/home/johannes/.smbcredentials,uid=1003,gid=100,file_mode=0700,dir_mode=0700,iocharset=utf8 //nas.local/johannes /mnt/nas.local/johannes


    An easier way would be a gvfs mount, but I cannot use that since certain programs don't handle that properly.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!